diff --git a/components/video-player/Controls.tsx b/components/video-player/Controls.tsx index 2ab0ba23..f0a5b370 100644 --- a/components/video-player/Controls.tsx +++ b/components/video-player/Controls.tsx @@ -434,7 +434,7 @@ export const Controls: React.FC = ({ height: "100%", }} > - = ({ ))} - + */} = ({ }} className="p-4" > - { - handlePresentModalPress(); - }} - className="aspect-square flex flex-col bg-neutral-800/90 rounded-xl items-center justify-center p-2" - > - - - {/* + + + + = ({ { - console.log("Trying to set subtitle..."); if (sub.isExternal) { - console.log("Setting external sub:", sub); setSubtitleURL && setSubtitleURL( api?.basePath + sub.deliveryUrl, sub.name ); - return; + } else { + setSubtitleTrack && setSubtitleTrack(sub.index); } - - console.log("Setting sub with index:", sub.index); - setSubtitleTrack && setSubtitleTrack(sub.index); }} > @@ -563,24 +554,23 @@ export const Controls: React.FC = ({ loop={true} sideOffset={10} > - {audioTracks?.map((a, idx: number) => ( - ( + { - setAudioTrack && setAudioTrack(a.index); + onSelect={() => { + setAudioTrack && setAudioTrack(track.index); }} > - {a.name} + {track.name} - + ))} - */} + = ({ onPress={() => { toggleControls(); }} - > - - + style={{ + position: "absolute", + top: 0, + left: 0, + width: "100%", + height: "100%", + opacity: showControls ? 0.5 : 0, + backgroundColor: "black", + }} + >