mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-03 19:22:32 +00:00
fix: pressin to show controls
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -382,7 +382,7 @@ export const Controls: React.FC<Props> = ({
|
||||
</View>
|
||||
|
||||
<Pressable
|
||||
onPress={() => {
|
||||
onPressIn={() => {
|
||||
toggleControls();
|
||||
}}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user