开发者

Pause mpmovieplayercontroller programmatically - is it possible?

Pause mpmovieplayercontroller programmatically - is it 开发者_运维知识库possible?

tnx.


MPMoviePlayerController implements the MPMediaPlayback protocol, so on your player, you can just send a pause message:

[player pause];


...
player = [[MPMoviePlayerController alloc] initWithContentURL:....
...

- (IBAction)btPausePressed {
    [player pause];  
}

for me at ios 5.1 it is working


According to the Apple Documentation of MPMoviePlayerController you simply need to call stop on your object. However, this will also hide it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜