(Objective C) Play a video in full screen

1. include MediaPlayer framework in the project
2. in the view controller header file,
3. declare the player instance in the controller header file:
MPMoviePlayerViewController *playerViewController;

  • Posted by on January 1st, 1970

This entry was posted in Objective-C and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Subhadeep
    Posted October 5, 2012 at 11:36 am | Permalink

    Hi, I am using similar kind of code for playing a video and it is playing perfectly but when I checked this using Instrument I have got Leak. I have searched many places but none of the articles are resolve my problem. Please help me in this regards.

  2. Ferhat
    Posted October 6, 2012 at 11:02 am | Permalink


    Could you try the snippets at: http://snipd.net/play-a-movie-in-fullscreen-objective-c .



One Trackback

  1. By Play a movie in fullscreen (Objective-C) on October 6, 2012 at 11:00 am

    [...] reply to http://snipd.net/objective-c-play-a-video-in-full-screen#comment-290 . The following snippets show how to play a movie in [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?