是否可以仅翻转 MPMoviePlayerController 的视频部分并使播放器的控件保持不变?当我尝试翻转视频时,它也会翻转控件。
CGAffineTransform trans = CGAffineTransformIdentity;
trans = CGAffineTransformScale(trans, -1, 1);
[MoviePlayer.view setTransform:trans];
是否可以仅翻转 MPMoviePlayerController 的视频部分并使播放器的控件保持不变?当我尝试翻转视频时,它也会翻转控件。
CGAffineTransform trans = CGAffineTransformIdentity;
trans = CGAffineTransformScale(trans, -1, 1);
[MoviePlayer.view setTransform:trans];
尝试这个:
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];
用movieplayerview改变self.view,看看它是否工作。
希望能帮助到你!!