I just got the Unity Pro version with the intention to be able to play Videos on my iPhone using Unity. I am using Unity Pro with iPhone Basic. The MovieTexture works fine in the Unity GameView, but when I try to install it to the iPhone, it gives me the following error:
MovieTextures are supported when publishing to the iPhone. Please use iPhoneUtils.PlayMovie function instead.
assets/videos/tennis.mov
I searched everywhere for the documentation of the iPhoneUtils class, so that I could understand how to use the PlayVideo function. Not only is it nowhere in the documentation, but even the forums don’t have any posts on it. Has someone out there encountered such an issue.
I found the answer to this one, thanks to the promptness of the Unity Support Desk. The documentation is available in the Unity iPhone/Documentation/ScriptReference/iPhoneUtils.html
folder which installs with Unity. I still find it unusual that the documentation for iPhone version is unavailable online. But now I have another issue.
When I use the iPhoneUtils.PlayVideo function, my video doesn’t play in the Unity gameview, and upon loading on the iPhone, it just shows the Quicktime launch screen. Below is my code:
iPhoneUtils.PlayMovie("Tennis.mov", Color.black, iPhoneMovieControlMode.CancelOnTouch);
I also created a folder called iPhoneStreamingAssets, right next to the Assets folder in my project and copied the Tennis.mov file into that. This is as instructed in the documentation.
Could someone please give some direction to me. I do not necessarily ask for the exact answer. If someone can point me in the right direction, as to what might be happening, I am sure I will be able to find my way from there.
Thanks a lot.
Ok, I found the answer to this one too. The video formats supported by the PlayVideo function of iPhoneUtils are following:
My video was in Raw .mov format, which is not supported. Hope this helps others too.
The online documentations are desktop unity only.
wouldn’t make sense to mix in the iphone docs as unity iphone is an addon that must be bought additionally.
there are different differences between unity iphone and the regular one with things only present on one side but not the other (view area, iphonexxx, terrain, …) and its better to not mix them as it can easily be missinterpreted.
Nice find though
wasn’t aware that this is present already but I also have not given such functionality a close look as I own bliprobs enhancement kit
I wasn’t indicating the need of a combined documentation, but the need of a documentation section for the iPhone addon. Otherwise there is no way to find the latest documentation, and the differences exceed way beyond the availability of certain features. The differences like the one highlighted above should be documented separately in a section for iPhone.
No wonder you didn’t know about the iPhoneUtils class, if you google “iPhoneUtils” you get 0 results that match perfectly. :lol:
The latest available documentation is always installed with the corresponding Unity install.
I don’t think that any updates is made public without a new release actually.
The web documentation, at least to me, are mainly there if I am not near my unity box or don’t want / can start it but want to answer a question that requires that I check the script ref 
And I didn’t find it because it does not exist in Unity iPhone 1.0.3f1.
Neither docs nor the class itself is recognized.
So I guess you potentially are part of the beta tester team or got access to a special build which includes that feature.
In that case I don’t think you are meant to post about it here at all.