Janusz Chudzynski
Janusz Chudzynski

Reputation: 2710

Firefox html5 video rewinds instead of playing

I am using video tag on my website. It works with every major browser, but I am running into issues with Firefox.

When I tap on the play button video scrolls to the end of video!

In order to start the video I need to rewind video to position other than start and than click on play. Weird. I tried to set initial position of video to 1s but it didn't help. I still need to scroll it manually. Any help will be appreciated. Thank you

<video width="80% height="80%" controls id="video1">
          <source src="videos/<cfoutput>#getVideo.URL#</cfoutput>.mp4" type="video/mp4">
          <source src="videos/<cfoutput>#getVideo.URL#</cfoutput>.ogv" type="video/ogg">
          <source src="videos/<cfoutput>#getVideo.URL#</cfoutput>.webmhd.webm" type="video/webm">
          Your browser does not support the video tag. 
</video>

Javascript:

Upvotes: 0

Views: 354

Answers (1)

mark4o
mark4o

Reputation: 60843

Your WebM or OGV video may have negative or invalid timestamps. Some software produces video that starts at a time slightly less than zero, particularly if the audio and video frames are not aligned to start at the same time. (That is, the video may start slightly before 0 and the audio may start at 0.)

If the video is produced with ffmpeg, try using the option -avoid_negative_ts 1.

If you have the mkvtoolnix package installed you can view the timestamps in a webm file with the command mkvinfo -s file.webm.

Upvotes: 1

Related Questions