Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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....!

like image 662
Dinesh Avatar asked Mar 31 '12 08:03

Dinesh


1 Answers

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");
}
like image 104
Janak Nirmal Avatar answered Oct 27 '22 13:10

Janak Nirmal