mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
make airplay follow chromecast enable (#6296)
This commit is contained in:
parent
68ebeda5c8
commit
58b6833380
1 changed files with 4 additions and 2 deletions
|
|
@ -369,7 +369,9 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = PatchComponent(
|
|||
},
|
||||
},
|
||||
plugins: {
|
||||
airPlay: {},
|
||||
airPlay: {
|
||||
addButtonToControlBar: uiConfig?.enableChromecast ?? false,
|
||||
},
|
||||
chromecast: {},
|
||||
vttThumbnails: {
|
||||
showTimestamp: true,
|
||||
|
|
@ -428,7 +430,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = PatchComponent(
|
|||
};
|
||||
// empty deps - only init once
|
||||
// showAbLoopControls is necessary to re-init the player when the config changes
|
||||
}, [uiConfig?.showAbLoopControls]);
|
||||
}, [uiConfig?.showAbLoopControls, uiConfig?.enableChromecast]);
|
||||
|
||||
useEffect(() => {
|
||||
const player = getPlayer();
|
||||
|
|
|
|||
Loading…
Reference in a new issue