Merge pull request #1287 from react-native-community/chore/dont-detach
ExoPlayer: Don't stop playback when detaching
This commit is contained in:
commit
80db7a35a2
@ -202,7 +202,10 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
stopPlayback();
|
||||
/* We want to be able to continue playing audio when switching tabs.
|
||||
* Leave this here in case it causes issues.
|
||||
*/
|
||||
// stopPlayback();
|
||||
}
|
||||
|
||||
// LifecycleEventListener implementation
|
||||
|
Loading…
Reference in New Issue
Block a user