Merge pull request #5518 from thornbill/fix-syncplay-crash
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user