mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Force transcode 1080p/h265
This commit is contained in:
parent
988d62c9ac
commit
d57f8ddde3
1 changed files with 11 additions and 0 deletions
|
@ -59,6 +59,11 @@ class PlayUtils():
|
|||
self.logMsg("Can't direct play: Play from HTTP is enabled.", 1)
|
||||
return False
|
||||
|
||||
# Avoid H265 1080p
|
||||
if result['MediaSources'][0]['Name'].startswith("1080P/H265"):
|
||||
self.logMsg("Skip direct play for 1080P/H265 since format playback is not stable.", 1)
|
||||
return False
|
||||
|
||||
canDirectPlay = result['MediaSources'][0]['SupportsDirectPlay']
|
||||
# Make sure it's supported by server
|
||||
if not canDirectPlay:
|
||||
|
@ -124,6 +129,12 @@ class PlayUtils():
|
|||
def isDirectStream(self, result):
|
||||
# Requirements for Direct stream:
|
||||
# FileSystem or Remote, BitRate, supported encoding
|
||||
|
||||
# Avoid H265 1080p
|
||||
if item['MediaSources'][0]['Name'].startswith("1080P/H265"):
|
||||
self.logMsg("Skip direct stream for 1080P/H265 since format playback is not stable.", 1)
|
||||
return False
|
||||
|
||||
canDirectStream = result['MediaSources'][0]['SupportsDirectStream']
|
||||
# Make sure it's supported by server
|
||||
if not canDirectStream:
|
||||
|
|
Loading…
Reference in a new issue