Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:17:35+00:00 2026-06-17T11:17:35+00:00

I am sure I am just missing something stupid but I have been stuck

  • 0

I am sure I am just missing something stupid but I have been stuck on this all day. Any help would be appreciated. I was trying to embed video in an ipad app. I am using xcode 4.2.5. I am following a tutorial which I found here: embeded ipad video

I have followed the instructions exactly as far as I can tell. I have started over several times. Before I was getting a memory error but this time I am not getting any errors at all. Only no video or audio. The only part of the tutorial I did not use was the last part about the ipad rotation because I’m not worried about that.

The only part I was unable to follow exactly was putting the video in the resources folder because xcode 4.5.2 does not make one. So I put MOVIE.MOV in the same directory as my .h, .m and .xib files were automatically placed in. I have tested the video and it does work on its own.

Here is the code: any help or guidance would be appreciated. Sorry for being such a NOOB.

the header:

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
@interface ViewController : UIViewController{

}
-(IBAction) playMovie;
@end

the main:

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
-(void)playMovie
{
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]
                                     pathForResource:@"MOVIE" ofType:@"MOV"]];
    MPMoviePlayerController *moviePlayer =
    [[MPMoviePlayerController alloc]
    initWithContentURL:url];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(moviePlayBackDidFinish:)
                                             name:MPMoviePlayerPlaybackDidFinishNotification
                                           object:moviePlayer];

    moviePlayer.controlStyle = MPMovieControlStyleDefault;
    moviePlayer.shouldAutoplay = YES;
    [self.view addSubview:moviePlayer.view];
    [moviePlayer setFullscreen:YES animated:YES];
}
- (void) moviePlayBackDidFinish:(NSNotification*)notification {

    MPMoviePlayerController *moviePlayer = [notification object];

    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                name:MPMoviePlayerPlaybackDidFinishNotification
                                              object:moviePlayer];

    if ([moviePlayer
         respondsToSelector:@selector(setFullscreen:animated:)])
    {
        [moviePlayer.view removeFromSuperview];
    }    
    [moviePlayer release];
}

Thankyou very much for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:17:38+00:00Added an answer on June 17, 2026 at 11:17 am

    Some things you could check:

    • Did you check the “Copy item to destinations group folder” when you dragged the movie onto the Xcode project?
    • Does the item show up in the “Copy Bundle Resources” Build Phase? (click on the Project, Select your target and check the “Build Phases” tab in Xcode)
    • Paths strings are case-sensitive on iOS. Does your movie really have the file name “MOVIE” and the extension “MOV” (all upper-case)?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sure I am just missing something. But I have googled this for
I've been beating my head against this, and I'm sure I'm just missing something
I'm sure this is something stupid that I'm missing but can anyone identify why
Not sure if im just being stupid or something but here goes i work
I'm sure I'm just doing something stupid here, but I can't quite figure out
I'm not sure if this is a bug or I'm just missing something (although
So, this may be a really stupid question, but I'm obviously missing something here.
I'm sure I'm just missing something simple, but I want to change the CSS
I'm not sure if I'm just missing something here, but is it possible to
I'm sure I'm just missing something simple, but I need to keep these buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.