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 8853643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:42:13+00:00 2026-06-14T13:42:13+00:00

Just to first say that I’m a total coding noob and so I’m probably

  • 0

Just to first say that I’m a total coding noob and so I’m probably trying to do something above my knowledge level. I went online and sought code for adding a video to an x-code program. I tried various different online tutorials and none of them worked.
I tried at first to program it into Xcode 4.2 but to no avail. I then downloaded the latest version 4.5

The build succeeds in the iphone6 simulator but then it fails to actually run.

The error message I’m getting is a SIGABERT:- * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘* -[NSURL initFileURLWithPath:]: nil string parameter’

My header file is:-

#import UIkit/UIkit.h (with the smaller than larger than symbols)

#import MediaPlayer/MediaPlayer.h (with the smaller than larger than symbols)

@interface ViewController :UIViewController {

}

-(IBAction)playvideo;

@end

My implementation file is:-

#import "ViewController".h
#import <UIKit/UIKit.h>


@implementation ViewController


-(IBAction)playvideo {
 NSURL *url = [NSURL fileURLWithPath:
              [[NSBundle mainBundle] pathForResource:@"jamcookvid1" ofType:@"mv4"]];

 MPMoviePlayerViewController *playercontroller =
 [[MPMoviePlayerViewController alloc] initWithContentURL:url];

[[self navigationController]presentMoviePlayerViewControllerAnimated:
 playercontroller];
playercontroller.moviePlayer.movieSourceType = MPMovieSourceTypeFile;

[playercontroller.moviePlayer play];
// [playercontroller release];
playercontroller = nil;

}

@end

If any of you guys could help me – it would be much appreciated. JB

  • 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-14T13:42:14+00:00Added an answer on June 14, 2026 at 1:42 pm

    It’s likely that your file doesn’t exist in the app bundle…or not with that exact spelling. Try logging the result of [[NSBundle mainBundle] pathForResource:@"jamcookvid1" ofType:@"mv4"]. You will probably find it’s nil, which would explain the message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, let me just say that I have searched for information on this topic;
First, I just want to say that the stackoverflow community is empowering to say
First, I just wanted to say that the below code is working in reality.
I am a newbie and just learned that if I define say package my.first.group.here;
let me just first say that I have tried to cut the code below
Let me just say first that I'm not looking to start a flame war
First of all I just want to say that I never understood so well
Hi there First of all just let me say that I'm new in Python
Just first off I'll say that the context here is Actionscript 3.0 (IDE: Flashbuilder)
First of all let me just say that I am new to nHibernate so

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.