Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    kevin smith 619's Avatar
    iMore Beginner

    76 Posts
    Global Posts
    78 Global Posts

    Default iPhone Development: iOS 6 movie controller!!!

    MPMoviePlayerController video goes to full screen mode at the time screen is black color. And then the app was blocked. This issue only for iOS 6.0. But iOS 5.1 working fine. This is my code. IF I double click the player full screen is opened, But show black screen.

    self.moviePlayerController = [[MPMoviePlayerController alloc] init];
    [self.moviePlayerController.view setFrame:_moviePlayerContentView.bounds]; 
    [self.moviePlayerController setControlStyle:MPMovieControlStyleNone];
    [self.moviePlayerController setAllowsAirPlay:NO];
    [_moviePlayerContentView addSubview:self.moviePlayerController.view];
    [self.moviePlayerController stop];
    [self.moviePlayerController setContentURL:videoURL];
    [self.moviePlayerController.view setHidden:NO];
    [self.moviePlayerController prepareToPlay];
    [self.moviePlayerController play];
    How can I handle this issue?

    After reach MPMovieFinishReasonPlaybackEnded, then How to disable the full screen mode?

    Please help me. Thanks in advance.

Similar Threads

  1. Griffin AutoPilot + iPhone 3.0 = Broken Controls
    By MPIIIMan in forum Accessories
    Replies: 2
    Last Post: 06-23-2009, 07:38 AM
  2. New iPhone Developers
    By btrisosceles in forum General Developer Discussion
    Replies: 0
    Last Post: 06-19-2009, 11:04 PM
  3. Meet other iPhone Developers on 6/10
    By GloriaP in forum General Developer Discussion
    Replies: 0
    Last Post: 06-08-2009, 11:13 PM
  4. Iphone Developer
    By transkei in forum General Developer Discussion
    Replies: 3
    Last Post: 05-07-2009, 04:43 AM
  5. Will the Iphone have a movie cam or not?
    By redsoxfan950 in forum iPhone 4
    Replies: 8
    Last Post: 06-06-2008, 06:20 PM

Posting Permissions