Apply fix in playInBackground props
This commit is contained in:
parent
f73b7a0484
commit
f7b7f2666a
@ -167,6 +167,9 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
if (playInBackground) {
|
||||
return;
|
||||
}
|
||||
stopPlayback();
|
||||
}
|
||||
|
||||
@ -174,9 +177,6 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
|
||||
@Override
|
||||
public void onHostResume() {
|
||||
if (playInBackground) {
|
||||
return;
|
||||
}
|
||||
setPlayWhenReady(!isPaused);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user