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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:51:49+00:00 2026-06-09T16:51:49+00:00

I want to play a video which is uploaded to the server from an

  • 0

I want to play a video which is uploaded to the server from an iPad application, but when the screen loads it gives an error:

An AVPlayerItem cannot be associated with more than one instance of AVPlayer

I am using the following code:

    -(void)playVideo{




     NSURL *url = [NSURL URLWithString:@"http://celeritas.com.pk/emrapp/test.mp4"];

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

    [[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(moviePlaybackDidFinish:)
                                             name:MPMoviePlayerPlaybackDidFinishNotification
                                           object:mp];    

mp.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;

[self presentMoviePlayerViewControllerAnimated:mp];
[mp release];


NSLog(@"Successfully playing thanks");
     }


   -(void)playbackFinishedCallback:(NSNotification *)notification{

MPMoviePlayerController *movie = [notification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
                                                name:MPMoviePlayerPlaybackDidFinishNotification
                                              object:movie];
[movie release];

    }
  • 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-09T16:51:50+00:00Added an answer on June 9, 2026 at 4:51 pm

    http://celeritas.com.pk/emrapp/test.mp4 the URL seems to be wrong…

    The requested URL /emrapp/test.mp4 was not found on this server.

    Any way this will work

    .h

     MPMoviePlayerViewController * plyr;
     NSURL * url;
    
    
    @property (nonatomic,retain) MPMoviePlayerViewController *plyr;
    @property (nonatomic,retain) NSURL *url;
    

    .m

    @synthesize plyr ;
    @synthesize url;
    
         url = [NSURL URLWithString:@"valid url"];          
        plyr = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to play a mp4 video in Gstreamer, but i got an error
i want to play a flv video from a remote server i search on
I want to make simple project which play flash video file from online. I've
I want To Add an splash screen on my application which will play a
I want to build application which needs to be able to capture video from
I want want to play video from my personal account in you tube. Intent
I want to play a video from a url in a VideoView: @Override protected
I want to develop a j2me application that will play a video file(.mp4) by
I am developing an Android application where I want to play some video dynamically
In short, I want to create a simple video player which can play some

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.