Can anyone help: How to embed a youtube video inside unity3D level?

Hi,

I am a new user here. I will appreciate if someone can tell me how to embed a youtube video inside unity3D level.

Thanks

Download the Youtube Video. Turn it into a MP4 file.

Then call it:

function Start () {
Handheld.PlayFullScreenMovie (“VideoName.mp4”, Color.black, FullScreenMovieControlMode.CancelOnInput);
}

Reference:

Description
Plays a full-screen movie.

Note that player will stream movie directly from the device storage, therefore you have to provide movie as a separate files and not as a usual asset. You will have to create a folder named StreamingAssets inside your Unity project (inside your Assets folder). Store your movies inside that folder. Unity will automatically copy contents of that folder into the application bundle.

Calling this function will pause Unity during movie playback. When playback finishes Unity will resume.

If this doesn’t help you,

Try checking this page out:

http://docs.unity3d.com/Documentation/Manual/VideoFiles.html

this works very well and a decent api

http://mythoslabs.com/