If you have used the MPMoviePlayerViewController to play videos in iOS , chances are you have gotten a little frustrated by its rigidness. A couple of issues I personally encountered were: When presented modally, the view controller did not respect the modal transition style I had chosen for it. When the video finished playing, the view controller dismissed itself automatically. I wanted it to remain visible until the user pressed the Done button. A couple of hours of browsing for the solution to no avail, I decided to try out sort of a hack, which turned out to work great. The trick is to remove the MPMoviePlayerViewController instance from the MPMoviePlayerPlaybackDidFinishNotification notification observers , and instead handle it yourself. Seems like this view controller listens to this notification and auto dismisses itself when it’s fired. In my application, I present a thumbnail of the video. When touched, the video is ...
Technical Solutions for C, C++, Objective-C, C#, OOP's, Data Structure, Algorithms, Mobile Technology, Mobile Design, HTML/HTML5, Web, iOS/iPad/iPhone, Apple Script, Shell Script, Phonegap, AppAccelerator, Unix, Linux, Mac-OS X, Windows, SQL-Server, PL-SQL, Sqlite3, Database Design issues tips, tricks and hacks by Vinay Mishra.