为什么升级到 Flash 10 后 Flash 视频无法播放?
今天升级到 Flash 10,现在许多 Flash 视频无法在很多网站上播放,包括我创建的几个。 解决办法是什么?
编辑 让我在这里澄清一下。 这个问题的目的是找到允许所有版本的闪存(包括最新版本)的用户能够看到它们所需的代码更改。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Flash API 仅提供字符串形式的版本号,因此可能的原因是脚本从版本字符串中提取单个字符,并看到“1”而不是“10”。 或者是天真地检查
(version==9)
而不是(version>9)
的脚本。注意:像
(version>9)
这样的比较将在 AS 中按预期工作,即使version
是像"10"
这样的字符串。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 ifversion
is a string like"10"
.这可能是由于版本检查造成的。
确保站点可以正确处理两位数版本号。 特别是当使用字符串时,在许多实现中“9”大于“10”。
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.
我同意 HS 的观点,这可能是由于网站使用了排除您的播放器的 Flash 版本嗅探器。 这在过去一直是我的一个问题。 要检查您是否属于这种情况,我建议您查看页面的源代码并搜索 swf 文件的路径。 这可能位于对象标记内或 JavaScript 行内。 我通常会查找 .swf 并将整个路径复制到浏览器地址行中。 如果您执行此操作时视频播放,我想您可以向网站管理员发送电子邮件,要求他们修复 swf 嵌入。
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.
这可能是 FlashDetect 脚本的产品,该脚本通过查看“.”之前的第一个字符来检查您拥有的 Flash 版本。 像这样: y.charAt(y.indexOf('.')-1); 因此,当它看到版本 10.0 时,它会认为您拥有 Flash 版本 0。
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.