iOS3.2 播放视频

  1. NSString *urlString = [NSString stringWithString:@"视频url"];    
NSURL *movieUrl = [[NSURL alloc] initWithString:urlString];          MPMoviePlayerController *myMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieUrl];   myMoviePlayer.view.frame = CGRectMake(250250350350);   [self.view addSubview:myMoviePlayer.view];       myMoviePlayer.shouldAutoplay = YES;   myMoviePlayer.scalingMode= MPMovieScalingModeAspectFit;     [myMoviePlayer play];

你可能感兴趣的:(iOS3.2 播放视频)