目录
结论
为了防止zlm音频配置里设置成opus优先,在国标推流时,调用push时,默认加上codec=pcma
如下
https://10.60.100.196:10443/index/api/webrtc?app=live\&stream=test\&type=push\&**codec=pcma**
原理


测试
在原来的push的api参数里加上编码的自定义 ,如下
&codec=opus
https://10.60.100.196:10443/index/api/webrtc?app=live&stream=test&type=push&codec=opus


同测试下
https://10.60.100.196:10443/index/api/webrtc?app=live&stream=test&type=push&codec=pcmu
