custom-html5-video icon indicating copy to clipboard operation
custom-html5-video copied to clipboard

Firefox time#duration issue

Open nichtsooft opened this issue 3 years ago • 3 comments

Hi there!

When I'm loading the demo-site "custom-html5-video.surge.sh" using Mozilla Firefox v87 (on Windows x64) the first time, everything works fine. When I'm reloading the page, the script is unable to read the video duration (see attachment). The console doesn't output any related warnings or errors. This also occures using other mp4 video sources independent from the server. I tried the code on my server as well.

https://user-images.githubusercontent.com/44983792/114618497-b4b37d00-9ca9-11eb-9fb9-482b6f96a66c.mp4

I tried adding a default max-attribute to #seek and a lot of other things including changing the method to access the "max"-attribute to element.max instead of element.getAttribute('max') but I can't get it to work. 🤷🏻‍♂️

Greetz, nichtsooft

nichtsooft avatar Apr 13 '21 20:04 nichtsooft

Thanks for opening this issue. I can reproduce it on Firefox 88 also on Windows. Will investigate and update this issue soon if I find a solution

ayoisaiah avatar Apr 14 '21 16:04 ayoisaiah

This is still an issue with modern Firefox.

SudoVanilla avatar Oct 16 '23 15:10 SudoVanilla

Add initializeVideo() at the end of the JS file.

SudoVanilla avatar Oct 16 '23 15:10 SudoVanilla