Iphone video playback encoding

I downloaded the iphone MoviePlayer sample code from iphone dev center, but when I add the [mMoviePlayer stop] action on the overlay button there the screen keeps flashing when I play the movie, has anyone met this problem?

+1


source to share


3 answers


Are you talking about the "Done" button that appears when you click on the player? You don't need to write any code for this. As soon as you click the Finish button, moviePlaybackDidFinishCallback is called and playback stops.



If you are not using the Done button, about which one are you specifying the action of the overlay button?

+2


source


I tried two methods, one is pressing the "Done" button that comes with the video player, the other is the overlay button and adding the [mMoviePlayer stop] action, however, both have the same result, when I play the movie again the screen keeps flashing



0


source


self.moviePlayer.initialPlaybackTime = -1.0;

      

Try this in your media player code before calling the play function. In my code, I have stored it in a function -(void)setMoviePlayerUserSettings

. this is a bug that manifests itself in simulators. Try to test it with the default movie player app from apple code samples. Click on Local Movie. In the middle of the video, tap. Press the play button again. U will see video flickering. The above setting makes it correct.

0


source







All Articles