mirror of
https://github.com/zoriya/react-native-video.git
synced 2025-12-19 21:55:15 +00:00
Don't pause when detaching
This commit is contained in:
@@ -202,7 +202,10 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
@Override
|
@Override
|
||||||
protected void onDetachedFromWindow() {
|
protected void onDetachedFromWindow() {
|
||||||
super.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
|
// LifecycleEventListener implementation
|
||||||
|
|||||||
Reference in New Issue
Block a user