开发者

moviePlayBackDidFinish stops working

开发者 https://www.devze.com 2023-02-24 00:36 出处:网络
I have an observer to my movieplayer, set like this. [[NSNotificationCenter defaultCenter] removeObserver:self

I have an observer to my movieplayer, set like this.

    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                name:MPMoviePlayerPlaybackDidFinishNotification
                                              object:nil];
开发者_JAVA百科

The movie played is more a background animation with sound.

For some reason, the observer for the moviePlayerDidFinish seems to stop after a while. Any idea what might go wrong here?


Blush, sometimes Im such a noob.

moviePlayer.repeatMode= MPMovieRepeatModeOne; for the win. >.<

Ah well, thanks for reading though. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消