mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
1d2d45eb0e
commit
70321cf44a
4 changed files with 29 additions and 19 deletions
|
@ -102,7 +102,10 @@ define(['events', 'browser', 'pluginManager', 'apphost', 'appSettings'], functio
|
|||
self.duration = function (val) {
|
||||
|
||||
if (mediaElement) {
|
||||
return mediaElement.duration * 1000;
|
||||
var duration = mediaElement.duration;
|
||||
if (duration && !isNaN(duration) && duration !== Number.POSITIVE_INFINITY && duration !== Number.NEGATIVE_INFINITY) {
|
||||
return duration * 1000;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue