English 中文(简体)
Cocoa-Touch: issue looping MPMoviePlayerController
原标题:

I have an app which has to load some data at startup, so I want to display a splash-screen animation.

I m using the MPMoviePlayerController to play a m4v file.
The movie has it s background set to [UIColor clearColor].
Default.png is the movies first frame, and also the initial views background image (as a UIImageView).

To loop the movie, I m subscribing to it s MPMoviePlayerPlaybackDidFinishNotification notification and when it triggers I m doing a [movie play] which restarts the movie.

Everything works almost fine.

When the movie is re-started (the 2nd loop), it plays, but once every few frames it paints the background image over it again and then re-paints the movie. This produces something close to a flicker.

It s like having this frame sequence:
1 2 3 4 _image_ 5 6 7 8 9 _image_ 10 11 12 ..
I ve validated that it s the background image by changing it, and the repainted image is also changed.

Does anyone know what s wrong?

最佳回答

This seems to only happen on the simulator, it works fine on the device. I can live with that.

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签