问题
Upgraded to Flash 10 today and now many flash videos aren't playing on a lot of sites, including a couple i've created. What's the fix?
edit Let me clarify here. this question is intended to find the code change that is needed to allow users of all versions of flash, including the most recent release, to be able to see them.
回答1:
Flash APIs only provide the version number in String form, so the probable cause is scripts that pull a single character out of the version string, and see "1" instead of "10". That, or scripts that naively check (version==9)
instead of (version>9)
.
Note: comparisons like (version>9)
will work as expected in AS, even if version
is a string like "10"
.
回答2:
It is probably due to version checking.
Make sure the sites can handle double digit version numbers correctly. Especially when using strings, "9" is larger than "10" in many implementations.
回答3:
I agree with HS that this is likely due to websites using a Flash version sniffer that excludes your player. This has been a problem for me in the past. To check if this is the case for you I suggest you view the source of the page and search for the path to the swf file. This could be inside the object tag or within a line of javascript. I usually do a find for .swf and copy the whole path into the browser address line. If the video plays when you do this I suppose you could send an email to the site admin asking them to fix their swf embedding.
回答4:
This could be a product of FlashDetect script which checks the Flash version you have by looking at the first character before the '.' like this: y.charAt(y.indexOf('.')-1); so when it sees version 10.0 it thinks you have flash version 0.
来源:https://stackoverflow.com/questions/214424/why-dont-flash-videos-play-after-upgrading-to-flash-10