diff --git a/components/video-player/controls/BrightnessSlider.tsx b/components/video-player/controls/BrightnessSlider.tsx index 33fe0e0f..3cbbd460 100644 --- a/components/video-player/controls/BrightnessSlider.tsx +++ b/components/video-player/controls/BrightnessSlider.tsx @@ -14,10 +14,11 @@ const BrightnessSlider = () => { useEffect(() => { const fetchInitialBrightness = async () => { const initialBrightness = await Brightness.getBrightnessAsync(); + console.log("initialBrightness", initialBrightness); brightness.value = initialBrightness * 100; }; fetchInitialBrightness(); - }, [brightness]); + }, []); const handleValueChange = async (value: number) => { brightness.value = value; diff --git a/components/video-player/controls/Controls.tsx b/components/video-player/controls/Controls.tsx index 0e8c5451..f42600e3 100644 --- a/components/video-player/controls/Controls.tsx +++ b/components/video-player/controls/Controls.tsx @@ -344,9 +344,10 @@ export const Controls: React.FC = ({ { position: "absolute", right: insets.right, - bottom: insets.bottom + 50, + bottom: insets.bottom + 55, }, ]} + pointerEvents={showSkipButton ? "auto" : "none"} className={`z-10 p-4 ${showSkipButton ? "opacity-100" : "opacity-0"} `} @@ -561,10 +562,15 @@ export const Controls: React.FC = ({ opacity: showControls ? 1 : 0, }, ]} - pointerEvents={showControls ? "auto" : "none"} + pointerEvents={showControls ? "box-none" : "none"} className={`flex flex-col p-4`} > - + {item?.Name} {item?.Type === "Episode" && ( {item.SeriesName} @@ -577,7 +583,7 @@ export const Controls: React.FC = ({ )}