Skip to content
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

Updating src on player causes 'unable to decode' #151

Open
BakurL opened this issue Oct 29, 2021 · 5 comments
Open

Updating src on player causes 'unable to decode' #151

BakurL opened this issue Oct 29, 2021 · 5 comments

Comments

@BakurL
Copy link

BakurL commented Oct 29, 2021

Dynamically updating (changing) src of player on newer versions of Safari causes 'unable to decode'. Works on older versions (safari on osx 10.12). Is there a way to refresh eme without recreating new instances of player?

Steps to reproduce (tested on safari 15) - create player, initialize eme, set src (player plays), then change src info (src, certificate/license urls), player will fail with error CODE:3 MEDIA_ERR_DECODE.

@BakurL BakurL changed the title Updating src on player causes unable to decode Updating src on player causes 'unable to decode' Oct 29, 2021
@gkatsev
Copy link
Member

gkatsev commented Oct 29, 2021

Were you testing wih Safari 15 or Safari 15.1? Safari 15 definitely had issues related to fairplay, but it's supposedly fixed in 15.1.

@BakurL
Copy link
Author

BakurL commented Oct 29, 2021

Both actually, 15 and 15.1. Behaves the same way

@tiagobnobrega
Copy link

I'm experiencing the same... I could map it to the change on commit 58976556e19bd210a075b0190b0d0d45084b98c6

The check makes safari fall for the "standard" decrypted event... something is breaking when safari uses this encriptedEvent handler.

Changin the code inverting the "if" checks again (checking first for window.WebKitMediaKeys), fixes the issue on safari

@tiagobnobrega
Copy link

tiagobnobrega commented Nov 16, 2021

Were you testing wih Safari 15 or Safari 15.1? Safari 15 definitely had issues related to fairplay, but it's supposedly fixed in 15.1.

Maybe this is still not ok, unfortunately

Edited: I'm still on safari 15.0... not sure if on 15.1 is ok

@gkatsev
Copy link
Member

gkatsev commented Nov 16, 2021

Safari 15.0 is broken with Fairplay. 15.1 has mostly fixed things. I've seen some videos work with #142 in Safari 15.0, but it generally doesn't work.
I highly recommend to update to Safari 15.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants