You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small update this works for me in chrome
player = MediaPlayer().create();
player.initialize(document.getElementById("video"), url, false);
player.play();
But when I do not have player.play and use default controls noting is calling playing.play just element.play and it fails. will fix this now.
dsparacio
pushed a commit
to dsparacio/dash.js
that referenced
this issue
Jan 30, 2016
When autoplay is set to false, the player does not play when
play()
is called on the<video>
element. It might be that #999 broke it.For example, take the following code:
Now calling
player.play()
does load the video in the element, but not play it. Calling it again, or callingvp.play()
will start playing.The following combinations work:
vp.play(); player.play();
player.play(); vp.play();
player.play();setTimeout(function() { player.play(); }, 1000);
What does not work:
vp.play();
player.play();
player.play(); player.play();
vp.play(); vp.play();
It seems that the
MediaPlayer.play()
method does something (async) but does not play afterwards.If
autoplay
is true, the HTML5 video element will play as soon as data is loaded and theMediaPlayer
will callplay
internally, so it does work.The text was updated successfully, but these errors were encountered: