I’m trying to create a component to play videos using MPMoviePlayerController. The problem is that it says that its an unknown type. Why is that? I’ve found tons of tutorials using this.
Here’s my code:
@interface HIMoviePlayer : UIViewController
{
MPMoviePlayerController *test;
}
-(void) playVideoWithURL: (NSString *) url;
@end
Make sure you import the mediaplayer framework into the header file,
i.e
I encountered this problem also, but this should fix it.