sample code for pause action for MPMovie player in iPhone sdk
I am doing an application using MPMovie Player. In that I want to incl开发者_C百科ude code to pause the playing movie. Can anyone suggest a solution for this?
The MPMoviePlayerViewController class implements the MPMediaPlayback protocol (see the Apple Developer docs here) so you can use the 'pause' instance method declared here to pause the movie programmatically.
use the function
[player pause];
精彩评论