如何隐藏 react-native-video 中的额外控件
How to hide the extra controls in react-native-video
我正在使用 react-native-video,我正在尝试弄清楚如何仅隐藏下图中的两个按钮(标题和条形图)。
我仍然想要擦洗器和时间。传递 controls=false 会隐藏我不想要的所有内容。
这是我当前的播放器组件设置
<Video
onPlaybackRateChange={onPlaybackRateChange}
source={{ uri }}
resizeMode="contain"
useNativeDriver={true}
style={styles.video}
disableTimer={true}
controls={true}
/>
我认为你应该使用 controls={true}
属性隐藏控件并使用其他包来进行电影控制,例如 react-native-video-controls or react-native-video-player as mentioned in documentation
我正在使用 react-native-video,我正在尝试弄清楚如何仅隐藏下图中的两个按钮(标题和条形图)。 我仍然想要擦洗器和时间。传递 controls=false 会隐藏我不想要的所有内容。
这是我当前的播放器组件设置
<Video
onPlaybackRateChange={onPlaybackRateChange}
source={{ uri }}
resizeMode="contain"
useNativeDriver={true}
style={styles.video}
disableTimer={true}
controls={true}
/>
我认为你应该使用 controls={true}
属性隐藏控件并使用其他包来进行电影控制,例如 react-native-video-controls or react-native-video-player as mentioned in documentation