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

fix video player time display

This commit is contained in:
Luke Pulverenti 2015-06-25 17:50:56 -04:00
parent e88f66812d
commit 939e545723
21 changed files with 149 additions and 115 deletions

View file

@ -128,7 +128,7 @@
var elem = $('.itemVideo');
return $(elem)
return elem
.one('.loadedmetadata')
.one('playing', onOneVideoPlaying)
.on('timeupdate', onTimeUpdate)
@ -146,11 +146,11 @@
if (mediaElement) {
if (val != null) {
mediaElement.currentTime = val;
mediaElement.currentTime = val / 1000;
return;
}
return mediaElement.currentTime;
return (mediaElement.currentTime || 0) * 1000;
}
};
@ -239,7 +239,7 @@
return false;
};
self.destroy = function () {
self.cleanup = function (destroyRenderer) {
self.setCurrentSrc(null);