I'm trying to load a movie selected from the Photo Album. I get the file path
of the media placed in the /tmp folder, move it to my own folder and rename
it. Then try to play it with the following code. I see a little "Loading…"
text at the bottom of the movie view but then just a black view.

    moviePlayer = new MPMoviePlayerController(NSUrl.FromFilename(inFile)); 
    moviePlayer.View.Frame = movieRect;
    moviePlayer.View.UserInteractionEnabled = true;
    this.AddSubview(moviePlayer.View);
    moviePlayer.MovieControlMode = MPMovieControlMode.Default;
    moviePlayer.ScalingMode = MPMovieScalingMode.AspectFit;
    moviePlayer.AllowsAirPlay = true;
    moviePlayer.PrepareToPlay();
    moviePlayer.Play(); 

inFile =
/private/var/mobile/Applications/F25629BE-9C88-4D0A-8D0C-00ECF56B3AB1/Documents/media/tmp.MOV

Any help would be appreciated.

Thanks,
Rick



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/MPMoviePlayerController-not-playing-tp4656865.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to