Making VR video player

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.