mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
report live stream in playback stop
This commit is contained in:
parent
b6fc58c494
commit
8b505bb84d
2 changed files with 9 additions and 11 deletions
|
@ -53,13 +53,17 @@
|
|||
|
||||
}).on('playbackstop.mediacontroller', function (e, state) {
|
||||
|
||||
ApiClient.reportPlaybackStopped({
|
||||
|
||||
var stopInfo = {
|
||||
itemId: state.NowPlayingItem.Id,
|
||||
mediaSourceId: state.PlayState.MediaSourceId,
|
||||
positionTicks: state.PlayState.PositionTicks
|
||||
};
|
||||
|
||||
});
|
||||
if (state.PlayState.LiveStreamId) {
|
||||
stopInfo.LiveStreamId = state.PlayState.LiveStreamId;
|
||||
}
|
||||
|
||||
ApiClient.reportPlaybackStopped(stopInfo);
|
||||
|
||||
}).on('positionchange.mediacontroller', function (e, state) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue