-
Notifications
You must be signed in to change notification settings - Fork 239
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
Support for clearkey #811
Comments
It's not super high on the priority list - are there any services that use it? |
not sure which services but there are some streams that use clearkey |
Hi, |
Not implemented that yet? |
No not yet. Only really 2 active developers on this project at the moment, we're working our way through cleaning up and refactoring the code and once done we can look at new features such as this. |
Sure, anything can 'handle' clearkey however providers don't typically implement clearkey because as the name implies the key is not protected.
there's nothing preventing a provider from enforcing seeing particular headers for any stream I get this feature is wanted, happy to review PRs anytime however if you want the very small active development team to implement then unfortunately it will wait until we have time. |
|
It's on my to-do list, I will try to get to it soon |
Please add clearkey |
Everyone - this isn't a poll. It will be done when it's done. No promises but hopefully in the next couple of months. |
Anyone watching this issue - Can I get a clearkey stream or two to test on? |
Any chance for something that isn't geoblocked or requiring sign in cookies? |
Two different manifest formats. Same KEY:
|
Another one from https://bitmovin.com/demos/drm:
And this one:
Will it support multiple keys? i.e:
|
@Uukrull I was thinking more along the lines of manifests that have clearkey specified in the content protection. But we could add support for giving IA key/keyID pairs. From what I can see it looks like there's Android streaming players out there that have adopted the playlist format for inputstream.adaptive and extended it to support clearkey too. Is your example above |
Yes, that is how it works. Anyway, are you sure you want to add clearkey support to Kodi? That may open a pandora's box you don't want to deal with. Clearkey means that if you don't a have real subscription to a service you still can use it if you know the mpd and the key(s). |
Happy to add it since it's a legitimate content protection method. Not so keen on the abuse side of things but I'm interested to hear how you will think it will play out. Most publishers also have security on access to the mpds and segments themselves and generally discovery of keys leads to downloading the content and reposting rather than allowing for streaming in which case the provider can rotate the keys or the content itself can expire... |
Believe me, it will be abuse to the point that what remains of the good name Kodi has as a media player not related to piracy will be shattered to pieces. |
A service without protection cookies or other custom headers looks weird, for example shaka, allow to configure clearkey in similar way: a sample is: |
In this thread you have an example from a well known provider and there are hundreds of examples like that. |
i think also that we should stop add new behaviours to if we have to add a new support to add kid/key pairs python addons will do: drm_config = {
"clearkeys": {"kid": "key","kid": "key"},
"license_servers": {"com.widevine.alpha": "http://www."}, # << this in future
"license_headers": "...", # << this in future
...
}
listitem...drm...prop = json.dumps(drm_config) will be a bit more complex for C++ addons such as pvr to create manually the json string without json lib, but not so impossible
if so, you can play that stream with any players as shaka player |
Yes, you are right. I think there are illegal streamers that are just worried their leaked keys will now start to be useless as like @glennguy pointed out, providers will start to rotate keys and add more protection and hence the easy income a lot of IPTV providers will stop since Kodi is such a popular streaming platform. Probably for the better that the providers actually have to work. |
Patiently waiting |
Patiently waiting too, for now I'm using shaka to cast some ClearKey streams to my device, but would love to have those streams in a playlist file ready to be played directly from Kodi! |
Waiting... |
Hi all, can you please check out #1598 and give some feedback if possible? |
Using your DASH sample it works on Android 14 with Kodi 21 aarch64! Unfortunately when I tried one of the playlists I normally use it force closes 😔 |
@fkoemep this change isn't designed to accept these playlists that have 'extended' the inputstream.adaptive Kodi properties. Could you provide an example of the MPD or M3U8 file that the playlist you have is linking to, plus the Kodi properties that are in the main M3U8 playlist? At least we can look at getting it to not crash and instead give a useful error message. |
@glennguy can I contact you privately so I can send you the .mpd and keys? Not sure if it's geo-blocked though |
Hello @glennguy , However, this one crashes (No Clear-Key sheme in manifest, but correct keys supplied):
And this one doesn't crash, but decryption failed as the video is scrambled and audio is not playing (Manifest contains ClearKey scheme).
|
i made tests but IMO suggest that or you have some different ISA settings that im not aware, you can test by using these test builds: |
The last time I tried it, IPTV Simple client didn't like spaces in KODIPROPS, so try this:
|
The design of clearkey support in the PR is to support manifests that signal they are protected with clearkey. If you have a manifest that is protected by Widevine then you should use widevine and construct the playlist appropriately. Alternatively, write a proxy to add clearkey into the manifest if you want to get it going that way. |
out of curiosity i would like to know what player that you are using that allow to force decrypt as clearkey a widevine manifest |
Shaka player and jwplayer are some players that support this usage |
so please show me how to configure the stream on shakaplayer by using their "custom content" page |
OTT Player supports this. |
First set the manifest URL and any name you want for the content After that you go to the "EXTRA CONFIG" tab and set your kid and key {
"drm": {
"clearKeys": {
"KeyId": "Key"
}
}
} |
I understand that it's going to be difficult to implement, but forced Clear Key decryption is probably the most popular use case here. By this I don't mean this feature should be finished ASAP, these things take time and we really appreciate the work you all do. But it should be a priority imo. |
fyi
instead of it there will be: more details and examples on PR #1604 |
is there any development for clearkey support soon?
The text was updated successfully, but these errors were encountered: