Skip to content

Commit

Permalink
Fix invalid play/pause button state when entering immersive videos (M…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and Alexandre Lissy committed Jan 21, 2020
1 parent 9de5a1d commit a395821
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
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 a395821

Please sign in to comment.