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:
parent
005bc0560f
commit
a709d9e2c0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue