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:
parent
96d1ce9b68
commit
c5cb1028ae
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue