概述
WHIP/WHEP都是基于 HTTP 的协议并且是IETF国际标准,国内外一些主流的开源webRTC SFU都开始支持WHIP/WhEP协议。
WHIP: WebRTC-HTTP ingestion protocol (WHIP)
WHEP: WebRTC-HTTP egress protocol (WHEP)
下载源码
GitHub - metartc/metaRTC: A cross-platform WebRTC SDKA cross-platform WebRTC SDK. Contribute to metartc/metaRTC development by creating an account on GitHub.https://github.com/metartc/metaRTC
metaRTC: metaRTC为纯C版本的webrtc 可与谷歌webrtc类库互通,支持Webrtc/SRT/RTMPhttps://gitee.com/metartc/metaRTC
whip/whep编程
新增whip/whep API
-
int32_t (*connectWhipWhepServer)(YangPeer* peer,char* url);
- int32_t connectWhipServer(char* url);
whip推流
streamconfig.direction=YangSendonly;
whep拉流
streamconfig.direction=YangRecvonly;