ffmpeg本地视频文件直播推流+web播放器无插件直播

这个场景中,咱们能够直接利用强大的ffmpeg将本地文件,以直播的方式输出html

ffmpeg -re -stream_loop -1 -fflags +genpts -i F:\05CACHE\ss.mp4  -vcodec copy -acodec copy -strict -2 -f flv -y rtmp://demo.liveqing.com:10085/hls/marvin1311

此处的rtmp://demo.liveqing.com:10085/hls/test 是示例的推流服务地址git

点击此处搭建本身的云直播服务web

运行以下:
ide

此时rtmp://demo.liveqing.com:10085/hls/marvin1311 也是播放地址oop

如何解决无插件直播?

除了一路.net

此时流媒体服务提供了另外的两路流插件

Web直播/点播播放器

点击使用liveplayer进行播放code

也可使用流媒体服务提供的播放器服务
http://demo.liveqing.com:10080/LivePlayer.htmlhtm

点击下面的地址便可播放
http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=rtmp://demo.liveqing.com:10085/hls/marvin1311blog

http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=http://demo.liveqing.com:10080/hls/marvin1311/marvin1311_live.m3u8

http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=http://demo.liveqing.com:10080/flv/hls/marvin1311.flv

相关文章
相关标签/搜索