目前SRS对WebRTC的支持进度如下:
- SRS4.0.14,支持了RTMP推流,WebRTC播放。
- SRS4.0.76,支持了WebRTC推流,WebRTC播放。
- 开发中,WebRTC推流,RTMP播放。
相关Wiki(会在开发完成后完善):
https://www.jianshu.com/p/acb4f2af44b5
下载代码:
wget https://github.com/ossrs/srs/archive/v4.0.76.tar.gz
tar -zxvf srs-4.0.76.tar.gz
cd /usr/local/srs-4.0.76/trunk
./configure --with-hls --with-ssl --with-http-server --with-http-callback --with-http-api --with-ingest --with-stream-caster && make
./objs -c conf/rtc.conf
推流地址:
rtmp://192.168.12.187:1935/live/1
拉流地址:
rtmp://10.130.24.200/live/1