How to set phone speaker as default audio output in webview (Ionic)
问题 I have implemented twilio VOIP in ionic framework. When i trigger call at that time phone speaker will serve as default audio output source instead of phone default speaker. I have try using getUserMedia() but i haven't fount correct way. I want something cool like audio.setSpeaker(phoneSpeaker) 回答1: I have found cordova plugin that toggle speakers. these plugin will found here https://github.com/alongubkin/audiotoggle cordova plugin add audiotoggle 来源: https://stackoverflow.com/questions