openwebrtc-examples icon indicating copy to clipboard operation
openwebrtc-examples copied to clipboard

iOS NativeDemo: Use external speaker

Open stefanalund opened this issue 10 years ago • 1 comments

Possibly switch to "internal" speaker when phone is hold by the ear.

stefanalund avatar Oct 14 '15 06:10 stefanalund

Something to do with this: https://developer.apple.com/library/ios/documentation/AudioToolbox/Reference/AudioSessionServicesReference/index.html#//apple_ref/doc/constant_group/Audio_Session_Category_Route_Overrides but the osxaudiosink element has a device property that most likely can be used to switch to the speaker and back. There are rules for how these behave when you connect a headset too.

Side note: when putting the phone up to your ear, it would be nice if the screen went black and became unresponsive like the Apple Phone stuff does.

superdump avatar Oct 14 '15 07:10 superdump