SleepNot
SleepNot

Reputation: 3038

Horizontally flip an MPMoviePlayerController

Is it possible to flip the video part of an MPMoviePlayerController only and leave the player's control the same as it is? When I try to flip a video it also flips the controls.

CGAffineTransform trans = CGAffineTransformIdentity;
trans = CGAffineTransformScale(trans, -1, 1);
[MoviePlayer.view setTransform:trans];

Upvotes: 3

Views: 276

Answers (1)

Armaan Stranger
Armaan Stranger

Reputation: 3140

Try this:

UIView* Flipview = [[UIView alloc]init];
    for (UIView* view in [theMovie.view subviews]) 
    {
        Flipview=view;
        NSLog(@"%@",view);
    }



     [UIView beginAnimations:nil context:nil];
            [UIView setAnimationDuration:1.0];
            [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:Flipview cache:YES];

            [UIView commitAnimations];

change self.view with movieplayerview and see if its working.

Hope it Helps!!

Upvotes: 1

Related Questions