WORK IN PROGRESS !!!

switch playback handling to playbackinfo method supported by server
This commit is contained in:
marcelveldt 2016-09-28 16:57:23 +02:00
parent 8b0164d5a3
commit e4e05a143f
2 changed files with 230 additions and 3 deletions

View file

@ -508,4 +508,11 @@ class Player(xbmc.Player):
'MediaSourceId': itemId,
'PositionTicks': positionTicks
}
self.doUtils(url, postBody=postdata, action_type="POST")
self.doUtils(url, postBody=postdata, action_type="POST")
#If needed, close any livestreams
livestreamid = window("emby_%s.livestreamid" % self.currentFile)
if livestreamid:
url = "{server}/emby/LiveStreams/Close"
postdata = { 'LiveStreamId': livestreamid }
self.doUtils(url, postBody=postdata, action_type="POST")