1
0
Fork 0
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:
Luke Pulverenti 2015-03-29 14:38:18 -04:00
parent b6fc58c494
commit 8b505bb84d
2 changed files with 9 additions and 11 deletions

View file

@ -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) {