Skip to content
Snippets Groups Projects
Commit 7e390656 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

* #36505: working implementation of audio rerouting

This is the first and very basic audio rerouting imp.
Corner cases needs to be treated
parent 8d893700
No related branches found
No related tags found
No related merge requests found
sflphone @ 03a65d05
Subproject commit d5d906a34ed72557306b9694e86991b0c10ba027
Subproject commit 03a65d05ce56c058cc3237812b30d86ec2d7a1f9
......@@ -37,6 +37,7 @@ public class MediaManager implements OnAudioFocusChangeListener {
public void obtainAudioFocus() {
mAudioManager.requestAudioFocus(this, Compatibility.getInCallStream(false), AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);
mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
}
@Override
......@@ -49,6 +50,7 @@ public class MediaManager implements OnAudioFocusChangeListener {
if (mAudioManager.isSpeakerphoneOn()) {
mAudioManager.setSpeakerphoneOn(false);
}
mAudioManager.setMode(AudioManager.MODE_NORMAL);
}
public void RouteToSpeaker() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment