mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
First attempt - fix for slow playback start
Removing the json call, might cause lock up on low end devices and/or slow playback start.
This commit is contained in:
parent
703d7b3492
commit
9197e274d2
1 changed files with 3 additions and 5 deletions
|
@ -252,12 +252,12 @@ class Player( xbmc.Player ):
|
|||
itemType = WINDOW.getProperty(currentFile + "type")
|
||||
seekTime = WINDOW.getProperty(currentFile + "seektime")
|
||||
|
||||
# Get playback volume
|
||||
'''# Get playback volume
|
||||
volume_query = '{"jsonrpc": "2.0", "method": "Application.GetProperties", "params": {"properties": ["volume","muted"]}, "id": 1}'
|
||||
result = xbmc.executeJSONRPC(volume_query)
|
||||
result = json.loads(result)
|
||||
volume = result.get(u'result').get(u'volume')
|
||||
muted = result.get(u'result').get(u'muted')
|
||||
muted = result.get(u'result').get(u'muted')'''
|
||||
|
||||
if seekTime:
|
||||
PlaybackUtils().seekToPosition(int(seekTime))
|
||||
|
@ -271,9 +271,7 @@ class Player( xbmc.Player ):
|
|||
'ItemId': item_id,
|
||||
'MediaSourceId': item_id,
|
||||
'PlayMethod': playMethod,
|
||||
'VolumeLevel': volume,
|
||||
'PositionTicks': int(seekTime),
|
||||
'IsMuted': muted
|
||||
'PositionTicks': int(seekTime)
|
||||
}
|
||||
|
||||
if audioindex:
|
||||
|
|
Loading…
Reference in a new issue