-
Notifications
You must be signed in to change notification settings - Fork 242
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] Pass mpd URL custom headers to actual video files? [clearkey DRM] #1684
Comments
this is not a feature request pipe char is not allowed on this addon there are explicit header properties to be used, read wiki |
Thanks for your quick reply. Assuming I'm not writing a plugin / just creating a .strm / .m3u file, how would I specify these properties or is there an example skeleton add-on I can modify to enable me to use 'plugin://' in my playlist to play just one encrypted item? Edit: or is there a way to use '#KODIPROP:' to set these headers and therefore not needing to create an addon? |
if you look at example on top of wiki page, there is the example
not skeleton, but you can take ispiration from #1678 and modify it, |
Ok thanks One last question if I need to set: do I do: |
yep exactly |
Does not work. I also tried When I sniff the traffic, the origin headers is not added Surely cannot work cause there is 2 '=' signs on one line? |
must be if you read in full the wiki, the stream_headers is applied to streams requests only, |
Thanks so much for your help! Did not mean to waste your time but as I said I don't know much about programming in general. Just for future reference for people with the same "problem", my final solution was: #KODIPROP:inputstream=inputstream.adaptive Note I still had to put the |Origin=https://example.com after the manifest otherwise the first HEAD and GET got 403 errors even though after that it still worked. I am a perfectionist so I rather put it this way. I have another question for you even though unrelated to this add-on. I have asked on kodi forums and other places but could never get an answer. When I want to play an url in a strm / m3u file, is there any way to specify a proxy (http / socks) via the '|' or even a #KODIPROP - or must I create an add-on that use requests library to specify proxy? Please delete this post (or last part thereof if necessary) |
this is also explained on the wiki, in fact you have not set the mimetype on the strm
for a lack of understanding of how works things, for your last question idk |
Describe the feature
Hi I have a similar request to #20
My case is not widevine drm but clearkey drm instead. My m3u entry is e.g.
#KODIPROP:inputstream=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
#KODIPROP:inputstream.adaptive.drm_legacy=org.w3.clearkey|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://example.com/manifest.mpd|Origin=https://example.com
The issue is that the custom 'Origin' header is applied to downloading the manifest but not to the following segments which leads to a http 403 forbidden in my case
Motivation
I can see this as someting other people can also use.
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: