如何在chrome中使用video.js播放flash(.flv)视频 [英] how to play flash(.flv) video using video.js in chrome
问题描述
我使用 video.js
播放Flash(.flv)视频。但是,当我按播放按钮,它不播放视频?
我已经使用了techorder:[flash,html]
。但它没有什么区别。
videojs
中是否有插件可用于Flash视频?如何在 video.js
中播放.flv视频?
video.js可以在Flash技术中播放FLV。 >如果您自行托管video.js而不是使用CDN,请确保您的swf的路径是正确的,例如
<脚本>
videojs.options.flash.swf =http://example.com/path/to/video-js.swf
< / script>
请务必使用正确的 video / x-flv
mime在源代码中输入:
< source src =http://example.com/video。 flvtype ='video / x-flv'>
托管FLV的服务器也必须在Content-Type标题中返回正确的MIME类型。
示例: http://output.jsbin.com/ juvuca
I am using video.js
to play flash(.flv) video. But when I press play button it does not play video?
I have used the "techorder:"["flash","html"]
. But it made no difference.
Is there any plugin to for flash video in videojs
? How can I play .flv video in video.js
?
video.js can play FLV in the Flash tech.
If you're self-hosting video.js rather than using the CDN, make sure the path to your swf is correct, e.g.
<script>
videojs.options.flash.swf = "http://example.com/path/to/video-js.swf"
</script>
Make sure to use the correct video/x-flv
mime type in the source tag:
<source src="http://example.com/video.flv" type='video/x-flv'>
The server hosting the FLV must also return the correct mime type in the 'Content-Type` header.
Example: http://output.jsbin.com/juvuca
这篇关于如何在chrome中使用video.js播放flash(.flv)视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!