mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Move stop playback to emby file
Prep to rework that part.
This commit is contained in:
parent
1798e6e01d
commit
0945d46baf
1 changed files with 5 additions and 9 deletions
|
@ -671,17 +671,13 @@ class Read_EmbyServer():
|
||||||
'LiveStreamId': None
|
'LiveStreamId': None
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_live_stream(self, item_id, profile, session_id, token, offset=0, audio=None, subtitles=None):
|
def stop_playback(self, item_id, position, playsession_id, mediasource_id=None):
|
||||||
|
|
||||||
url = self.get_emby_url('/LiveStreams/Open')
|
url = self.get_emby_url('/Sessions/Playing/Stopped')
|
||||||
return self.doUtils.downloadUrl(url, action_type="POST", postBody={
|
return self.doUtils.downloadUrl(url, action_type="POST", postBody={
|
||||||
|
|
||||||
'UserId': self.userId,
|
|
||||||
'DeviceProfile': profile,
|
|
||||||
'ItemId': item_id,
|
'ItemId': item_id,
|
||||||
'PlaySessionId': session_id,
|
'MediaSourceId': mediasource_id or item_id,
|
||||||
'OpenToken': token,
|
'PositionTicks': position,
|
||||||
'StartTimeTicks': offset, #TODO
|
'PlaySessionId': playsession_id
|
||||||
'AudioStreamIndex': audio, #TODO
|
|
||||||
'SubtitleStreamIndex': subtitles #TODO
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue