-
Notifications
You must be signed in to change notification settings - Fork 191
Display issue on modal presenting #319
Comments
I was not able to repo this. Are you sure you are laying out the vrVideoViewController.view in the view[Will/Did]LayoutSubviews? Try the following code where the only difference is that I had to implement self.ex.addChildViewController.
|
Thanks for reply @Performador. It still doesn't work. I share with you a screen capture with the structure of the modal :
Is it more clear? Thanks. |
Ah, I see. I think the problem is that you cannot have two modal VCs at the same time and GVRRendererViewController will call presentViewController if we are in the embedded mode (like the picture you shared). |
But it’s embedded into a navigation controller too, so it’s technically possible. |
GVRRendererViewController will call it's parent VCs presentViewController method. You can override this method in your VRVideoViewController and call [self.navigationController presentViewController ...] to route the modal presentation to the navigation controller. |
I'm not sure about this. If I'm right, the - (void)didTapCardboardButton {
// Toggle VR mode if we are being presented.
if ([self isModal]) {
self.rendererView.VRModeEnabled = !self.rendererView.VRModeEnabled;
} else {
...
} |
Ah, yes, thanks for the explanation. You are right. The SDK assumes that if we are modal, we are full screen but in your case, this is not true. |
Hi Google VR team,
We have some issues with displaying the
GVRPlayer
correctly on aUIViewController
which is displayed into aUINavigationController
(which is displayed in modal).Use case: the player is firstly embedded in our
UIViewController
(as it is in your sample code, the only difference is that it is embedded into aVRVideoViewController
. See source below), and we want to display/switch the video in full screen next.The final issue is that when we tap on fullscreen / cardboard, the player don't switch to fullscreen mode. We've tried to push the player in the current
UINavigationController
stack (displayed in modal mode), but the OpenGL video rendering is still broken, and lens not correctly fit the entire size of the screen.Here our code integration extract for the player configuration :
Could you please update the sample code with a modal example, similar to the root
UIViewController
which is used today?We have tested your sample with modal display and we have the same rendering issue, any idea?
Thanks
The text was updated successfully, but these errors were encountered: