-
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
[Feature request] Add support for fetching keys from Licence Server #1637
Comments
fetching keys from the license server works, but currently only when the license url is provided by manifest set the license url by using this request is somewhat similar to #1602 |
I don't require Key Rotation because it is handled by my server. I just need a way to specify the License URL using drm_legacy |
you have written key rotation so i misinterpreted that you need the key rotation support if so should not be too much effort to add it, |
Here is the manifest. Some things have been redacted. |
i made the implementation you can set |
What should be the response of the licence server? "title": "Custom Serve",
"data": {
"id": "90",
"title": "stream name here",
"initialUrl": "redacted",
"logo": "redacted",
},
"key": {
"keys": [
{
"kty": "oct",
"k": "redacted",
"kid": "redacted"
}
],
"type": "temporary"
} |
there is only a single standard for the license respose data |
So the server should only return the key array or will InputStream be able to find the key array from the sample response that I provided? |
you should return the "keys" array wrapped in a dictionary as shown in the example in your JSON response above, seem to match the requirements if the redacted data are right, just need to remove uneeded things |
I think I am not getting it sorry. |
as is no. as already said above, the license server need to return the JSON format as specified on linked specs and its example |
in other words, |
I built Kodi and InputStream Adaptive from their default branch. Edit: My bad. I thought the PR had been merged. It works!!! |
Also, if the server returns multiple |
no, it is expected that a license server will reply appropriately to ISA license request so your license server must meet the ISA license request data, if for any reason your license server go in error or is unable to meet the request, must reply with an http error such as HTTP error 500 atm ISA should make a separate license request for each single KID, and not all-in-one, |
Closing this issue for now as everything is working as expected. |
@CastagnaIT After using this for some time, I have found an issue, if there is a |
you are right, there is an oversight, i will fixit |
I also want to report another bug. Don't know what's causing it. |
urls have a standard RFC definition, if you do not follow the standards urls cannot be handled correctly, |
They worked previously. But they don't now. |
yeah no need to test it just to look at url string two backslashes is an unusual thing, it should means empty/no folder the first thing is make sure that the original url from the website is the same, and not copied wrongly it could be replaced as so verify that the website actually uses it, if so, please open a separate issue thanks |
Opening a separate issue. |
Describe the feature
I was trying to get a MPD stream working with clearkeys.
I am using my own licence server to supply the clearkeys in the format
kid:key
.The keys are rotated after sometime, so I can't hardcode them in the m3u.
I am using the following format to supply the keys:
#KODIPROP:inputstream.adaptive.drm_legacy=org.w3.clearkey|http://localhost:5000/stream1
But it fails with the error:
License server URL not found
Motivation
The reason is that the keys keep changing so they can't be directly hard coded in the playlist.
Are you willing to contribute in development?
No
Should a possible backport be considered?
No
The text was updated successfully, but these errors were encountered: