-
Notifications
You must be signed in to change notification settings - Fork 245
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
[Omega] Extract default kid from init data if required #1725
Conversation
src/Session.cpp
Outdated
// If no KID, but init data, extract the KID from init data | ||
if (!initData.empty() && defaultKidStr.empty()) | ||
{ | ||
DRM::PSSH parser; |
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.
oh, this might not even be available in Omega
36eb7d4
to
6e623bc
Compare
this isnt actually working, I still get
|
this because your PSSH data is wrong, PSSH version 0 dont support kids container |
oh, thats because the parser in kodi 21 doesnt GetKeyIds for version 0 from the data.. |
so problems with Kodi 21:
|
ah yeah now remember, so on 22 the parser is able to get kids from widevine data, contained in the PSSH data (regardless of PSSH version) |
when I use it gets further
it plays regardless of this issue, so im not sure if the default kid is being set correctly. "Initializing stream with KID: " |
On 22, the parser can get kid from the DATA only (version 0) :) Its not a biggy, I can add the key as well. |
oh, I see LOG::Log(LOGDEBUG, "Initializing stream with KID: %s", sessionPsshset.defaultKID_.c_str()); We logging sessionPsshset.defaultKID not defaultkid.. |
6e623bc
to
178e12a
Compare
Fixed that with latest commit :) |
success, with this PR and adding kids to my license_data:
|
seem there is a bit of mess with vars (also on 22) e.g. ExtractStreamProtectionData set extracted kid to sessionPsshset but dont update defaultKidStr also on condition below I've always found this part confusing, although with the rework i will delete all this |
Understood. But this PR is not a rework. It's fixing a regression so I'm trying to keep changes minimal. Is this able to go in to fix the issue? Otherwise I'll need to proxy manifest and add in content protection section |
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.
its ok,
just please add prefix to commit title otherwise will make more hard to read the git history
in your case you are modify the session, so [Session] xy...
178e12a
to
6387a1a
Compare
no worries :) I have updated the commit message |
Thank you @CastagnaIT :) |
@CastagnaIT if there are no more planned changes coming soon for Omega - are you able to do a release with this change ? |
yes the intention is to make releases by saturday |
Description
Sending the below as license_data property
AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEByIsi1reEZguaxNxHvMJt8=
Kodi 20 - OK
Kodi 21 - ERROR
Kodi 22 - OK
Motivation and context
How has this been tested?
Screenshots (if appropriate):
Types of change
Checklist: