Merge pull request #1287 from react-native-community/chore/dont-detach

ExoPlayer: Don't stop playback when detaching
This commit is contained in:
Hampton Maxwell 2018-10-13 20:40:48 -07:00 committed by GitHub
commit 80db7a35a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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