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

Merge pull request #5438 from thornbill/fix-undefined-now-playing

Fix playback errors
This commit is contained in:
Bill Thornton 2024-04-30 17:22:08 -04:00 committed by GitHub
commit 92c02f8d99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -628,7 +628,7 @@ function onPlaybackStart(e, state) {
console.debug('nowplaying event: ' + e.type); console.debug('nowplaying event: ' + e.type);
const player = this; const player = this;
isAudio = state.NowPlayingItem.Type === 'Audio'; isAudio = state.NowPlayingItem?.Type === 'Audio';
onStateChanged.call(player, e, state); onStateChanged.call(player, e, state);
} }

View file

@ -253,7 +253,7 @@ const ItemsContainer: FC<ItemsContainerProps> = ({
); );
const onPlaybackStopped = useCallback( const onPlaybackStopped = useCallback(
(_e: Event, apiClient, stopInfo) => { (_e: Event, stopInfo) => {
const state = stopInfo.state; const state = stopInfo.state;
if ( if (