Video Complete Event

Hello,

I am looking for a solution for knowing when a video that is played via iPhoneUtils.playMovie has finished playing. Is there function that gets called somewhere? is this an Objective-c thing?

Thanks!

Anyone know the answer to this question ?
We have a trouble too with correct handling of finishing movie playback with iPhoneUtils.PlayMovie function in certain situation.
Please help !

The line of code right after your iPhoneUtils.playMovie will get called after coming back from playing the video, so your application basically freezes while the video is playing.

Yes, but like I said in support section of the forum, there is some situations when its not freeze. ( http://forum.unity3d.com/threads/68577-What-is-correct-way-to-determine-when-iPhoneUtils.PlayMovie-is-finished )
For example if during the video playing device will go to standby and then wakeup.
Or during receive sms/ decline incoming voice call.
And this situations leads to negative side effect when we play a video and start to load next scene, and player can miss critical part of gameplay.
I think this is a Unity bug.

Ya this is brutal. I have a situation where if you close the application during video playback, when you relaunch the application (with OS4 multitasking) it continues the video playback (as expected) but ALSO continues the unity app underneath the video. When you have something critical occurring upon video completion this gets ugly.

Bump. Is there any fix or workaround for this that doesn’t involve writing obj-c? This seems like a pretty nasty bug. I’m using the movie player to play an intro movie, after which the main menu loads. I’m sure other people are doing similar things. This bug is causing the main menu to load and run while the movie is still playing.

I am also suffering from this bug :frowning: any help?

Nope. Your app is put in the background while the video plays. This is more an iOS bug than a Unity thing.