1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
matjaz321 2020-08-19 21:32:22 +02:00
parent 05bec3e16b
commit 865e9085ef
2 changed files with 5 additions and 4 deletions

View file

@ -2260,6 +2260,10 @@ class PlaybackManager {
}, function () { }, function () {
// TODO: show error message // TODO: show error message
self.stop(player); self.stop(player);
loading.hide();
}).catch(() => {
player.destroy();
loading.hide();
}); });
}); });
} }

View file

@ -143,10 +143,7 @@ function setCurrentSrc(instance, elem, options) {
events.trigger(instance, 'pause'); events.trigger(instance, 'pause');
} }
}, },
'onError': () => { 'onError': () => reject(),
instance.destroy();
loading.hide();
}
}, },
playerVars: { playerVars: {
controls: 0, controls: 0,