Merge pull request #1810 from iwalton3/currenttime-is-ms

Change all instances of currentTime to be in ms.
This commit is contained in:
dkanada
2020-08-30 12:41:20 +09:00
committed by GitHub
8 changed files with 12 additions and 20 deletions
+2 -2
View File
@@ -322,12 +322,12 @@ class SessionPlayer {
currentTime(val) {
if (val != null) {
return this.seek(val);
return this.seek(val * 10000);
}
let state = this.lastPlayerData || {};
state = state.PlayState || {};
return state.PositionTicks;
return state.PositionTicks / 10000;
}
duration() {