Reputation: 2605
Pause mpmovieplayercontroller programmatically - is it possible?
tnx.
Upvotes: 2
Views: 4536
Reputation:
...
player = [[MPMoviePlayerController alloc] initWithContentURL:....
...
- (IBAction)btPausePressed {
[player pause];
}
for me at ios 5.1 it is working
Upvotes: 1
Reputation: 43996
MPMoviePlayerController implements the MPMediaPlayback protocol, so on your player, you can just send a pause message:
[player pause];
Upvotes: 6
Reputation: 8653
According to the Apple Documentation of MPMoviePlayerController you simply need to call stop
on your object. However, this will also hide it.
Upvotes: -1