Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

302
Views
hls.js currentTime no funciona cómo iniciar el video desde x segundos

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>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!