mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
make airplay follow chromecast enable (#6296)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user