mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix syncplay playback starting before listener created
This commit is contained in:
parent
0fcb1ff983
commit
703ec1b488
1 changed files with 2 additions and 2 deletions
|
@ -227,14 +227,14 @@ class QueueCore {
|
||||||
|
|
||||||
const serverId = apiClient.serverInfo().Id;
|
const serverId = apiClient.serverInfo().Id;
|
||||||
|
|
||||||
|
this.scheduleReadyRequestOnPlaybackStart(apiClient, 'startPlayback');
|
||||||
|
|
||||||
const playerWrapper = this.manager.getPlayerWrapper();
|
const playerWrapper = this.manager.getPlayerWrapper();
|
||||||
playerWrapper.localPlay({
|
playerWrapper.localPlay({
|
||||||
ids: this.getPlaylistAsItemIds(),
|
ids: this.getPlaylistAsItemIds(),
|
||||||
startPositionTicks: startPositionTicks,
|
startPositionTicks: startPositionTicks,
|
||||||
startIndex: this.getCurrentPlaylistIndex(),
|
startIndex: this.getCurrentPlaylistIndex(),
|
||||||
serverId: serverId
|
serverId: serverId
|
||||||
}).then(() => {
|
|
||||||
this.scheduleReadyRequestOnPlaybackStart(apiClient, 'startPlayback');
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
toast(globalize.translate('MessageSyncPlayErrorMedia'));
|
toast(globalize.translate('MessageSyncPlayErrorMedia'));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue