Reputation: 6532
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
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