Skip to content

A simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback.

License

Notifications You must be signed in to change notification settings

gismo112/script.module.inputstreamhelper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

script.module.inputstreamhelper

A simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback.

Features

  • Displays informative dialogs if required InputStream components are unavailable
  • Checks if HLS is supported in inputstream.adaptive
  • Automatically installs Widevine DRM on supported platforms (optional)

Example

import xbmc
import xbmcgui
import inputstreamhelper

def play_item():
    inputstream_helper = inputstreamhelper.Helper('mpd', drm='widevine')
    stream_url = 'http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd'
    if inputstream_helper.check_inputstream():
        playitem = xbmcgui.ListItem(path=stream_url)
        playitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
        playitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')
        xbmc.Player().play(item=stream_url, listitem=playitem)

play_item()

The Helper class takes two arguments: protocol (the media streaming protocol) and the optional argument 'drm'.

Accepted protocol arguments:

  • mpd
  • ism
  • hls
  • rtmp

Accepted drm arguments:

  • widevine
  • com.widevine.alpha

About

A simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%