Loading android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +5 −0 Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ class ReactExoplayerView extends FrameLayout implements private int resumeWindow; private long resumePosition; private boolean loadVideoStarted; private boolean isInBackground; private boolean isPaused = true; private boolean isBuffering; private float rate = 1f; Loading Loading @@ -174,11 +175,15 @@ class ReactExoplayerView extends FrameLayout implements @Override public void onHostResume() { if (!playInBackground || !isInBackground) { setPlayWhenReady(!isPaused); } isInBackground = false; } @Override public void onHostPause() { isInBackground = true; if (playInBackground) { return; } Loading Loading
android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +5 −0 Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ class ReactExoplayerView extends FrameLayout implements private int resumeWindow; private long resumePosition; private boolean loadVideoStarted; private boolean isInBackground; private boolean isPaused = true; private boolean isBuffering; private float rate = 1f; Loading Loading @@ -174,11 +175,15 @@ class ReactExoplayerView extends FrameLayout implements @Override public void onHostResume() { if (!playInBackground || !isInBackground) { setPlayWhenReady(!isPaused); } isInBackground = false; } @Override public void onHostPause() { isInBackground = true; if (playInBackground) { return; } Loading