mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-04 14:32:42 +08:00
4213e3a685ff6ba9b2a203d06ca87ccf73cba9e2
WebRTC 插件
提供通过网页发布视频到monibuca,以及从monibuca拉流通过webrtc进行播放的功能,遵循WHIP规范
插件地址
https://github.com/Monibuca/plugin-webtrc
插件引入
import ( _ "m7s.live/plugin/webrtc/v4" )
基本原理
通过浏览器和monibuca交换sdp信息,然后读取rtp包或者发送rtp的方式进行
API
播放地址
/webrtc/play/[streamPath]
Body: SDP
Content-Type: application/sdp
Response Body: SDP
推流地址
/webrtc/push/[streamPath]
Body: SDP
Content-Type: application/sdp
Response Body: SDP
WHIP
WebRTC-HTTP ingestion protocol 用于WebRTC交换SDP信息的规范
Languages
Go
80.1%
HTML
19.9%