Dinesh
Dinesh

Reputation: 6532

Find MPMoviePlayerController is Playing Or not

I need to find the MPMovieplayerController is playing or not with condition.

Check the Condition button click event....!

Any one help with me us....!

Thanks....!

Upvotes: 17

Views: 6834

Answers (2)

Janak Nirmal
Janak Nirmal

Reputation: 22726

MPMovieplayerController is having playbackState property. On button click event you can do like

-(IBAction)btnClicked:(id)sender
{
    if(yourMoviePlayerObject.playbackState == MPMoviePlaybackStatePlaying)
        NSLog(@"Yes Playing");
    else
        NSLog(@"Not Playing");
}

Upvotes: 44

borrrden
borrrden

Reputation: 33421

This is clearly stated in the documentation

Upvotes: 5

Related Questions