mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Adjust playback
Allow direct play for http streams
This commit is contained in:
parent
883ff69f11
commit
1147a3b2bf
2 changed files with 5 additions and 4 deletions
|
@ -183,7 +183,7 @@ class PlayUtils(object):
|
|||
if source['RequiresOpening']:
|
||||
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 ]")
|
||||
self.direct_play(source)
|
||||
|
@ -304,7 +304,9 @@ class PlayUtils(object):
|
|||
{
|
||||
"Container": "m3u8",
|
||||
"Type": "Video",
|
||||
"AudioCodec": "aac,mp3,ac3,opus,flac,vorbis"
|
||||
"AudioCodec": "aac,mp3,ac3,opus,flac,vorbis",
|
||||
"VideoCodec": "h264,mpeg4,mpeg2video",
|
||||
"MaxAudioChannels": "6"
|
||||
},
|
||||
{
|
||||
"Container": "jpeg",
|
||||
|
|
|
@ -79,8 +79,7 @@ class Player(xbmc.Player):
|
|||
|
||||
break
|
||||
else:
|
||||
item = items[0]
|
||||
items.pop(0)
|
||||
item = items.pop(0)
|
||||
|
||||
window('emby_play.json', items)
|
||||
|
||||
|
|
Loading…
Reference in a new issue