When loading a webpage, it is necessary that the video be automatically downloaded, starting at half the full length. You must use the <video> . Tell me, please, with what can you implement?

    1 answer 1

    You can use 2 ways, with and without JS .

    Without JS :

    Add to the URL #t=[(start_time), (end_time)] . But here you need to know the start and end time of the video. Not supported in IE.

     <video id="video"> <source src="video.mp4#t=12,30" type="video/mp4"> </video> 

    With JS :

    The time is indicated in seconds from the beginning of the video.

     document.getElementById('video').addEventListener('loadedmetadata', function() { this.currentTime = 5; }, false);