Ahmed Hegazy Ahmed Hegazy - 3 months ago 81
Android Question

Cardboard SDK initialize VRVideoView to be fullscreen and in VR mode(Split Screen)

I can't know why there is no public API in the VrVideoView to enter fullscreen mode or VR Split screen mode(Stereoscopic).

I must use the cardboard icon at the bottom left of the view to enter the VR Mode.

I've been able to enter the fullsceen mode by using the bellow code but it ain't same right to me.

videoWidgetView.fullScreenDialog.show();

Answer

If it is still needed. Make sure you have the lastest version ( tested on 0.9.1 )

For fullscreen use

videoWidgetView.setDisplayMode(VrVideoView.DisplayMode.FULLSCREEN_MONO;

for VR glasses use

videoWidgetView.setDisplayMode(VrVideoView.DisplayMode.FULLSCREEN_STEREO);