Search This Blog

Showing posts with label How to play video in iPhone application.. Show all posts
Showing posts with label How to play video in iPhone application.. Show all posts

Oct 7, 2010

How to play video in iPhone application.

This show is showing that how to play video in iPhone application.

NSURL*url = [NSURL URLWithString:@"UrlOfVideo"];
MPMoviePlayerController  *player = [[ MPMoviePlayerController alloc] initWithContentURL:url];
player.scalingMode = MPMovieScalingModeAspectFill;                            
[player play];