mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-25 09:30:32 +00:00
Merge pull request #556 from mauriciocolli/fix-audio-focus
Improve behavior on audio focus gain
This commit is contained in:
commit
a508539c2e
@ -320,7 +320,6 @@ public abstract class BasePlayer implements ExoPlayer.EventListener, AudioManage
|
|||||||
if (DEBUG) Log.d(TAG, "onAudioFocusGain() called");
|
if (DEBUG) Log.d(TAG, "onAudioFocusGain() called");
|
||||||
if (simpleExoPlayer != null) simpleExoPlayer.setVolume(DUCK_AUDIO_TO);
|
if (simpleExoPlayer != null) simpleExoPlayer.setVolume(DUCK_AUDIO_TO);
|
||||||
animateAudio(DUCK_AUDIO_TO, 1f, DUCK_DURATION);
|
animateAudio(DUCK_AUDIO_TO, 1f, DUCK_DURATION);
|
||||||
simpleExoPlayer.setPlayWhenReady(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onAudioFocusLoss() {
|
protected void onAudioFocusLoss() {
|
||||||
|
Loading…
Reference in New Issue
Block a user