Does iPhoneUtils.PlayMovie work on Android devices?

I saw in the product features, in the Unity ‘Store’ that you can play full screen movies on Android.

I tried using iPhoneUtils.PlayMovie, but it didn’t work for me. Maybe I’ve got some movie format wrong or something…

Were you guys able to play a movie on an Android device?

Thanks,
Bogdan

Yes, iPhoneUtils.PlayMovie() works on Android. Take a look at the attached example. What exactly did not work for you though?

513374–18257–$video-test.zip (1.24 MB)

Hi Denis!

Thanks for the sample project. I tried running it, but all I get is a black screen, with no video playing (when pressing any of the buttons).
Did it work for you?

I tested it in Unity 3.3 f2, on a Nexus One and the Xperia Play.

Thanks,
Bogdan

Supplied codecs depend on the particular device. Please recheck the compatible video formats and try with your devices.
The safe bet should be H.264 for video (resolution like 640x480 should be OK) and MP3 for sound.

Ok, I found a codec that works for the videos. However, now the problem is that when a video completes there is a serious hang/delay before getting back into the game, and the fact that Unity doesn’t stop execution like it does on iOS.

Hi iWoz!

Have you had any issues with playback quitting early? I am using iPhoneUtils.PlayMovie() for our Android build of our product and about halfway through the movie it stops (no indication of a crash, no hiccups or glitches in the playback) and returns us to the original menu.

Any update on fixing the quirks of iPhoneUtils.PlayMovie for Android?

Your code not working

code not working

not working