本文介绍了如何在HTML视频标签中播放FLV视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经看过一些像Flow Player,JW Player和其他几个玩家,但我无法完全使用PHP代码。有没有什么方法可以在HTML视频标签中播放FLV?
我知道MP4和OGG文件,但我正在处理的内容会生成一个FLV文件。
解决方案
您应该从我一直在使用它流媒体直播视频提要。它像这样模仿视频标签:
< video id =example_video_1class =video-js vjs-default-皮肤
控件preload =autowidth =640height =480
poster =http://video-js.zencoder.com/oceans-clip.png
data-setup ='{example_option:true}'>
< source src =rtmp:// localhost / live / testtype =rtmp / flv>
< / video>
适用于我。
I have had a look at a couple of players like Flow Player, JW Player and a couple more but I can't get it to work exactly in PHP code.
Is there any way to play FLV within HTML Video Tags?
I know MP4 and OGG files will but the thing that I am working on will produce an FLV file.
解决方案
You should look at video.js from www.videojs.com I have been using it streaming live video feeds. It mimicks the video tag like this:
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="480" poster="http://video-js.zencoder.com/oceans-clip.png" data-setup='{"example_option":true}'> <source src="rtmp://localhost/live/test" type="rtmp/flv"> </video>
Works very well for me.
这篇关于如何在HTML视频标签中播放FLV视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
08-20 19:58