mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
progress on remote control
This commit is contained in:
parent
78c3668859
commit
7e6c0fa340
7 changed files with 111 additions and 8 deletions
|
@ -264,6 +264,8 @@
|
|||
|
||||
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), itemId);
|
||||
|
||||
var intervalTime = ApiClient.isWebSocketOpen() ? 10000 : 30000;
|
||||
|
||||
currentProgressInterval = setInterval(function () {
|
||||
var player = _V_("videoWindow");
|
||||
|
||||
|
@ -276,7 +278,8 @@
|
|||
var positionTicks = parseInt(startTime) + Math.floor(10000000 * player.currentTime());
|
||||
|
||||
ApiClient.reportPlaybackProgress(Dashboard.getCurrentUserId(), itemId, positionTicks);
|
||||
}, 30000);
|
||||
|
||||
}, intervalTime);
|
||||
}
|
||||
|
||||
self.canPlay = function (item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue