MPMoviePlayerController undeclared (first use in the function) message
iphone
Solution
You need to import/include the movie player:
#import <MediaPlayer/MediaPlayer.h>
Furthermore, the MediaPlayer.framework must be added to your "Frameworks" folder in the XCode project. To add the framework, right-click on "Frameworks", then select the path on your system where this framework resides. On my system it is under the following path:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/MediaPlayer.framework
Problem
I dont know why I am getting this message when I click have this code ``` MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] iniWithContentURL: url]; ``` Is there something, I am missing here? Thanks