1
0
Fork 0
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:
Luke Pulverenti 2013-05-10 08:18:07 -04:00
parent 78c3668859
commit 7e6c0fa340
7 changed files with 111 additions and 8 deletions

View file

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