The recent VR fire do not want, but integrated, the most VR resources are also panoramic images and panoramic video, here today to give you a brief introduction of how to make a simple VR video player with unity.
First find easymovietexture This plugin, Assetstore address: https://www.assetstore.unity3d.com/en/#!/content/10032
After importing you can see the following scenarios in the project catalog
This time we're using Demo_sphere.
After opening, you can see that there is only one maincamera and one sphere in the scene, and this spere is the sphere we want to use to play the video.
Next, import the SDK for Googlecardboard (we recommend downloading the latest version). Official address (requires FQ): Https://developers.google.com/cardboard/unity/download
(A long absence of Chinese ah, moved to No)
Find the prefabs in the Cardboard folder, drag Cardboardhead into the scene, position and rotation both return to 0 and delete the Maincamera from the scene.
Now, find sphere, you can see hanging Mediactrl this script, wherein strFileName is the path of the video, put your VR video into the Streamingassets folder, and then fill in the file name, put on the phone can be run ~
At the same time, benefit from easymovietexture powerful features, video path support video URL link, support streaming media playback, this everyone is blessed!
To play different videos, simply pass in the corresponding address according to the user's choice of video.
Making VR video player