mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +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: {
|
plugins: {
|
||||||
airPlay: {},
|
airPlay: {
|
||||||
|
addButtonToControlBar: uiConfig?.enableChromecast ?? false,
|
||||||
|
},
|
||||||
chromecast: {},
|
chromecast: {},
|
||||||
vttThumbnails: {
|
vttThumbnails: {
|
||||||
showTimestamp: true,
|
showTimestamp: true,
|
||||||
|
|
@ -428,7 +430,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = PatchComponent(
|
||||||
};
|
};
|
||||||
// empty deps - only init once
|
// empty deps - only init once
|
||||||
// showAbLoopControls is necessary to re-init the player when the config changes
|
// showAbLoopControls is necessary to re-init the player when the config changes
|
||||||
}, [uiConfig?.showAbLoopControls]);
|
}, [uiConfig?.showAbLoopControls, uiConfig?.enableChromecast]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const player = getPlayer();
|
const player = getPlayer();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue