title: RTMP date: 2024-11-25T15:39:54+08:00
nginx含rtmp服务:nginx 1.7.11.3 Gryphon.zip点击下载即可
nginx的config配置文件:nginxstreaming.zip点击下载即可
注意条件:
1、打开防火墙1935和80端口
2、注意修改文件名nginx
3、http://127.0.0.1/viewer.html可实现web播放
4、rtmp://127.0.0.1:1935/live/{推流码exp:stream1}配置文件
5、<source src="/hls/stream1.m3u8" type="application/vnd.apple.mpegurl" />增加复制viewer.html然后修改stream2即可
6、http://localhost:8085/player.html?url=http://localhost:8085/live/{推流码exp:stream1}.m3u8 网页观看