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

Cancel playback on error

This commit is contained in:
Bill Thornton 2024-03-24 02:41:50 -04:00
parent 005bc0560f
commit a709d9e2c0

View file

@ -1734,6 +1734,7 @@ class PlaybackManager {
streamInfo.resetSubtitleOffset = false;
if (!streamInfo.url) {
cancelPlayback();
showPlaybackInfoErrorMessage(self, `PlaybackError.${MediaError.NO_MEDIA_ERROR}`);
return;
}
@ -1783,7 +1784,7 @@ class PlaybackManager {
onPlaybackError.call(player, e, {
type: getMediaError(e),
streamInfo: streamInfo
streamInfo
});
});
}