mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix playback error stop
This commit is contained in:
parent
3140fca136
commit
6b4c4d3140
1 changed files with 4 additions and 2 deletions
|
@ -3064,7 +3064,9 @@ class PlaybackManager {
|
|||
const data = getPlayerData(player);
|
||||
const streamInfo = data.streamInfo;
|
||||
|
||||
const nextItem = self._playNextAfterEnded ? self._playQueueManager.getNextItemInfo() : null;
|
||||
const errorOccurred = displayErrorCode && typeof (displayErrorCode) === 'string';
|
||||
|
||||
const nextItem = self._playNextAfterEnded && !errorOccurred ? self._playQueueManager.getNextItemInfo() : null;
|
||||
|
||||
const nextMediaType = (nextItem ? nextItem.item.MediaType : null);
|
||||
|
||||
|
@ -3105,7 +3107,7 @@ class PlaybackManager {
|
|||
removeCurrentPlayer(player);
|
||||
}
|
||||
|
||||
if (displayErrorCode && typeof (displayErrorCode) === 'string') {
|
||||
if (errorOccurred) {
|
||||
showPlaybackInfoErrorMessage(self, 'PlaybackError' + displayErrorCode);
|
||||
} else if (nextItem) {
|
||||
self.nextTrack();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue