make airplay follow chromecast enable (#6296)

This commit is contained in:
feederbox826
2025-11-18 21:29:15 -05:00
committed by GitHub
parent 68ebeda5c8
commit 58b6833380

View File

@@ -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();