fix: pressin to show controls

This commit is contained in:
Fredrik Burmester
2024-11-26 22:27:05 +01:00
parent 1fdf45daa7
commit 6df20f516c
3 changed files with 5 additions and 11 deletions

View File

@@ -404,10 +404,7 @@ export default function page() {
return (
<View style={{ flex: 1, backgroundColor: "black" }}>
<Pressable
onPress={() => {
// setShowControls(!showControls);
}}
<View
style={{
display: "flex",
width: "100%",
@@ -445,7 +442,7 @@ export default function page() {
writeToLog("ERROR", "Video Error", e.nativeEvent);
}}
/>
</Pressable>
</View>
{videoRef.current && (
<Controls
mediaSource={stream?.mediaSource}

View File

@@ -395,10 +395,7 @@ const Player = () => {
return (
<View style={{ flex: 1, backgroundColor: "black" }}>
<Pressable
onPress={() => {
// setShowControls(!showControls);
}}
<View
style={{
display: "flex",
width: "100%",
@@ -461,7 +458,7 @@ const Player = () => {
) : (
<Text>No video source...</Text>
)}
</Pressable>
</View>
{item && (
<Controls

View File

@@ -382,7 +382,7 @@ export const Controls: React.FC<Props> = ({
</View>
<Pressable
onPress={() => {
onPressIn={() => {
toggleControls();
}}
style={{