mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07: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
@ -658,6 +658,11 @@ import { appRouter } from '../appRouter';
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onStateChanged(event, state) {
|
function onStateChanged(event, state) {
|
||||||
|
if (event.type === 'init') {
|
||||||
|
// skip non-ready state
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.debug('nowplaying event: ' + event.type);
|
console.debug('nowplaying event: ' + event.type);
|
||||||
const player = this;
|
const player = this;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user