Merge pull request #2 from ahmetberkinc/android-fullscreen-play-pause-fix
Android fullscreen play/pause bug fixed
This commit is contained in:
commit
e7933187e2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user