New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting currentTime before loading video breaks shaka-player on firefox (NS_ERROR_DOM_MEDIA_METADATA_ERR) #4363
Comments
Can you be more specific? Are you setting Also, have you tried the |
I agree that it's probably a bug, but it sounds like a bug in Firefox to me, and one that In your case, the user action occurs outside the player, and the error is generated by the platform. So I don't think we can do anything else about it other than recommend you implement the user action through our existing workaround. Does this help? |
Alright I wrote a wrapper that checks if the video is already loaded or not, if it is, it just seeks the video element, if not, it sets the initialStartTime to be used when it starts loading using player.load(). Works fine for now, thanks! |
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.3.0 works, >=3.3.1 fails
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
main
?Yes
Are you using the demo app or your own custom app?
3.3.1: https://5d6qk1.csb.app/
3.3.0: https://qs4ony.csb.app/
If custom app, can you reproduce the issue using our demo app?
Probably not, since it's not setting currentTime.
What browser and OS are you using?
Firefox 102.0.1
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
n/a
What are the manifest and license server URIs?
Tested it with https://dev-raw.tella.tv/cl5qwe6ln0006txeqgs1g3ilp/output.mpd
What configuration are you using? What is the output of
player.getConfiguration()
?See codesandbox
What did you do?
Setting video.currentTime before attaching and loading shaka player breaks on version >=3.3.1 and worked before that. NS_ERROR_DOM_MEDIA_METADATA_ERR is thrown in firefox.
What did you expect to happen?
It should allow me to set the initial currentTime for the video element and load the manifest appropriately. I don't want to have a flash of 0 and then seek, I want it to load at a specific time.
What actually happened?
Somehow firefox can't load the media when currentTime has been set before loading the video.
I checked the changelog and think that maybe it's this PR that might have broken this behavior:
#3795
The text was updated successfully, but these errors were encountered: