0
에서 온다. 전체 화면 모드에서 문제가 있습니다. 비디오 플레이어는 왼쪽 상단에서옵니다. 이상하게 보입니다.AVPlayerview 내가 비디오를 재생할 AVPlayer를 사용하고 왼쪽 상단
NSString *filePath = [self.video_Array objectAtIndex:index];
NSString *soundFilePath = [[NSBundle mainBundle] pathForResource:filePath ofType: nil];
url = [[NSURL alloc] initFileURLWithPath: soundFilePath];
currentItem = [AVPlayerItem playerItemWithURL:url];
_playerViewController = [[AVPlayerViewController alloc] init];
_playerViewController.videoGravity = AVLayerVideoGravityResize;
_playerViewController.view.frame = self.view.bounds;
_playerViewController.showsPlaybackControls = NO;
_video=[AVPlayer playerWithURL:url];
_video = [AVPlayer playerWithPlayerItem:currentItem];
_playerViewController.player = _video;
[_playerViewController.player play];
[self.view addSubview:_playerViewController.view];
스크린 샷 또는 관련 코드 항상 –
검사에서 위의 코드 – Bharathi
나를 위해 비디오 중력 – Shubhank