![]() tDisplayMode(DisplayMode.FULLSCREEN_STEREO) If you want to go full-screen and use goggles. tDisplayMode(DisplayMode.FULLSCREEN_MONO) If you want to go full-screen without goggles. See below for the code to do this (note: this code can be called anytime after the VrVideoView is constructed and it will adjust accordingly): // This displays the video as inside the normal bounds for viewing without the VR goggles. The fullscreen stereo option will split the video into two images, one for each eye, and will be viewable with the VR goggles. The fullscreen monoscopic mode is similar to embedded in that is is the same one-eyed perspective, but instead the device's entire screen is used as the viewport. The embedded mode is the regular small player that fits into your UI and acts as a small one-eyed viewport into the 360 video, with distortions corrected. In this case, you can simply set the display mode of the VR player. Now, you probably want to play this video using goggles. Options.inputType = Options.TYPE_STEREO_OVER_UNDER This tells the player that the video is a stereoscopic top/bottom 360 video Now if you are playing a stereoscopic top/bottom format 360 video, then you can similarly play it by just altering the input type of the video: VrVideoView vrVideoView ![]() VrVideoView.loadVideoFromAssets("my-video.mp4", options) Options.inputFormat = Options.FORMAT_DEFAULT If you are linking to a single video file, use default. This tells the player that it should play using HLS or progressive video play ![]() ![]() This tells the player that the video is a monoscopic 360 video If the video you are attempting to play is a monoscopic 360 video (as is the case with the linked video), then you can play it using the VR SDK as follows: VrVideoView vrVideoView Google's VR player only supports the top/bottom version of the stereoscopic format. With stereoscopic, the video was shot using two cameras and depending on the stereoscopic format (there's top/bottom and left/right), it will look like the bottom image in your question when viewed with a regular player and will also look distorted. With monoscopic, the video was shot with only one camera and when viewed in a regular player, it looks like the top image in your question, with all the distortions. The video you linked to is not a stereoscopic video, but is a monoscopic video.įor the clarity of this answer, I'll briefly explain the two types of VR videos supported by Google's VR SDK: Monoscopic and Stereoscopic videos. I downloaded the video you linked to and was able to get it to play properly using the VrVideoView in both regular and goggle modes. ![]()
0 Comments
Leave a Reply. |