Commit e41d0f57 authored by Jakob Hilden's avatar Jakob Hilden Committed by Matt Apperson
Browse files

[ExoPlayer] Value of `paused` prop should be respected when resuming the app (#486)

Before, when you resumed the app the player would **always** start playing again.

After this changed the `paused` prop of the `Video` component (which is the `isPaused` variable internally)
is consulted on resume for whether or not the playback should resume as well.
parent d792427c
Loading
Loading
Loading
Loading
+1 −1
Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ class ReactExoplayerView extends FrameLayout implements

    @Override
    public void onHostResume() {
        startPlayback();
        setPlayWhenReady(!isPaused);
    }

    @Override