vue 项目中 web aliWebrtc 订阅纯音频流为啥没有声音? 求大神指点
经过多次测试 发现在安卓设备上发布的音频流 ,PC上可以播放 而ios设备上发布的音频流却无法订阅
//当远程用户推流时,在SDK里会触发onPublisher回调,通过订阅这个回调,能够得到频道里已经推流的用户
aliWebrtc.on('onPublisher', () => {
console.log('用户推流--- onPublisher')
//订阅远程流
aliWebrtc.subscribe(.userId).then(() => {
console.log('订阅远程流成功~')
aliWebrtc.setDisplayRemoteVideo(buserId, this.$refs.htmlVideo, 1);
}).catch(error => {
console.log(error.message, '订阅错误回调');
});
})
这个回调没有触发 有没有打
赞0
踩0