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

Added onError eventListener to the youtube iframe video player to destroy itself whenever it receives any errors

This commit is contained in:
matjaz321 2020-08-13 22:35:04 +02:00
parent 96d1ce9b68
commit c5cb1028ae

View file

@ -142,7 +142,11 @@ function setCurrentSrc(instance, elem, options) {
} else if (event.data === YT.PlayerState.PAUSED) {
events.trigger(instance, 'pause');
}
}
},
'onError': () => {
instance.destroy();
loading.hide();
},
},
playerVars: {
controls: 0,