1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Change all instances of currentTime to be in ms.

This commit is contained in:
Ian Walton 2020-08-15 11:30:36 -04:00
parent 134b6b7c3c
commit 9b1ed7ce4f
8 changed files with 12 additions and 20 deletions

View file

@ -324,12 +324,12 @@ define(['playbackManager', 'events', 'serverNotifications', 'connectionManager']
SessionPlayer.prototype.currentTime = function (val) {
if (val != null) {
return this.seek(val);
return this.seek(val * 10000);
}
var state = this.lastPlayerData || {};
state = state.PlayState || {};
return state.PositionTicks;
return state.PositionTicks / 10000;
};
SessionPlayer.prototype.duration = function () {