can't loop video using 'ended' event listener with video.js -
i trying video loop using video.js. on android @ least, 'loop' tag doesn't work. found posts online said listen 'ended' event , use set currenttime , play again.
but doesn't work me. seems 'ended' function not ever called. sound familiar anyone?
thanks
oop found this: ended event videojs not working
those holes should update fancy-looking api documentation! http://www.videojs.com/docs/api/
now 'ended' function being called -- stupid video still doesn't loop? ideas? here function:
var myfunc = function() { var myplayer = this; console.log('ended current time = '+myplayer.currenttime()); console.log(' duration: '+myplayer.duration()); myplayer.currenttime(0); myplayer.play(); }; myplayer.on('ended',myfunc);
it reports current time being 0 when ended function called. doesn't seem right. have experience this? these short looping clips trying play, few seconds anyway. maybe video.js can't handle that?
Comments
Post a Comment