Merge pull request #2 from ahmetberkinc/android-fullscreen-play-pause-fix

Android fullscreen play/pause bug fixed
This commit is contained in:
Olgun Kaya 2021-10-12 14:52:15 +03:00 committed by GitHub
commit e7933187e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,7 +701,6 @@ class ReactExoplayerView extends FrameLayout implements
switch (focusChange) { switch (focusChange) {
case AudioManager.AUDIOFOCUS_LOSS: case AudioManager.AUDIOFOCUS_LOSS:
eventEmitter.audioFocusChanged(false); eventEmitter.audioFocusChanged(false);
pausePlayback();
audioManager.abandonAudioFocus(this); audioManager.abandonAudioFocus(this);
break; break;
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: