You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langhuihui
c2f692a03a
|
4 years ago | |
---|---|---|
.gitignore | 4 years ago | |
LICENSE | 5 years ago | |
README.md | 4 years ago | |
go.mod | 4 years ago | |
go.sum | 4 years ago | |
main.go | 4 years ago |
README.md
webrtc 插件
提供通过网页发布视频到monibuca,以及从monibuca拉流通过webrtc进行播放的功能
基本原理
通过浏览器和monibuca交换sdp信息,然后读取rtp包或者发送rtp的方式进行
API
- /api/webrtc/play?streamPath=live/rtc 用于播放live/rtc的流,需要在请求的body中放入sdp的json数据,这个接口会返回服务端的sdp数据
- /api/webrtc/publish?streamPath=live/rtc 同上