mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-19 20:48:08 +00:00
Changing AudioFocus mode to exclusive
We had problem with others music applications during call
This commit is contained in:
parent
abf318f0dc
commit
b416397b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -1533,7 +1533,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
|||
|
||||
private void requestAudioFocus(int stream){
|
||||
if (!mAudioFocused){
|
||||
int res = mAudioManager.requestAudioFocus(null, stream, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT );
|
||||
int res = mAudioManager.requestAudioFocus(null, stream, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE );
|
||||
Log.d("Audio focus requested: " + (res == AudioManager.AUDIOFOCUS_REQUEST_GRANTED ? "Granted" : "Denied"));
|
||||
if (res == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) mAudioFocused=true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue