• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Video Streaming on xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Video Streaming on xcode


  • Subject: Video Streaming on xcode
  • From: Hugo Silva <email@hidden>
  • Date: Sat, 22 Jan 2011 11:59:46 +0000

Hi guys...I have a vlc streaming in a PC in the same network, and I want to see this stream on xcode iphone simulator. I have this code:

-(void)playMovieAtURL:(NSURL*)theURL 

{
    MPMoviePlayerController* theMovie=[[MPMoviePlayerController alloc] initWithContentURL:theURL]; 
    theMovie.scalingMode=MPMovieScalingModeAspectFill; 
    //theMovie.userCanShowTransportControls=NO;


    // Register for the playback finished notification. 


    [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(myMovieFinishedCallback:) 
name:MPMoviePlayerPlaybackDidFinishNotification 
  object:theMovie]; 


    // Movie playback is asynchronous, so this method returns immediately. 
    [theMovie play]; 
} 

// When the movie is done,release the controller. 
-(void)myMovieFinishedCallback:(NSNotification*)aNotification 
{
    MPMoviePlayerController* theMovie=[aNotification object]; 
    [[NSNotificationCenter defaultCenter] removeObserver:self 
                                                    name:MPMoviePlayerPlaybackDidFinishNotification 
                                                  object:theMovie]; 


    // Release the movie instance created in playMovieAtURL
    [theMovie release]; 
}


But the movie doesn't appear, what is wrong?

thks for the possible help...

Hugo Silva


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Video Streaming on xcode
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Correct architecture for Spotlight plugin
  • Next by Date: Re: Video Streaming on xcode
  • Previous by thread: Correct architecture for Spotlight plugin
  • Next by thread: Re: Video Streaming on xcode
  • Index(es):
    • Date
    • Thread