mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Revert "First attempt - fix for slow playback start"
This reverts commit 9197e274d2
.
This commit is contained in:
parent
ced36a8de5
commit
bdea60fba3
1 changed files with 5 additions and 3 deletions
|
@ -252,12 +252,12 @@ class Player( xbmc.Player ):
|
||||||
itemType = WINDOW.getProperty(currentFile + "type")
|
itemType = WINDOW.getProperty(currentFile + "type")
|
||||||
seekTime = WINDOW.getProperty(currentFile + "seektime")
|
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}'
|
volume_query = '{"jsonrpc": "2.0", "method": "Application.GetProperties", "params": {"properties": ["volume","muted"]}, "id": 1}'
|
||||||
result = xbmc.executeJSONRPC(volume_query)
|
result = xbmc.executeJSONRPC(volume_query)
|
||||||
result = json.loads(result)
|
result = json.loads(result)
|
||||||
volume = result.get(u'result').get(u'volume')
|
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:
|
if seekTime:
|
||||||
PlaybackUtils().seekToPosition(int(seekTime))
|
PlaybackUtils().seekToPosition(int(seekTime))
|
||||||
|
@ -271,7 +271,9 @@ class Player( xbmc.Player ):
|
||||||
'ItemId': item_id,
|
'ItemId': item_id,
|
||||||
'MediaSourceId': item_id,
|
'MediaSourceId': item_id,
|
||||||
'PlayMethod': playMethod,
|
'PlayMethod': playMethod,
|
||||||
'PositionTicks': int(seekTime)
|
'VolumeLevel': volume,
|
||||||
|
'PositionTicks': int(seekTime),
|
||||||
|
'IsMuted': muted
|
||||||
}
|
}
|
||||||
|
|
||||||
if audioindex:
|
if audioindex:
|
||||||
|
|
Loading…
Reference in a new issue