多个video.js播放器在闪回故障时失败 [英] Multiple video.js players fail on flash fallback

查看:374
本文介绍了多个video.js播放器在闪回故障时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有4个视频的 http://video-stock.co.uk 设置页面,全部使用video.js。它适用于使用html5实现的chrome等,但是当我在ie7 / 8中查看和闪回时,大视频和第一个小视频都很好,但其他两个小视频是黑色的,没有播放按钮重叠,并没有响应点击,虽然右键单击确实会弹出上下文菜单。



我有旁边没有知识的工作与Flash播放视频,除了Wordpress中的奇怪嵌入,我很高兴能找到Video.js为我排序。我在代码中可以看到的是,正确的视频文件似乎被发送到闪存,但也许是因为Flash Player(.swf)文件被多次调用?只是一个新手猜测。任何帮助感激地收到。

编辑,为了完整性,我建立了一个页面上的铬等闪光测试 - 如果你去 http://video-stock.co.uk/?flashdefault 你可以浏览所有玩家在Flash页面。它适用于Chrome,ff甚至IE7 + 8。为了得到闪光灯的默认,我用:

_V_.options.techOrder = [flash,html5,links];

如果我没有收到回复来自你有所帮助很多,我会改变默认的顺序。


解决方案

我改变的唯一的事情是加入preload = 自动的小视频,这似乎是修复。虽然它可能已经使用flashdefault修复了Flash视频进入缓存,直到一些新的视频被添加,我们不会发现。对于版主,我现在应该接受这个答案,还是等到我知道确定?


I have the page http://video-stock.co.uk setup with 4 videos, all using video.js. It works fine with chrome etc which use the html5 implementation, but when I view in ie7/8 and the flash fallback, the big video and the first of the small videos are fine, but the other 2 small videos are black, and have no play button overlay, and are unresponsive to clicking, although a right-click does bring up the flash context menu.

I have next to no knowledge of working with flash to play videos, except the odd embed in Wordpress, and I was glad to find Video.js to sort all that out for me. All I can see in the code is that the correct video files seem to be getting sent into flash, but maybe it is because the flash player (.swf) file is being called more than once? Just a novice guess. Any help gratefully received.

Edit, for completeness I set up a test for flash on the page in chrome etc - if you go to http://video-stock.co.uk/?flashdefault you can view the page with all players in flash. It works fine on chrome, ff and even IE7+8. To get the flash default I have used:

_V_.options.techOrder = ["flash", html5, "links"];

I will change the default to that order if I receive no replies from you helpful lot.

解决方案

After the edit I went to the site in IE without the flashdefault query var and all four players were working.

The only thing I changed was adding preload="auto" to the small videos, and that seems to have been the fix. Although it could have been getting the flash videos into the cache using the flashdefault that fixed it, until some new videos are added we won't find out. To Moderators, should I accept this answer now or wait till I know for sure?

这篇关于多个video.js播放器在闪回故障时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆