You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the application scene, When I'm playing the movie with ExoPlayer on Phone, normally the sound output through the speaker. When a headphone is plugged into the jack, the sound directly to the headphone. I hope even if a headphone is plugged into the jack, I still need to force output through the phone speaker. At the same time, I want to use the headphone to communicate with other guys. Is there any way to implement this?
The text was updated successfully, but these errors were encountered:
forcing-sound-output-through-speaker-in-android This worked to force sound output through speaker when ExoPlayer playing the movie if a headphone is plugged into the jack. But at the same time, to open the audio player app, the audio's sound also output through speaker, not headphone.
Media Routing supports changing the output device, but I believe speaker and wired headphones are considered the same device, so your use-case doesn't seem supported.
They are other ways to control the audio routing but are either system APIs or too crude to support your use-case (eg: setSpeakerphoneOn).
Closing as this is not related to ExoPlayer but media routing APIs in general.
In the application scene, When I'm playing the movie with
ExoPlayer
on Phone, normally the sound output through the speaker. When a headphone is plugged into the jack, the sound directly to the headphone. I hope even if a headphone is plugged into the jack, I still need to force output through the phone speaker. At the same time, I want to use the headphone to communicate with other guys. Is there any way to implement this?The text was updated successfully, but these errors were encountered: