[V3] [3.0.2] IE11 throws InvalidStateError and video is not played
See original GitHub issueExpected behaviour
- IE11 should play the video
Actual behaviour
- IE11 doesn’t play it
Environment
- Browser: IE11
- Version: Latest
- Operating System: Win
- Version: 8.1
Steps to reproduce
See:
Proposed fix:
if(this.media.currentTime.toFixed(4) !== targetTime.toFixed(4)) {
// Set
this.media.currentTime = targetTime.toFixed(4);
// Logging
this.debug.log('Seeking to ' + this.currentTime + ' seconds');
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
audio.currentTime invalidStateError IE11, JS, HTML5
In IE11, this error occurs while accessing the currentTime attribute of video before the meta data of video is ...
Read more >Windows 10/Internet Explorer 11 - Unable to play Video content
I am no longer able to play video content from Internet Explorer 11 (OK with Firefox and Google Chrome) Receive message "An Error...
Read more >Internet explorer 11 under windows 10 does not play HTML5 ...
For some reason, my internet explorer just will not recognized HTML5 videos. I'm fairly certain that my computer is at fault, ...
Read more >Internet Explorer 11 doesn't play video - PlayCanvas Forum
Further, we have no problem direct playing standard Adobe encoded h.264/mp4 files on IE 11 from our website. Given that PlayCanvas plays video...
Read more >Is your Vue app not working in IE 11? Here's how to fix it.
SCRIPT1002: Syntax error; SCRIPT5022: Exception thrown and not caught; SCRIPT438: Object doesn't support property or method 'defineProperty' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK will make the change and wait longingly for IE11 to fade away into the past.
Unfortunately no, because in IE11 you can’t set the this.media.currentTime to the same time. It needs an if before that:
if(this.media.currentTime.toFixed(4) !== targetTime.toFixed(4)) {