problems in playing a video
<p>i have this problem to display my video in my view
i've tried this code :
Code:</p>

<pre><code>-(void)viewDidLoad {

    NSString *moviePath = [[NSBundle mainBundle] 
                 pathForResource:@"Adobe" 
                 ofType:@"mp4"];

    if(!theMovie)
        theMovie = [[MPMoviePlayerViewController alloc]init];

    theMovie.moviePlayer.contentURL = [NSURL URLWithString:moviePath];
    theMovie.moviePlayer.fullscreen = YES;
    theMovie.moviePlayer.shouldAutoplay = YES;
    theMovie.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;

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

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

    NSLog(@"Demarre la video\n");

    [theMovie.moviePlayer play];
    [super viewDidLoad];
}
</code></pre>

<p>but the problem is the video did not show however the player with commands(play,stop,fwd) is showing with the activity indicator view as he looking for an input or did'nt found the video</p>

<p>is there a missing part in my code</p>

<p>please help me with this one, 
thanks</p>
