开发者

Pause mpmovieplayercontroller programmatically - is it possible?

开发者 https://www.devze.com 2022-12-14 23:32 出处:网络
Pause mpmovieplayercontroller programmatically - is it 开发者_运维知识库possible? tnx.MPMoviePlayerController implements the MPMediaPlayback protocol, so on your player, you can just send a pause me

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

精彩评论

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