How to play movie in iphone using unity3d

H

this is code used to play the video in iphone using unity 3d

using UnityEngine;

using System.Collections;
public class IntroMovie : MonoBehaviour {

void Start ()  {

iPhoneUtils.PlayMovie(“CINEMATIC_WITH_MUSIC.mp4”,Color.black,

iPhoneMovieControlMode.CancelOnTouch,iPhoneMovieScalingMode.AspectFit);   }

}

one important thing in order to play video files it should be placed in StreamingAssets folder

if the video placed outside it will not work

 

  keno winnings

About the author

mohan.rao
By mohan.rao

Category