Iphone video playback encoding
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?
source to share
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.
source to share