如何在HTML视频标签中播放FLV视频?
16lz
2021-01-22
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.
我已经看过一些播放器,比如Flow Player, JW Player,还有一些,但是我不能让它在PHP代码中工作。
Is there any way to play FLV within HTML Video Tags?
有办法在HTML视频标签中播放FLV吗?
I know MP4 and OGG files will but the thing that I am working on will produce an FLV file.
我知道MP4和OGG文件,但是我正在做的事情将会产生一个FLV文件。
4 个解决方案
#1
10
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:
你应该看看视频。js来自www.videojs.com,我一直在使用它流直播视频。它像这样模仿视频标签:
<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标签,如何转换
- 9.1.4 前端 - HTML body标签 - 标题,段落,分割线,换行,特殊符号,列
- 怎么用.net把带html标签的字符导出到Excel
- 用Jsoup实现html中标签替换
- HTML5新增标签与属性
- HTML新手求解。关于CSS对于li标签的active状态的背景颜色
- html5 css3 背景视频循环播放代码
- HTML5 标签audio添加网页背景音乐代码
- AngularJS使用双向数据绑定将img元素标签中的图像显示为源?