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

Merge pull request #5518 from thornbill/fix-syncplay-crash

This commit is contained in:
Bill Thornton 2024-05-15 19:45:30 -04:00 committed by GitHub
commit 25b1bcab50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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'));