javascript - Load and Play playlist.m3u8 to START at a specific time on an iPad? -


i've got piece of code working on ff/ie, listener being ignored when on ipad. started "canplay" event, found loadmetadata event [here][1]. not sure how else tell ipad go start point - suggestions?

<video id='video' controls preload='none' >     <p>your user agent not support html5 video element.</p> </video>  // firefox , develpent var src = 'http://media.w3.org/2010/05/video/movie_300.webm'; // actual ipad production environment using our wowza media server var src = 'http://www.ourwowzaserver/videos/mp4:ourvideo.mp4/playlist.m3u8';  var start_seconds = 45;  document._video = document.getelementbyid("video"); document._video.setattribute("src", src); document._video.play(); document._video.addeventlistener('loadedmetadata', function() {         this.currenttime = start_seconds;     }, false);   [1]: http://stackoverflow.com/questions/5981427/start-html5-video-at-a-particular-position-when-loading   

have tried using dom event?

document._video.onloadedmetadata=document._video.currenttime = start_seconds;

http://www.w3schools.com/tags/av_event_loadedmetadata.asp


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -