not able to run video from server on iOS 4.1
<p>I have been trying to run a video from my app in iOS 4.1 but haven't met with success. Material everywhere give code for iOS 3.2 but not for the higher versions. Please help , I would be grateful to you. This is my code below:</p>

<pre><code>-(IBAction)pressButton:(id)sender { 

    NSString *urlString = 
      [NSString stringWithFormat:@"http://www.itc.virginia.edu/network/videotest/when-sm.mov"];

    MPMoviePlayerController *moviePlayer = 
      [[MPMoviePlayerController alloc]initWithContentURL:urlString];
    moviePlayer.scalingMode = MPMovieScalingModeAspectFill;

    [moviePlayer play];

    MPMoviePlayerViewController *movieViewPlayer = 
      [[MPMoviePlayerViewController alloc]initWithContentURL:urlString]; 

    [self presentMoviePlayerViewControllerAnimated:movieViewPlayer];

}   
</code></pre>
