Record iPhone application with integrated video

I am studying streaming video for an iPhone application that may need to be written in the near future. The application does much more than streaming video, but the video spectrum is the part with which I have no experience.

Does anyone know any good articles about writing streaming video applications?

Google seems to flood me with links that have everything to not do what I'm looking for.

Thanks,

t

+4
source share
2 answers

Apple provides good documentation on media infrastructure in its documents.

Search for MPMoviePlayerController. The following code example plays a movie at a URL. (disclaimer, this code is removed from Apple).

-(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]; } 
+1
source

I am also considering this issue. I would like to embed the video in an iPad application, for example, how the iPad Associated Press handles videos.

Apparently, you can make this type of embedded video in OS 3.2 and later. The Apple documentation for MPMoviePlayerController describes how to do this:

http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html

0
source

All Articles