Open ChadyAyoub4 opened 9 months ago
Hey, @ChadyAyoub4 you right something is not working. I will try to fix it. Here is workaround for it:
const MyVideoComponent = () => {
const [fullScreen, setFullScreen] = useState(false);
return (
<Video
onFullscreenPlayerWillPresent={() => {
setFullScreen(true);
}}
onFullscreenPlayerWillDismiss={() => {
setFullScreen(false);
}}
...
style={fullScreen ? StyleSheet.absoluteFill : styles.video}
fullscreen={fullScreen}
...
/>
)
}
We just need to apply absoluteFill when player is going into fullscreen mode
@KrzysztofMoch Thank you for your response. Will this enable the default controls or i will need to handle controls after that.
Native controls should work (if you add controls={true}
)
Native controls should work (if you add
controls={true}
)本机控件应该可以工作(如果添加controls={true}
)
I've also noticed that only when 'controls' is set to true, the 'presentFullscreenPlayer' will prompt a fullscreen window on Android, while it works normally on iOS.
@ChadyAyoub4 You can use this method to enter or exit full-screen mode. setFullScreen.
This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.
In apple TV after presenting full screen showing black screen. i tried this style={fullScreen ? StyleSheet.absoluteFill : styles.video} unfortunately not working for me.
This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.
Version
v6 (Beta)
What platforms are you having the problem on?
Apple tvOS
Architecture
Old architecture
What happened?
I just used <video component with fullscreen prop and it is not working, i also tried .presentFullscreenPlayer() and it does not work as well
Reproduction
Create a react native project using npm:react-native-tvos@0.64.2-2, download react-native-video latest beta version, and try the fullscreen prop, it used to work in v5.2.1 normally