iPhone Video Playback 3.0 beta5 working?

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?

  1. I have my StandardAssets folder, then the StreamingAssets folder with the video inside of it.
  2. 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);
  3. The video is actually named test.mov

All I get for playback is a black iPhone movie screen that blinks very quickly.

Link to release notes for reference: http://beta.unity3d.com/download/7719990971/ReleaseNotes30.html?mkt_tok=3RkMMJWWfF9wsRonuqzKZKXonjHpfsX%2B7ugkT%2Frn28M3109ad%2BrmPBy%2B24ACWoEnZ9mMBAQZC810zgVMA7OR)

mov is not supported is it?

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?

Just to check one thing:

  1. 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)

checked it.
there is indeed something fishy.

Either the changelog included facts that don’t meet b5 or only part of U3 b5 knows that the path is a different one than before

OK, send beta feedback. Thanks for the assistance. I read a few of your blogs entries and subscribed. Have a good one.

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).

wozik beat me to it.

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 :wink: (asset bundle inclusion in the deploy)

if it is put in, the movies work, but they still suffer the rotation problem (portrait only)

Well they should not, I have verified they also support the proper landscape mode some few weeks ago.

Thanks for clearing this up!