Adjust playback

Allow direct play for http streams
This commit is contained in:
angelblue05 2018-10-08 21:12:59 -05:00
parent 883ff69f11
commit 1147a3b2bf
2 changed files with 5 additions and 4 deletions

View file

@ -183,7 +183,7 @@ class PlayUtils(object):
if source['RequiresOpening']: if source['RequiresOpening']:
source = self.live_stream(source) source = self.live_stream(source)
if source['SupportsDirectPlay'] and (self.is_strm(source) or not settings('playFromStream.bool') and self.is_file_exists(source)): if source.get('Protocol') == 'Http' or source['SupportsDirectPlay'] and (self.is_strm(source) or not settings('playFromStream.bool') and self.is_file_exists(source)):
LOG.info("--[ direct play ]") LOG.info("--[ direct play ]")
self.direct_play(source) self.direct_play(source)
@ -304,7 +304,9 @@ class PlayUtils(object):
{ {
"Container": "m3u8", "Container": "m3u8",
"Type": "Video", "Type": "Video",
"AudioCodec": "aac,mp3,ac3,opus,flac,vorbis" "AudioCodec": "aac,mp3,ac3,opus,flac,vorbis",
"VideoCodec": "h264,mpeg4,mpeg2video",
"MaxAudioChannels": "6"
}, },
{ {
"Container": "jpeg", "Container": "jpeg",

View file

@ -79,8 +79,7 @@ class Player(xbmc.Player):
break break
else: else:
item = items[0] item = items.pop(0)
items.pop(0)
window('emby_play.json', items) window('emby_play.json', items)