The recording process works as intended on iOS 12 and iOS 13, but when playing an mp3 or wav from an <audio> (or even playing a file with a <video> element), the iPhone's internal speaker is used for speaker playback instead of the loudspeaker. This only happens after initiating/using getUserMedia(), and if the microphone is not initiated/used, then the audio playback properly uses the loudspeaker located on the front of the phone. Does anyone know why this occurs and/or how it can be circumvented to allow speaker playback through the front-facing loudspeaker after calling getUserMedia() instead of being limited to the forced bottom-facing internal speaker?
The recording process works as intended on iOS 12 and iOS 13, but when playing an mp3 or wav from an
<audio>
(or even playing a file with a<video>
element), the iPhone's internal speaker is used for speaker playback instead of the loudspeaker. This only happens after initiating/usinggetUserMedia()
, and if the microphone is not initiated/used, then the audio playback properly uses the loudspeaker located on the front of the phone. Does anyone know why this occurs and/or how it can be circumvented to allow speaker playback through the front-facing loudspeaker after calling getUserMedia() instead of being limited to the forced bottom-facing internal speaker?