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
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
Make sure you are linking to MediaPlayer.framework in your Xcode project. That's where MPMoviePlayerController
comes from and if you don't link to it, the linker won't know what it is.
MediaPlayer.framework must be added to your "Frameworks" and #import <MediaPlayer/MediaPlayer.h>
in your .h file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With