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:
parent
e88f66812d
commit
939e545723
21 changed files with 149 additions and 115 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue