Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>From looking at the documentation, you need to add the MPMoviePlayerController to a view, otherwise the video will no know where to play.</p> <p>Your second attempt looks a little better, are you calling the play method on the moviePlayer (note this is a MPMoviePlayerViewController) MPMoviePlayerController (named MoviePlayer)?</p> <p>For what it's worth, I can get;</p> <pre><code>moviePlayerController = new MPMoviePlayerViewController(new NSUrl("test.mp4")); this.PresentMoviePlayerViewController(moviePlayerController); </code></pre> <p>working with no issues on a sample iPad app. Are you sure your test.mp4 is...</p> <ol> <li>Encoded correctly</li> <li>Included in the project</li> <li>Video's build action is set to content</li> </ol> <p>Documentation for MPMoviePlayerController: <a href="http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html" rel="nofollow">http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html</a></p> <p>Documentation for MPMoviewPlayerViewController: <a href="http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerViewController_class/Reference/Reference.html#//apple_ref/occ/cl/MPMoviePlayerViewController" rel="nofollow">http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerViewController_class/Reference/Reference.html#//apple_ref/occ/cl/MPMoviePlayerViewController</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload