에서 MPMovieScalingModeFill에 종료 전체 화면 MPMoviePlayerController 세트 스케일링 모드 후 나는 MPmovieScalingmodefill에 mpmovieplayercontroller은 IOS 내 응용 프로그램에서
첫 세트 스케일링 모드와 scalingmode에 대한 올바른 디스플레이 비디오를 사용하여 비디오를 재생할 수 있습니다.
그런 다음 전체 화면으로 비디오를보고 전체 화면을 종료 한 후 확장 모드를 MPmovieScalingmode로 채우고 기본 모드로 비디오를 표시하십시오.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(ExitFullScreen:)
name:MPMoviePlayerWillExitFullscreenNotification object:nil];
[appDelegate.moviePlayerController setContentURL:fileURL];
if ([appDelegate checkDevice])
{
[appDelegate.moviePlayerController.view setFrame:CGRectMake(0,0, 320,463)];
}
else
{
[appDelegate.moviePlayerController.view setFrame:CGRectMake(0,0, 320,375)];
}
[appDelegate.moviePlayerController prepareToPlay];
appDelegate.moviePlayerController.scalingMode=MPMovieScalingModeFill;
appDelegate.moviePlayerController.controlStyle=MPMovieControlStyleDefault;
appDelegate.moviePlayerController.shouldAutoplay=NO;
[appDelegate.moviePlayerController setFullscreen:YES animated:YES];
[appDelegate.moviePlayerController play];
[self.view addSubview:appDelegate.moviePlayerController.view];
- (void)ExitFullScreen:(NSNotification *)notification{
NSLog(@"Exit full Screen");
[appDelegate.moviePlayerController setControlStyle:MPMovieControlStyleEmbedded];
[appDelegate.moviePlayerController setScalingMode:MPMovieScalingModeFill];}
재생 비디오 내 코드 아래
는 나의 probleem는 전체 화면 종료 후 확장 모드를 설정하거나 종료 화면 후 모드를 확장 변경하지 마십시오 어떻게?
나를 도와주세요.
감사합니다.
해결 방법을 찾으셨습니까? 나는 fullscreen 모드가 끝난 후에도 채우기 모드에서 scaling 모드로 바뀐다는 것과 같은 상황에 빠져있다. – glogic
누구든지이 문제를 해결할 수 있습니까? – Splendid