Skip to content

Commit

Permalink
Revert "Fix invalid play/pause button state when entering immersive v…
Browse files Browse the repository at this point in the history
…ideos (MozillaReality#2488)"

This reverts commit 379b8f1.
  • Loading branch information
kearwood committed Dec 19, 2019
1 parent 379b8f1 commit 34c8961
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ public void setMedia(Media aMedia) {
onTimeChange(mMedia.getMediaElement(), mMedia.getCurrentTime());
onVolumeChange(mMedia.getMediaElement(), mMedia.getVolume(), mMedia.isMuted());
onReadyStateChange(mMedia.getMediaElement(), mMedia.getReadyState());
onPlaybackStateChange(mMedia.getMediaElement(), mMedia.isPlaying() ? MediaElement.MEDIA_STATE_PLAY : MediaElement.MEDIA_STATE_PAUSE);
if (mMedia.isPlaying()) {
onPlaybackStateChange(mMedia.getMediaElement(), MediaElement.MEDIA_STATE_PLAY);
}

mMedia.addMediaListener(this);
}

Expand Down

0 comments on commit 34c8961

Please sign in to comment.