2017-08-26, 14:36
(2017-08-25, 01:52)matthuisman Wrote: Any secret to getting HLS working?
I'm trying with a hls m3u8 but it keeps failing to play.
I did look in the m3u8 and it is using EXT-X-KEY:METHOD=AES-128 so maybe that is why?
Hey Matt,
You just need to set a few listitem properties. Earlier in the thread there was this solution:
(2017-08-09, 18:54)eracknaphobia Wrote:(2017-08-07, 20:06)JinJin Wrote: @enen92
Code:listitem = xbmcgui.ListItem()
listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
listitem.setProperty('inputstream.adaptive.manifest_type', 'hls')
FYI, If your streams require custom header values use:
Code:headers = 'User-Agent=Some user agent&Cookie=some_cookie'
listitem.setProperty('inputstream.adaptive.stream_headers', headers)
This one tripped me up for quite some time.
but with recent changes the headers for the decryption key download are now specified separately:
Code:
listitem.setProperty('inputstream.adaptive.license_key', stream_url + '|' + headers)
Put these all together and it works quite well, Kodi 17 and 18.
Also Matt, I've made a bunch more changes to drmhelper. You can now select an item to play and go from having no installation of inputstream.adaptive/widevinecdm/ssd_wv to having all 3 installed and playback starting. Rather than installing from a Kodi repo the inputstream.adaptive zip file downloads from a plain file repo, unzips into the addons folder and JSON-RPC asks Kodi to rescan addons. Trying to make it as foolproof and painless for the user as possible. I don't think though that this addon has much of a chance of making the Kodi repo though because of downloading google's binaries.