androidvirtual-realitygoogle-vrgoogle-vr-sdk

How do I get VrVideoView to start in Cardboard mode?


http://trimensions.org/node/83 I am coding by importing the code from the link above. But this code starts on a small screen. As soon as I start, I want to start with the Cardboard mode (a mode with both left-eye and right-eye monitors). However, no matter how I read the code, the code to switch to Cardboard mode is not visible in this code. I think it is all contained in VrVideoView. If you know something, let me know. Thanks.


Solution

  • Just add this line after declaring VrVideoView variable. I've declared it 'videoWidgetView'.

    videoWidgetView.setDisplayMode(3);
    

    1: Mono Display (Normal Screen)

    2: Full Screen

    3: Stereo Screen (CardBoard Mode)