如果第一个 Flash 电影需要更新的 Flash 播放器版本,如何回退到其他 Flash 电影
我想使用 Flash 显示视频(适用于较旧的非 HTML5 视频浏览器)。这是可能的:
- 从 Flash 版本 7 开始使用 flv 视频文件
- ,从 Flash 版本 10 开始使用 h264 视频文件和高清。
所以我想首先尝试版本 10 变体,并且如果不可用,请尝试版本 7 变体(我不喜欢未安装 Flash 或版本 <7 的浏览器)。另请注意,对于每种情况,我都有两个不同的 swf 媒体播放器(不知道是否有一个可以在所有情况下使用这两种格式)。
如果可能的话,这应该在没有 JavaScript 的情况下发生。否则,使用 swfobject 就可以了,但是,我不知道如何使用它这个案例。
到目前为止,我已经尝试使用两个嵌套的
I want to display videos using Flash (for older, non-HTML5 video browsers). This is possible:
- using flv video files since Flash version 7
- and with h264 video files and high-def since Flash version 10.
So I'd like to first try the version 10 variant, and if that is not available, try the version 7 variant (I don't care for browsers with no Flash installed, or version < 7). Also note that I have two different swf media players for each case (don't know if there is a single one that would work with both formats in all cases).
If possible, this should happen without Javascript. Otherwise, using swfobject would be ok, however, I don't know how to use it for this case.
So far I have tried to have two nested <object>
tags, the outer one containing the Flash 10 media player, for playing the mp4 file, and the inner one containing the Flash 7 media player, for playing the flv file. But this does not work for browsers with a Flash player version between 7 and 9, since the failure doesn't happen at the browser level, because there is a Flash player installed. The failure happens inside the swf media player that simply doesn't do anything when the necessary version 10 video playback support is missing from the Flash player plugin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为除非您使用 Javascript,否则您没有办法处理 Flash 版本。您可以在
标记中尝试此操作:
源
I don't think you have a way to deal with Flash versions unless you use Javascript. You can try this, in a
<script>
tag:Source