WebRTC control audio playback on android mobile device - chrome broswer

江枫思渺然 提交于 2019-12-23 17:49:50

问题


Android Chrome V(50.0.2661.89) has webRTC support. So i'm trying to set up Webrtc call between Mobile chrome browser and Desktop. All works good. But on Android mobile (Samsung S4, all event few more brands). audio output is coming on both Ear piece and External speaker. I could not control the output audio to playback only on Ear piece. Like normal mobile calls. <audio> tag has ability to set playback device id by using this HTMLMediaElement.setSinkId(sinkId).then(function() { ... }) but in mobile chrome its not enabled. If it try to get all media devices. it gives only 1 kind audio output as default. I know this possible in native android app, But did anyone succeed in getting this playback control on mobile browser? Please post your comments if you have any idea on this.

I've attached by mobile chrome console for reference.

来源:https://stackoverflow.com/questions/37589959/webrtc-control-audio-playback-on-android-mobile-device-chrome-broswer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!