2017-08-30, 12:06
Hi there,
I am trying to play a drm encrypted content from hbogo.bg, we dont have an addon for that yet but a guy is writing one as we speak (he'll be doing the login and parsing part, but that will take some time)
hbo.go is using smoothstream + widevine, after a day spent in chrome dev tools I've figured out few things, but I can't understand what inputstream.adaptive.license_data is suposed to be.
From what I can see from the request payload that chrome sends to wv license server, and from their castlab player configuration, it seems to be a widevine header generated from following data:
here is what I've been trying so far
Anyone can give me a hint?
cc @peak3d
P.S: using kodi v18 and inputstream.adaptive both from git
EDIT: not sure how I posted in wrong category, thanks @DarrenHill
I am trying to play a drm encrypted content from hbogo.bg, we dont have an addon for that yet but a guy is writing one as we speak (he'll be doing the login and parsing part, but that will take some time)
hbo.go is using smoothstream + widevine, after a day spent in chrome dev tools I've figured out few things, but I can't understand what inputstream.adaptive.license_data is suposed to be.
From what I can see from the request payload that chrome sends to wv license server, and from their castlab player configuration, it seems to be a widevine header generated from following data:
Code:
"widevineHeader": {
"provider": "castlabs",
"contentId": "fkj3ljaSdfalkr3j",
"trackType": "",
"policy": ""
},
here is what I've been trying so far
Code:
# url: https://edgecastcdnsecure.hbogo.eu/3a9da050-05b0-4d3c-9f5f-8068ff892b31/1195671/COMP/movie/mux_2c177faf-f633-4c86-8594-fefd653b6c81.ism/Manifest
url = get_url(action='play', video=video['video'])
license_server = 'https://lic.drmtoday.com/license-proxy-widevine/cenc/'
dt_custom_data = "base64 encoded json string containing my userId and player session id"
x_dt_auth_token = "more base64 encoded known stuff"
headers = 'dt-custom-data=' + dt_custom_data + '&x-dt-auth-token=' + x_dt_auth_token + '&Origin=https://www.hbogo.bg'
license_key = license_server + '|' + headers + '|B{SSM}|'
list_item.setProperty('inputstreamaddon', 'inputstream.adaptive')
list_item.setProperty('inputstream.adaptive.manifest_type', 'ism')
list_item.setProperty('inputstream.adaptive.license_type', 'com.widevine.alpha')
list_item.setProperty('inputstream.adaptive.license_data', 'whatever')
list_item.setProperty('inputstream.adaptive.license_key', license_key)
Anyone can give me a hint?
cc @peak3d
P.S: using kodi v18 and inputstream.adaptive both from git
EDIT: not sure how I posted in wrong category, thanks @DarrenHill