views:

32

answers:

0

Well.. basically that's what happens, when I play a movie from a game I have, only the sound plays, the video doesn't, showing a black screen, even the touch is disabled.

This is the relevant part of the code:

myMovie = [[MPMoviePlayerViewController alloc] initWithContentURL:[self movieURL]];

myMovie.moviePlayer.scalingMode = MPMovieScalingModeFill; myMovie.moviePlayer.controlStyle = MPMovieControlModeHidden;

[myMovie.moviePlayer play];

Thx.

Edit.: Ok, I got it working now, I needed to add this line of code:

[self presentMoviePlayerViewControllerAnimated:myMovie];

The problem now is, that I dont want to see the mediaplayer controls (pause, stop, etc), I just want to watch the video fullscreen, that's all, any ideas?