I am making a generic function to handle the stopping and starting of different media types in C4. I tried the following method to be called but it seems that the play method conflicts with the play method in the AVPlayer play method when called in this way. Is there a way to solve this problem?
-(void) StartStop: (NSNotification *) notification
{
if( [[notification object] isKindOfClass:[C4Movie class]] )
{
if( [[notification object] isPlaying])
[[notification object] pause];
else
[[notification object] play];
}
}