Skip to content

Commit cbc1d63

Browse files
Add README.md
1 parent 163cc6c commit cbc1d63

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# script.module.inputstreamhelper #
2+
3+
A simple Kodi module that makes life easier for add-on developers relying on InputStream based-addons and DRM playback.
4+
5+
## Features ##
6+
* Displays informative dialogs if required InputStream components are unavailable
7+
* Checks if HLS is supported in inputstream.adaptive
8+
* Automatically installs Widevine DRM on supported architectures (optional)
9+
10+
## Example ##
11+
12+
```python
13+
import xbmc
14+
import xbmcgui
15+
import inputstreamhelper
16+
17+
def play_item():
18+
inputstream_helper = inputstreamhelper.Helper('mpd', drm='widevine')
19+
stream_url = 'http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd'
20+
if inputstream_helper.check_inputstream():
21+
playitem = xbmcgui.ListItem(path=stream_url)
22+
playitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
23+
playitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')
24+
xbmc.Player().play(item=stream_url, listitem=playitem)
25+
26+
play_item()
27+
```
28+
29+
The Helper class takes two arguments: protocol (the media streaming protocol) and the optional argument 'drm'.
30+
31+
## Accepted protocol arguments: ##
32+
* mpd
33+
* ism
34+
* hls
35+
* rtmp
36+
37+
## Accepted drm arguments: ##
38+
* widevine
39+
* com.widevine.alpha

0 commit comments

Comments
 (0)