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.

Seeking to video end in Firefox and Safari crashes Shaka

See original GitHub issue

When I seek past the end in FF or Safari, the progress bar disappears and the video doesn’t seek or play anymore.

Have you read the FAQ and checked for duplicate open issues? There’s a similar issue (#1363), but that was blamed on a (fixed) Safari Bug. This happens in Firefox also.

What version of Shaka Player are you using? 2.5.1

Can you reproduce the issue with our latest release version? Yip

Can you reproduce the issue with the latest code from master? Didn’t try

Are you using the demo app or your own custom app? Problem happens in both

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using? Firefox 67 (recent versions of Mac OS, Windows, Fedora, Android) Safari 12.1.1 (recent version of Mac OS)

Could not reproduce either in Chrome or the Microsoft Browsers (no, not even in IE11 ^^)

What did you do? Begin playing the stream Seek to (or past) the very end. Try a few times, move mouse back and forth.

What did you expect to happen? That the last frame is displayed and the player stops, but keeps its functionality

What actually happens? The progress bar disappears, errors are displayed in console:

Assertion failed: duration must be > 0 presentation_timeline.js:127:16 Failed to move playhead from 0 to -1 video_wrapper.js:278:17 (Firefox)

[Error] Unhandled Promise Rejection: shaka.util.Error { "severity": 2, "category": 3, "code": 3015, "data": [ { "line": 714, "column": 36, "sourceURL": "https://shaka-player-demo.appspot.com/lib/media/media_source_engine.js" } ], "handled": false, "message": "Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW (InvalidStateError: The object is in an invalid state.)", "stack": "Error@https://shaka-player-demo.appspot.com/lib/util/error.js:88:22\nhttps://shaka-player-demo.appspot.com/lib/media/media_source_engine.js:1006:48\n[native code]\npromiseReactionJob@[native code]" } (anonymous function) promiseReactionJob (Safari)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TheModMakercommented, Jun 26, 2019

I was able to reproduce occasionally. You need to drag the slider past the end to get it. It appears to be a browser bug where the MediaSource.duration value has been reset to 0 for some reason, even though we didn’t change it. I can add a fix to ignore this case.

0reactions
mehtmehtsencommented, Jun 11, 2019

So you seem to be the lucky one who is on a system where it’s working. 😃 Or maybe you can actually reproduce the problem if you try some more. In the video I recorded you can see it takes some time, but at other times it happens pretty quick. Did you notice the error message Assertion failed: duration must be > 0 (presentation_timeline.js:127:16) in my video? Maybe that is more relevant to the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Seeking to video end in Firefox and Safari crashes Shaka #1967
There's a similar issue (#1363), but that was blamed on a (fixed) Safari Bug. This happens in Firefox also. What version of Shaka...
Read more >
firefox crashes when I go to a page with a video or an animation
one thing you could try is to enter about:config into the firefox address bar (confirm the info message in case it shows up)...
Read more >
IOS 15 Safari fails with Fairplay DRM playback
The error didn't come from video.js EME extension. To reproduce you can try implement FairPlay using pure JavaScript or using FPS_in_Safari_Example.html that ...
Read more >
461733 - MSE - cannot seek when video.duration set to Infinity
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2314.0 Safari/537.36. Example URL:
Read more >
video downloader plugin firefox
Video Downloader Plugin FirefoxClick the menu button in the top right of your ... Shaka Player is an open-source JavaScript library for adaptive...
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