custom-html5-video
custom-html5-video copied to clipboard
Firefox time#duration issue
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
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
This is still an issue with modern Firefox.
Add initializeVideo()
at the end of the JS file.