He estado tratando de hacer un reproductor html5 para reproducir archivos m3u8 pero quiero comenzar desde x segundos pero no funciona.
<html> <head> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.2/jquery.min.js'></script> <script src="https://cdn.jsdelivr.net/hls.js/latest/hls.min.js"></script> </head> <body> <video id="video" width="100%" autoplay height="100%" controls class="player"> <track src="subtitles" label="English" kind="subtitles" srclang="en" default> </video> <script> var video = document.getElementById('video'); var startTime = 55; if(Hls.isSupported()) { var hls = new Hls(); hls.loadSource('https://vz-f68ee764-984.b-cdn.net/73e38955-bf02-4129-84b8-981f596a5fe0/3840x2160/video.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function() { video.play(); video.currentTime = startTime; }); } </script> </body> </html>