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

Backport pull request #5518 from jellyfin-web/release-10.9.z

Fix syncplay playback starting before listener created

Original-merge: 25b1bcab50

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
thornbill 2024-05-17 13:52:46 -04:00 committed by Joshua M. Boniface
parent 017734a0bb
commit 6da354a92e

View file

@ -227,14 +227,14 @@ class QueueCore {
const serverId = apiClient.serverInfo().Id;
this.scheduleReadyRequestOnPlaybackStart(apiClient, 'startPlayback');
const playerWrapper = this.manager.getPlayerWrapper();
playerWrapper.localPlay({
ids: this.getPlaylistAsItemIds(),
startPositionTicks: startPositionTicks,
startIndex: this.getCurrentPlaylistIndex(),
serverId: serverId
}).then(() => {
this.scheduleReadyRequestOnPlaybackStart(apiClient, 'startPlayback');
}).catch((error) => {
console.error(error);
toast(globalize.translate('MessageSyncPlayErrorMedia'));