Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

UIImageView as overlay of MPMoviePlayerController

vincefriedvincefried Hamburg, GermanyPosts: 48Registered Users @
edited May 2011 in iOS SDK Development
Hi everybody,

following problem: I want to play a short video with MPMoviePlayer and add a little overlaid picture, using an ImageView. Currently, I now how to play the movie:

MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];  
[[NSNotificationCenter defaultCenter] addObserver:self  
    if ([moviePlayer respondsToSelector:@selector(setFullscreen:animated:)]) {  
        moviePlayer.controlStyle = MPMovieControlStyleNone;  
        moviePlayer.shouldAutoplay = YES;  
        [self.view addSubview:moviePlayer.view];  
        [moviePlayer setFullscreen:YES animated:YES];  
    } else {  
        moviePlayer.movieControlMode = MPMovieControlModeHidden;  
        [moviePlayer play];

But how can I add an overlaid pic?

Thanks, vincefried
Post edited by vincefried on


Sign In or Register to comment.