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

fix script error on now playing page

This commit is contained in:
Luke Pulverenti 2015-07-05 14:34:52 -04:00
parent 13a2268043
commit 75dba0b17f
9 changed files with 70 additions and 24 deletions

View file

@ -125,7 +125,13 @@
.on('error', onError)[0];
}
function enableViblast() {
function enableViblast(src) {
if (src) {
if (src.indexOf('.m3u8') == -1) {
return false;
}
}
return MediaPlayer.canPlayHls() && !MediaPlayer.canPlayNativeHls();
}
@ -259,7 +265,7 @@
}
else {
if (enableViblast()) {
if (enableViblast(val)) {
viblast(elem).setup({
key: 'N8FjNTQ3NDdhZqZhNGI5NWU5ZTI=',