File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3
3
'dash' : 'inputstream.adaptive' ,
4
4
'ism' : 'inputstream.adaptive' ,
5
5
'hls' : 'inputstream.adaptive' ,
6
+ 'm3u8' : 'inputstream.adaptive' ,
6
7
'rtmp' : 'inputstream.rtmp'
7
8
}
8
9
10
+ HLS_PROTOCOLS = ['hls' , 'm3u8' ]
11
+
9
12
DRM_SCHEMES = {
10
13
'widevine' : 'widevine' ,
11
14
'com.widevine.alpha' : 'widevine'
Original file line number Diff line number Diff line change 2
2
import platform
3
3
import zipfile
4
4
import json
5
+ from distutils .version import LooseVersion
5
6
6
7
import config
7
8
import xbmc
@@ -58,3 +59,9 @@ def has_widevine_cdm(self):
58
59
59
60
self .log ('Widevine is not installed.' )
60
61
return False
62
+
63
+ def supports_hls (self ):
64
+ if self .protocol in config .HLS_PROTOCOLS and LooseVersion (self ._inputstream_version ()) >= LooseVersion (config .HLS_MINIMUM_IA_VERSION ):
65
+ return True
66
+ else :
67
+ return False
You can’t perform that action at this time.
0 commit comments