mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Allow setting a desired SyncPlay wrapper.
This commit is contained in:
parent
0671d7086b
commit
93aefafdee
@ -44,13 +44,15 @@ class PlayerFactory {
|
|||||||
return this.getDefaultWrapper(syncPlayManager);
|
return this.getDefaultWrapper(syncPlayManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug('SyncPlay WrapperFactory getWrapper:', player.id);
|
const playerId = player.syncPlayWrapAs || player.id;
|
||||||
const Wrapper = this.wrappers[player.id];
|
|
||||||
|
console.debug('SyncPlay WrapperFactory getWrapper:', playerId);
|
||||||
|
const Wrapper = this.wrappers[playerId];
|
||||||
if (Wrapper) {
|
if (Wrapper) {
|
||||||
return new Wrapper(player, syncPlayManager);
|
return new Wrapper(player, syncPlayManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug(`SyncPlay WrapperFactory getWrapper: unknown player ${player.id}, using default wrapper.`);
|
console.debug(`SyncPlay WrapperFactory getWrapper: unknown player ${playerId}, using default wrapper.`);
|
||||||
return this.getDefaultWrapper(syncPlayManager);
|
return this.getDefaultWrapper(syncPlayManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user