[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.
This commit is contained in:
Jakob Hilden 2017-02-14 03:38:15 +01:00 committed by Matt Apperson
parent d792427ce1
commit e41d0f574e

View File

@ -171,7 +171,7 @@ class ReactExoplayerView extends FrameLayout implements
@Override
public void onHostResume() {
startPlayback();
setPlayWhenReady(!isPaused);
}
@Override