|
Plays a full-screen movie. Note that player will stream movie directly from the iPhone disc, therefore you have to provide movie as a separate files and not as an 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 iPhone application bundle.
Calling this function will initiate a transition that fades the screen from your current content to the designated background color of the player. When playback finishes, the player uses another fade effect to transition back to your content.
Calling this function will pause Unity during movie playback. When playback finishes Unity will resume.
iPhoneUtils.PlayMovie internally uses MPMoviePlayerController object to play movies. Therefore you should expect the same behavior and the same supported formats. MPMoviePlayerController supports any movie or audio files that already play correctly on an iPod or iPhone. For movie files, this typically means files with the extensions .mov, .mp4, .mpv, and .3gp and using one of the following compression standards:
You can find Apple's MPMoviePlayerController documentation here: MPMoviePlayerController Class Reference