Cardboard SDK将VRVideoView初始化为全屏并处于VR模式(分屏)

时间:2016-04-18 14:11:29

标签: android google-cardboard

我无法知道为什么VrVideoView中没有公共API可以进入全屏模式或VR分屏模式(立体)。

我必须使用视图左下角的纸板图标进入VR模式。

我已经能够使用下面的代码进入fullsceen模式,但它与我的权利相同。

videoWidgetView.fullScreenDialog.show();

1 个答案:

答案 0 :(得分:5)

如果还需要它。 确保您拥有最新版本(在0.9.1上测试)

全屏使用

videoWidgetView.setDisplayMode(VrVideoView.DisplayMode.FULLSCREEN_MONO;

使用VR眼镜

videoWidgetView.setDisplayMode(VrVideoView.DisplayMode.FULLSCREEN_STEREO);