Shay
Shay

Reputation: 2605

Pause mpmovieplayercontroller programmatically - is it possible?

Pause mpmovieplayercontroller programmatically - is it possible?

tnx.

Upvotes: 2

Views: 4536

Answers (3)

user529543
user529543

Reputation:

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

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

for me at ios 5.1 it is working

Upvotes: 1

Codebeef
Codebeef

Reputation: 43996

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

[player pause];

Upvotes: 6

DonnaLea
DonnaLea

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

Related Questions