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

129
Views
JS currentTime of video HTMLelement doesn't work

I have the problem in redmine. Video attachments absolutly cannot be seeking. I deleted all js scripts working on videos and tried to change 'currentTime'. It doesn't work. I checked it with different video files, changed webm/mp4, tried to use 'video-js'. Video still cannot be seeking.

Simplisticaly this code do nothing

media = document.querySelector('video')
console.log(media.duration) // 119.03
media.currentTime = 10 // do nothing

The event 'seeking' works only at the beggining.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Normally, code above should work. Have your tried on different browsers.

const media = document.querySelector('video');
media.currentTime = 5;
<video src="https://glpjt.s3.amazonaws.com/so/av/vid5.mp4" width='240' controls></video>

about 4 years ago · Juan Pablo Isaza Report

0

I decide my trouble for rails. Its need to add for video file requests:

headers['Accept-Ranges'] = 'bytes'

Good luck, guys!

about 4 years ago · Juan Pablo Isaza Report
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!