鲜花店的网站建设,wordpress主题添加目录,洛阳市建设监理协会网站,wordpress全面本地化概述
ZLMediaKit是一个基于C11的高性能运营级流媒体服务框架#xff0c;是一个支持webrtc SFU的优秀的流媒体服务器系统。
metaRTC新版本支持whip/whep协议#xff0c;支持whip/whep协议的ZLMediaKit推拉流。
信令通信
ZLMediaKit新版本支持whip和whep协议#xff0c;支…概述
ZLMediaKit是一个基于C11的高性能运营级流媒体服务框架是一个支持webrtc SFU的优秀的流媒体服务器系统。
metaRTC新版本支持whip/whep协议支持whip/whep协议的ZLMediaKit推拉流。
信令通信
ZLMediaKit新版本支持whip和whep协议支持两种API。
HTTP API
metaRTC封装了HTTP API只需将参数mediaServer设置为zlm即可
avinfo.sys.mediaServerYang_Server_Zlm;
//zlm 默认端口为80
urlwebrtc://192.168.3.85:80/live/test
index/api/webrtc?applivestreamtesttypepushindex/api/webrtc?applivestreamtesttypeplay
Whip/Whep API
http://192.168.3.85:80/index/api/whip?applivestreamtesthttp://192.168.3.85:80/index/api/whep?applivestreamtest
音频参数
ZLMediaKit配置文件config.ini音频编码参数默认排序为PCMU,PCMA,opus,mpeg4-generic
如需用opus可调整其顺序如opus,PCMU,PCMA,mpeg4-generic
推流 streamconfig.directionYangSendonly; conn-addAudioTrack(Yang_AED_OPUS);//Yang_AED_PCMU Yang_AED_PCMAconn-addVideoTrack(Yang_VED_H264);conn-addTransceiver(streamconfig.direction); 拉流 m_context-avinfo.audio.audioDecoderTypeYang_AED_PCMU;if(m_context-avinfo.audio.audioDecoderTypeYang_AED_PCMU||m_context-avinfo.audio.audioDecoderTypeYang_AED_PCMA){m_context-avinfo.audio.sample8000;m_context-avinfo.audio.channel1;}streamconfig.directionYangRecvonly; conn-addAudioTrack(conn-peer, (YangAudioCodec)m_context-avinfo.audio.audioDecoderType);conn-addVideoTrack(conn-peer,Yang_VED_H264);conn-addTransceiver(conn-peer,conn-peer.streamconfig.direction);