-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: use in-spec EME for versions of Safari which support it #87
Conversation
Note that, as I said in #86, you must add |
d103b5d
to
3a6218f
Compare
15b1a7e
to
4874f59
Compare
Ok, I think this one is ready. Added some tests and stuff. Manually tested on:
|
d10430b
to
b25b221
Compare
Closes #79. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. I'll do some testing with our internal libraries, but I don't anticipate any issues based on review.
One other thing. When using newer Safari with the default fairplay getLicense, you get a warning that using an videojs-contrib-eme/src/fairplay.js Line 140 in c574b43
We instead do body: new Uint8Array(keyMessage), This warning does not appear. Is that something you think we could do? Alternatively, we could use the |
I think we'd be safe casting it to |
Safari Version : 13.1 When I play DRM content in safari, I get error as Then, it displays error as |
@squarebracket can you clarify what you mean by you must add {initDataTypes: ['sinf'], videoCapabilities: [{contentType: 'video/mp4'}]} to your keySystems. my initData looks like this when decoded to string, and then the concat data id and cert method throws because of 'not aligned' which I assume is because init data is wrapped?
|
@AwokeKnowing These are unrelated. This PR added a hotfix to use the old prefixed EME version because we couldn't get the in-spec EME working. That was because of the missing |
Nevermind, it looks like I did add it to the default object in this PR. It's been a while since I wrote this 😅 |
Closes #87 Co-authored-by: Gary Katsevman <[email protected]> Co-authored-by: Chuck Wilson <[email protected]>
Thanks for getting this started @squarebracket! It finally made it in via #142, sorry it's taken so long! |
haven't updated the docs yet.