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

MediaCapabilities.decodingInfo() failed on safari while playing DRM protected content using fairplay #3694

Closed
tkayage opened this issue Oct 12, 2021 · 5 comments
Labels
status: archived Archived and locked; will not be updated type: question A question from the community

Comments

@tkayage
Copy link

tkayage commented Oct 12, 2021

Have you read the Tutorials?
yes

Have you read the FAQ and checked for duplicate open issues?
yes

What version of Shaka Player are you using?
3.2.0

Please ask your question

I have been trying to play hls content which is DRM protected on safari. I have followed the guide on how to configure fairplay DRM but im still unable to play the content. I enabled the debug version for library. So far these are the logs seen on console:

[Info] Using native ARIAMixin interface. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Log] mathRound.install (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Log] MediaSource.install (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] Patching Safari 13 MSE bugs. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] Using Apple-prefixed EME (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Log] VideoPlayPromise.install (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] Using native VTTCue. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Log] MediaCapabilities: install (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Log] MediaCapabilities: Native mediaCapabilities support found. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Debug] EmeEncryptionSchemePolyfill: Already installed. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Debug] McEncryptionSchemePolyfill: Already installed. (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] Starting attach... (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] Starting load of ---LINK--- ... (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
[Info] MediaCapabilities.decodingInfo() failed. (2) (db7b53cd-5bbeb2013817f7bbf06f.js, line 1)
"{"type":"media-source","video":{"contentType":"video/mp4","width":1,"height":1,"bitrate":100,"framerate":1},"keySystemConfiguration":{"keySystem":"com.apple.fps.1_0","initDataType":"cenc","persistentState":"optional","distinctiveIdentifier":"optional","sessionTypes":["temporary"],"video":{"robustness":""}}}"TypeError: Type error — db7b53cd-5bbeb2013817f7bbf06f.js:1:119173
[Log] The video has now been loaded! (877-b327eeb19b05c9e52e4c.js, line 1)

Browser version: Safari 15.0
Mac OS Big Sur 11.6

@tkayage tkayage added the type: question A question from the community label Oct 12, 2021
@tkayage tkayage changed the title MediaCapabilities.decodingInfo() failed on safari while playing DRM protected using fairplay MediaCapabilities.decodingInfo() failed on safari while playing DRM protected content using fairplay Oct 12, 2021
@avelad
Copy link
Collaborator

avelad commented Oct 12, 2021

Duplicate of #3530

@theodab
Copy link
Collaborator

theodab commented Oct 12, 2021

Yes, that seems likely. @tkayage, if you get the latest code from master, is the problem fixed? A fix for #3530 was pushed just a few hours ago.

@tkayage
Copy link
Author

tkayage commented Oct 13, 2021

Yes, that seems likely. @tkayage, if you get the latest code from master, is the problem fixed? A fix for #3530 was pushed just a few hours ago.

Checking that out @theodab

@avelad
Copy link
Collaborator

avelad commented Oct 14, 2021

@tkayage , Can you check with 3.2.1?

@tkayage
Copy link
Author

tkayage commented Oct 14, 2021

Checked it, The error is gone. thanks @avelad

@tkayage tkayage closed this as completed Oct 14, 2021
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 13, 2021
@shaka-project shaka-project locked and limited conversation to collaborators Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: question A question from the community
Projects
None yet
Development

No branches or pull requests

4 participants