mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Skip non-ready state of player in nowPlayingBar
When nowPlayingBar receives an `init` event, some propertes of `state` are not yet defined. Wait for `playbackstart`.
This commit is contained in:
parent
d997d63d11
commit
2d5e7f745f
1 changed files with 5 additions and 0 deletions
|
@ -658,6 +658,11 @@ import { appRouter } from '../appRouter';
|
|||
}
|
||||
|
||||
function onStateChanged(event, state) {
|
||||
if (event.type === 'init') {
|
||||
// skip non-ready state
|
||||
return;
|
||||
}
|
||||
|
||||
console.debug('nowplaying event: ' + event.type);
|
||||
const player = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue