views:

373

answers:

1
+5  A: 

The MPMoviePlayerController is in MediaPlayer.framework which you forgot to link to.

Nikolai Ruhe
Daniel Kindler
zoul
there we go! thanks for that, never knew how to do that. First time im playing with a framework
Daniel Kindler
but now im getting an error that claims "[NSCFDictionary playVideoWithControls]: unrecognized selector sent to instance". May someone tell me what that means?
Daniel Kindler
Daniel Kindler: It means the same thing as your “isEqualToString:” exceptions from before: You sent a message to an object that doesn't respond to that message. More concisely, you sent the message to the wrong object.
Peter Hosey
You are sending the message 'playVideoWithControls' to an NSDictionary instance. Start you program in the debugger, it will show you where you got it wrong.
Nikolai Ruhe
Well, i switched my "Files owner" to be where im holding my controller, but now i get a new error... "[UIViewController playVideoWithControls]: unrecognized selector sent to instance 0x1028b1" Now i understand its saying that the UIViewController can not respond to that action, but what I'm asking is what else could I do? How could i solve this problem?
Daniel Kindler
By sending that message to the object that *does* respond to playVideoWithControls. I'm not seeing such a method in the documentation (http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MediaPlayer_Framework/), so you probably need to implement it yourself and then send it to the object you implemented it in.
Peter Hosey
Well I did implement it myself. I added my code so you may view
Daniel Kindler
Don't forget the “send it to the object you implemented it in” part. That would be the VideoView.
Peter Hosey
Sorry, im really really new to this. What do you mean by that?
Daniel Kindler
Help, anyone? I cant figure this out
Daniel Kindler