Skip to content

Commit

Permalink
Fix invalid play/pause button state when entering immersive videos (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Dec 18, 2019
1 parent c4770a3 commit 379b8f1
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -278,10 +278,7 @@ public void setMedia(Media aMedia) {
onTimeChange(mMedia.getMediaElement(), mMedia.getCurrentTime());
onVolumeChange(mMedia.getMediaElement(), mMedia.getVolume(), mMedia.isMuted());
onReadyStateChange(mMedia.getMediaElement(), mMedia.getReadyState());
if (mMedia.isPlaying()) {
onPlaybackStateChange(mMedia.getMediaElement(), MediaElement.MEDIA_STATE_PLAY);
}

onPlaybackStateChange(mMedia.getMediaElement(), mMedia.isPlaying() ? MediaElement.MEDIA_STATE_PLAY : MediaElement.MEDIA_STATE_PAUSE);
mMedia.addMediaListener(this);
}

Expand Down

0 comments on commit 379b8f1

Please sign in to comment.