You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing a react-native-visionos app and using the immersive space I cannot resize the screen while on immersive mode. This seems possible on native environment on other apps.
Here is a screenshot of the app on immersive mode and fullscreen:
And here is a screenshot of the app on fullscreen without an immersive space:
Why it is needed ?
The resize and movement of the screen would be a nice feature for the videoplayer to have.
Possible implementation
I have look into some documentation and I am not certain but I think what would be needed is to implement the use of AVPlayerViewController in the RCTVideo.swift file for visionOS. According to documentation this AVPlayerViewController is the one that gets on the DockingRegionComponent being unable to move it or resize it. Seems that per default the videoplayer is being placed on this section and we have no way to edit this.
Description
I am developing a react-native-visionos app and using the immersive space I cannot resize the screen while on immersive mode. This seems possible on native environment on other apps.
Here is a screenshot of the app on immersive mode and fullscreen:
And here is a screenshot of the app on fullscreen without an immersive space:
Why it is needed ?
The resize and movement of the screen would be a nice feature for the videoplayer to have.
Possible implementation
I have look into some documentation and I am not certain but I think what would be needed is to implement the use of AVPlayerViewController in the RCTVideo.swift file for visionOS. According to documentation this AVPlayerViewController is the one that gets on the DockingRegionComponent being unable to move it or resize it. Seems that per default the videoplayer is being placed on this section and we have no way to edit this.
Here are other resources:
Code sample
Code sample
The text was updated successfully, but these errors were encountered: