Revert setPlayWhenReady change
This commit is contained in:
parent
fab55f4d5c
commit
da7bd43011
@ -223,14 +223,12 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
player.setMetadataOutput(this);
|
player.setMetadataOutput(this);
|
||||||
exoPlayerView.setPlayer(player);
|
exoPlayerView.setPlayer(player);
|
||||||
audioBecomingNoisyReceiver.setListener(this);
|
audioBecomingNoisyReceiver.setListener(this);
|
||||||
|
setPlayWhenReady(!isPaused);
|
||||||
playerNeedsSource = true;
|
playerNeedsSource = true;
|
||||||
|
|
||||||
PlaybackParameters params = new PlaybackParameters(rate, 1f);
|
PlaybackParameters params = new PlaybackParameters(rate, 1f);
|
||||||
player.setPlaybackParameters(params);
|
player.setPlaybackParameters(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
setPlayWhenReady(!isPaused);
|
|
||||||
|
|
||||||
if (playerNeedsSource && srcUri != null) {
|
if (playerNeedsSource && srcUri != null) {
|
||||||
MediaSource mediaSource = buildMediaSource(srcUri, extension);
|
MediaSource mediaSource = buildMediaSource(srcUri, extension);
|
||||||
mediaSource = repeat ? new LoopingMediaSource(mediaSource) : mediaSource;
|
mediaSource = repeat ? new LoopingMediaSource(mediaSource) : mediaSource;
|
||||||
|
Loading…
Reference in New Issue
Block a user