html - html5 video element, start and end times -
html - html5 video element, start and end times -
i have html5 video element.
<video id="video" loop="loop"> <source src="src.mov"> </video>
i want start @ time in video (lets say... 10 seconds) , @ time (27 seconds)
i know can in javascript, want in html. there start / end time tag video element?
you can specify playback range appending start , end times source url.
the times should in format:
#t=[starttime][,endtime]
from mdn:
the playback range portion of media element uri specification added gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6).
here's illustration play video, starting sec 2 , ending @ sec 3:
class="snippet-code-html lang-html prettyprint-override"><video controls autoplay> <source src=http://techslides.com/demos/sample-videos/small.webm#t=2,3 type=video/webm> <source src=http://techslides.com/demos/sample-videos/small.ogv#t=2,3 type=video/ogg> <source src=http://techslides.com/demos/sample-videos/small.mp4#t=2,3 type=video/mp4> <source src=http://techslides.com/demos/sample-videos/small.3gp#t=2,3 type=video/3gp> </video>
references:
temporal dimension of media fragments uri record of mozilla integration (bug 648595) sample videos techslides.com
html html5
Comments
Post a Comment