pausePlayback() function deleted because it was causing play/pause problem when content playing fullscreen

https://github.com/react-native-video/react-native-video/issues/2130
This commit is contained in:
ahmetberkinc 2021-10-12 12:41:10 +03:00
parent a42cfdbb5c
commit 8cbbb1334f

View File

@ -701,9 +701,6 @@ class ReactExoplayerView extends FrameLayout implements
switch (focusChange) {
case AudioManager.AUDIOFOCUS_LOSS:
eventEmitter.audioFocusChanged(false);
//ANDROID FULLSCREEN PLAY/PAUSE PROBLEM FIXED [Ahmet Berk İnçoğlu](https://github.com/ahmetberkinc)
//https://github.com/react-native-video/react-native-video/issues/2130
// pausePlayback();
audioManager.abandonAudioFocus(this);
break;
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: