views:

55

answers:

0

Hi!

Im using MPMoviePlayerViewController now instead of MPMoviePlayerController because of the bug in iOS4. Im not sure though how to clean resources of MPMoviePlayerViewController, when video playback is finished.

I clearly have an issue because right after playing video I try to start a song using AudioStreamer (which uses audio queue interface) and that one will generate an audio error, which is otherwise doesnt. There seems to be a problem playing the audio because the video was not properly cleaned up.

Is there any way to to a cleanup using MPMoviePlayerViewController?

code:

MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:urlReturn]];
[self presentMoviePlayerViewControllerAnimated:moviePlayer];

later....

newAudioPlayer = [[AudioStreamer alloc] initWithURL:[NSURL URLWithString:path]];

/Br Johannes