Unity3d + VideoPlayback

Source: Internet
Author: User

The main function of VideoPlayBack is to enhance the video display effect. This video can be a local resource or a network resource. It can be played on the logo or in full screen. The available range is very wide and interesting. When performing video enhancement display in Unity3d, The ARCamera processing is the same as that of ImageTarget. Note the following points: 1. Set the application description window. After the application is enabled, the APP content is displayed in a window, which is controlled by this script. The displayed content can be set in This step: private const string mText = "This sample application shows how to play a video in \ n" +
"AR mode \ n" +
"Devices that support video on texture can play the \ n" +
"Video directly on the image target. Other devices will \ n" +
"Play the video in full screen mode. \ n" +
"Note: iOS devices can only play network files in full \ n" +
"Screen mode."; you can also not add this script to ARCamera without a prompt box. 2. Different logos correspond to different videos. There are two parts: ImageTarget and Video. ImageTarget is mainly used for logo recognition and registration, and Video is mainly used to play videos. The Video View panel contains the following content:
You can put the video Path in StreamingAssets, and then enter the video name directly in the Path, including the suffix, such as chaigaizi. m4v. Conclusion: You can try these two points.
AR Technology Network ar Research Group 1 is full
AR Technology Network ar Research Group 2 293393443

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.