views:

28

answers:

1

Hi all I've create simple movie player in iPhone development. But i got just only vedio's voice. Here is my code (when button click),

-(IBAction)playMe{
    NSBundle *bundle=[NSBundle mainBundle];
    NSString *moviePath=[bundle pathForResource:@"iiii" ofType:@"mp4"];
    NSURL *movieURL = [NSURL fileURLWithPath:moviePath];
    MPMoviePlayerController *theMovie=[[MPMoviePlayerController alloc] initWithContentURL:movieURL];
    theMovie.scalingMode = MPMovieScalingModeAspectFill;

    [theMovie play];
    [self.view addSubview:theMovie.view];
}

When i click i got only voice not with movie. I also used iOS 4.1 simulator.

A: 

video out put is not loaded in memory hence check this http://cocoabugs.blogspot.com/2010/08/troubleshoting-iphone.html

jeeva

related questions