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

update components

This commit is contained in:
Luke Pulverenti 2017-01-02 23:26:20 -05:00
parent 1d2d45eb0e
commit 70321cf44a
4 changed files with 29 additions and 19 deletions

View file

@ -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;