iOS 5로 업데이트 한 이후로 MPMoviePlayerViewController에서 iPad에서 오디오를 재생할 수 없습니다. 비디오는 완벽하지만 오디오는 들리지 않습니다. 내가 사용하는 형식은 중요하지 않습니다. 작동하지 않습니다. 시뮬레이터에서는 작동하지만 iPad에서는 작동하지 않습니다.iPad에서 MPMoviePlayerViewController 및 iOS5가있는 오디오가 시뮬레이터에서 작동하지 않습니다.
- (IBAction)playVideo {
NSString *filepath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"m4v"];
NSURL *fileURL = [NSURL fileURLWithPath:filepath];
moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];
[[NSNotificationCenter defaultCenter]
addObserver:self selector:@selector(movieFinishedPlaying:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:[moviePlayer moviePlayer]];
[self presentMoviePlayerViewControllerAnimated:moviePlayer];
}
다른 사람이이 문제가 있습니까? 아니면 수정 사항을 찾았습니까?
아이 패드가 음소거 수 있습니다와 함께 사운드를 재생합니다 할당하기 전에. u가 Safari 브라우저에서 비디오를 재생하려고 했습니까? 볼륨 컨트롤 근처의 스위치를 확인하십시오. – sElanthiraiyan