You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe The Bug
A mixed playlist with video and audio fails to advance to an audio file after a video file finishes.
Steps To Reproduce
Create playlist with mp4 followed by an mp3
Play mp4 and expect for it to move to the mp3
Instead, playback ends and the console shows an error:
Uncaught (in promise) Error: player cannot be null
currentMediaSource playbackmanager.js:713
getPreviousSource playbackmanager.js:2993
nextTrack playbackmanager.js:3020
onPlaybackStopped playbackmanager.js:3379
promise callback*onPlaybackStopped playbackmanager.js:3377
trigger events.ts:55
trigger events.ts:54
onEndedInternal htmlMediaHelper.js:339
HtmlVideoPlayer plugin.js:889 [...]
I added some debug to playbackmanager.js } setCurrentPlayerInternal and I can see that the player is set to null right before nextTrack is called which explains why the exception is thrown:
setCurrentPlayerInternal called
current player: Object { name: "Html Video Player", type: "mediaplayer", id: "htmlvideoplayer" [...]
new player: null
playing next track
Uncaught (in promise) Error: player cannot be null
So I think the question is why is setCurrentPlayerInternal called with null or why isn't it called with an audio player?
Expected Behavior
Mixed playlist works
System (please complete the following information):
Platform: Linux
Browser: Firefox
Jellyfin Version: 10.9.1
The text was updated successfully, but these errors were encountered:
The newPlayer is the Html Audio Player which is !== to the Html Video Player so removeCurrentPlayer is called that nulls out the currently set player. However, later down, when self.nextTrack(); is called, it will then use this null player.
Describe The Bug
A mixed playlist with video and audio fails to advance to an audio file after a video file finishes.
Steps To Reproduce
I added some debug to playbackmanager.js }
setCurrentPlayerInternal
and I can see that the player is set tonull
right beforenextTrack
is called which explains why the exception is thrown:So I think the question is why is
setCurrentPlayerInternal
called withnull
or why isn't it called with an audio player?Expected Behavior
Mixed playlist works
System (please complete the following information):
The text was updated successfully, but these errors were encountered: