Reputation: 1689
One of my client want to run 3d video on Unity3d, I have two question
Upvotes: 1
Views: 812
Reputation: 296
add this code where you want to play a vedio:
Handheld.PlayFullScreenMovie("MovieFileName.mp4",Color.black,FullScreenMovieControlMode.CancelOnInput,FullScreenMovieScalingMode.AspectFit);
then put your movie file in Assets/StreamingAssets, movie file means:
.mov, .mp4, .mpv, and .3gp and using one of the following compression standards: H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. Note that B frames are not supported in the Baseline profile. MPEG-4 Part 2 video (Simple Profile).
details in: http://docs.unity3d.com/Documentation/ScriptReference/Handheld.PlayFullScreenMovie.html
Upvotes: 0
Reputation: 1070
If you meant playing a video on a texture in a 3D scene, then Unity3D as a MovieTexture class you can use. Sadly, it requires a Pro license and doesn't work on iOs or Android :(
Upvotes: 1