I just downloaded the 3.0 beta5 but it appears I’m doing something wrong when playing a video back on the iPhone. Has anyone gotten this feature to work yet?
Also, I am set up correctly?
I have my StandardAssets folder, then the StreamingAssets folder with the video inside of it.
I’m using the below line to call the movie to play in a Start function and again later after the level is completed:
iPhoneUtils.PlayMovie(“test.mov”, Color.black, iPhoneMovieControlMode.CancelOnTouch);
The video is actually named test.mov
All I get for playback is a black iPhone movie screen that blinks very quickly.
Optimally you export from itunes or something comparable as “iphone movie” (-> m4a)
Generelly the iOS only supports a small number of profiles
an easy way to check if the movie actually works is putting it into itunes, sync it with the iphone and test in movie player. if it works it will with unity, if it doesn’t, it won’t work with unity.
I put another hour into this with videos from my iTunes library as suggested. I’m still getting the same blinking video on all devices (iPad, iPhone 3G, iPhone4).
Anyone have a demo project that could point me to or post here?
StreamingAssets must be on the project folder level, next to Library and Assets. It must NOT be within the Assets folder at all or it will not go through untouched to the device (thats the purpose of the StreamingAssets folder, sending data untouched to the iphone for usage with external frameworks like the MPMoviePlayer in this case)
At some point there were changes that required you to have the StreamingAssets folder (used for storing videos) inside of your Assets folder.
Also please make sure video you’re trying to feed unity with can be played with standard iPhone player (as Unity actually uses it for playing videos on iPhone).
I missed that point on the change log and realized it last night while conducting some experiments that not only the name but also location changed.
I previously assumed it was an error on something else and up and nearly ready to report a bug on the matter as it is important for real messures, not just movie blinky blink (asset bundle inclusion in the deploy)
if it is put in, the movies work, but they still suffer the rotation problem (portrait only)