if (!_isFullScreen) {
_isFullScreen = YES;
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight];
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
CGRect rect = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
self.view.bounds = rect;
self.view.transform = CGAffineTransformMakeRotation(M_PI_2);
MYMoviePlayerConroller.view.frame = self.view.bounds;
_playerView.frame = MYMoviePlayerConroller.view.frame;
NSLog(@"%f",MYMoviePlayerConroller.view.frame.size.width);
}else {
_isFullScreen = NO;
self.view.transform = CGAffineTransformIdentity;
CGRect rect = CGRectMake(0, 0, SCREEN_HEIGHT, SCREEN_WIDTH);
self.view.bounds = rect;
MYMoviePlayerConroller.view.frame = _currentframe;
_playerView.frame = MYMoviePlayerConroller.view.frame;
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait];
}