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.
精彩评论