Loading android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +8 −1 Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ class ReactExoplayerView extends FrameLayout implements private boolean repeat; private boolean disableFocus; private float mProgressUpdateInterval = 250.0f; private boolean playInBackground = false; // \ End props // React Loading Loading @@ -171,11 +172,17 @@ class ReactExoplayerView extends FrameLayout implements @Override public void onHostResume() { if (playInBackground) { return; } setPlayWhenReady(!isPaused); } @Override public void onHostPause() { if (playInBackground) { return; } setPlayWhenReady(false); } Loading Loading @@ -605,7 +612,7 @@ class ReactExoplayerView extends FrameLayout implements public void setPlayInBackground(boolean playInBackground) { // TODO: implement this.playInBackground = playInBackground; } public void setDisableFocus(boolean disableFocus) { Loading Loading
android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +8 −1 Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ class ReactExoplayerView extends FrameLayout implements private boolean repeat; private boolean disableFocus; private float mProgressUpdateInterval = 250.0f; private boolean playInBackground = false; // \ End props // React Loading Loading @@ -171,11 +172,17 @@ class ReactExoplayerView extends FrameLayout implements @Override public void onHostResume() { if (playInBackground) { return; } setPlayWhenReady(!isPaused); } @Override public void onHostPause() { if (playInBackground) { return; } setPlayWhenReady(false); } Loading Loading @@ -605,7 +612,7 @@ class ReactExoplayerView extends FrameLayout implements public void setPlayInBackground(boolean playInBackground) { // TODO: implement this.playInBackground = playInBackground; } public void setDisableFocus(boolean disableFocus) { Loading