question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V3] [3.0.2] IE11 throws InvalidStateError and video is not played

See original GitHub issue

Expected 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: image

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:closed
  • Created 6 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sampottscommented, Apr 3, 2018

OK will make the change and wait longingly for IE11 to fade away into the past.

2reactions
MBWebTechMariuszcommented, Apr 3, 2018

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)) {

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found