Hi
I’m just testing the video player code for iPad ONLY - so I have a scene with a camera only, and a script attached to the camera as such:
function Start() {
iPhoneUtils.PlayMovie("movie name", Color.black, iPhoneMovieControlMode.Full);
}
I imported the movie at the following specs:
MP4
H.264 Codec
30fps
640x478
B-Frames = 0;
I have the movie sitting in a “Streaming Assets” folder in Unity (this is in the Assets folder).
When I build and play on the iPad, I get nothing. Just the empty scene.
I’ve been scouring the forums and google, but can’t see how I’m doing anything differently to anyone else. Any suggestions? Thanks! 
Do you really have space symbol in “Streaming Assets” name? Because there should be no space in that name. And please make sure you have iOS Pro license.
Same to me. The video player seems to try to play it but it only slides to back and then it slides back to the scene.
It prints no error in console debug log in xcode.
The file path is currently looking like this:
filepath = "file://" + Application.dataPath +"/" +"RAW" +"/" + video_names[GetItemIndex()].ToString() +"_ger"+ ".mp4";
Im not sure about the relative or a absolute file path.
@Malzbier by using .NET method File.Exists you can double-check if file is successfully copied to the device:
also, put the video into the regular movie player on the ipad. that way you can verify its really iPad compatible
Putting in a total path was wrong , only with relative path to “StreamingAssets” / “RAW” then its working fine.
You can use one of this video files from apple to test if it not working with you video or not working att all
http://support.apple.com/kb/HT1425
(i used sample_mpeg4.mp4)
Hi
Resurrecting this thread before i throw the ipad out the window!
I had the movie running perfectly well for the past few weeks. I’ve been working on other areas of my app, going nowhere near the movie play code or the movie itself (that lives in Streaming Assets folder.
Now, out of the blue… no movie!
I stuck this in my code per above to see if the movie is there, but keeps saying it is missing:
var movieString : String;
movieString = "mymovie.mp4";
if (File.Exists(Application.dataPath +"/" +"RAW" +"/" +movieString))
{
Debug.Log("File is here!");
}
else
{
Debug.Log("File is missing! " + Application.dataPath +"/" +"RAW" +"/" +movieString);
}
I have updated to the latest Xcode and wonder if that might have affected things?
Why is it that after a whole day of trying to find a solution, I finally make a post, then the very next google search gives me the answer/fix to my solution??? Argh!!!
Anyway, as it turns out I had to rename my “Streaming Assets” folder to “StreamingAssets”… Was in the change log (note: Must remember to read said logs).