[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:
parent
d792427ce1
commit
e41d0f574e
@ -171,7 +171,7 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHostResume() {
|
public void onHostResume() {
|
||||||
startPlayback();
|
setPlayWhenReady(!isPaused);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user