Posts: 11
Joined: Mar 2024
Reputation:
0
Hi,
I want to retrieve the license of an mpd live strream and apply it to the same stream which is m3u8 hls (which has not the widevine data, but the KID is accepted by content provider widevine licensing serverr), is there a simple way?
A way would be using a proxy and modify the m3u8 with the widevine information of the mpd, but that's too complex for now.
Thanks in advance..
Posts: 459
Joined: Jan 2017
Reputation:
99
its not so clear the situation,
if the child variant HLS manifest has not the EXT-X-KEY its not encrypted
otherwise should exist at least the pssh data in the URI
if you attach the original child variant manifest i can try understand the use case
also a full kodi debug log to see what happens
Posts: 11
Joined: Mar 2024
Reputation:
0
Yes, proxy was the option I considered if there is no trick or native way for loading a source, fetch license and then load another source into inputstream.adaptive while maintaining the license in memory instead of restarting the process.
That's the general question: is it possible to load one file, (process it to fetch the key,) and then replace the video source in memory or in the plugin with another source?
Posts: 459
Joined: Jan 2017
Reputation:
99
no, what you want to do its an hack
Posts: 11
Joined: Mar 2024
Reputation:
0
Is such a hack possible using python scripting?
Posts: 57
Joined: Apr 2016
Reputation:
6
No it would have to be done IA side. Because there is often different keys for audio/video and even different resolutions it would be a lot of effort to make a one size fits all, so in these cases it's better off doing the changes downstream in the addon via proxy, then you can tailor to fit your use case exactly.
Posts: 459
Joined: Jan 2017
Reputation:
99
2024-04-22, 15:40
(This post was last modified: 2024-04-22, 15:49 by CastagnaIT. Edited 1 time in total.)
im happy you have solved
every user would like to have customizations for its own special purpose,
but accept new customizations in the past led to several critical issues for the maintenance of this addon
so avoid customizations and keep an approach when possible in-line with the standards or however in-line with the most popular video players e.g. "shaka" (although ISA is not comparable with VPs of such a high level)
if an user has special needs you will have to use a proxy
and if a kind of feature is not supported but it is part of the specification of a protocol,
it will have to be implemented correctly without tricks or workarounds
this as info for future users who will read this thread
Posts: 11
Joined: Mar 2024
Reputation:
0
Is #KODIPROP:inputstream.adaptive.license_data still functional? I'm not sure how it works.