Add inputstreamhelper (#57)
This commit is contained in:
parent
909ab94003
commit
385c0b0aec
@ -3,6 +3,7 @@
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.26.0"/>
|
||||
<import addon="script.module.dateutil" version="2.6.0"/>
|
||||
<import addon="script.module.inputstreamhelper" version="0.5.1"/>
|
||||
<import addon="script.module.pysocks" version="1.6.8" optional="true"/>
|
||||
<import addon="script.module.requests" version="2.22.0"/>
|
||||
<import addon="script.module.routing" version="0.2.0"/>
|
||||
|
@ -220,7 +220,10 @@ def play(stream, stream_type=STREAM_HLS, license_key=None, title=None, art_dict=
|
||||
elif stream_type == STREAM_DASH:
|
||||
play_item.setProperty('inputstream.adaptive.manifest_type', 'mpd')
|
||||
play_item.setMimeType('application/dash+xml')
|
||||
if license_key:
|
||||
if license_key is not None:
|
||||
import inputstreamhelper
|
||||
is_helper = inputstreamhelper.Helper('mpd', drm='com.widevine.alpha')
|
||||
if is_helper.check_inputstream():
|
||||
play_item.setProperty('inputstream.adaptive.license_type', 'com.widevine.alpha')
|
||||
play_item.setProperty('inputstream.adaptive.license_key', license_key)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user