재생하는 동안 "비디오"사운드가 손실되는 문제가 있습니다.iPhone MPMoviePlayerController가 실제 장치에서 비디오를 재생하는 동안 사운드를 잃었습니다.
모든 표준을 따르지만 비디오/오디오가 음소거되거나 비디오 파일의 끝 부분에서 사라지는 경우가 있습니다. 나는 이유를 모른다. 무엇이 문제인지 알 수 있습니까?
실제 장치에서 앱을 실행할 때만 발생하며 시뮬레이터에서 문제를 재현 할 수 없습니다.
"didReceiveMemory"경고가이 문제를 일으킬 수 있습니까? 때때로이 메시지가 나타납니다.
도움 주셔서 감사합니다. 아래의 내용을 참조하십시오.
동영상 파일이 6.2 MB 미만의 크기 인 MPEG-4 동영상 형식의 URL 주소를 통해 스트리밍되고 있습니다.
- (IBAction) playMovie:(NSString*)theUrl
setMovieType:(NSString *)theType
setPlayOption:(int)theOption
setSenderUIButton:(UIButton *) thisSender
{
NSString *getvdoUrl = [[NSString alloc] initWithString:theUrl];
NSURL *thisVdoURL = [NSURL URLWithString:getvdoUrl];
[getvdoUrl release];
getvdoUrl = nil;
MPMoviePlayerController *movieplayer = [[MPMoviePlayerController alloc]
initWithContentURL:thisVdoURL];
thisVdoURL = nil;
if (movieplayer)
{
self.vdoPlayer = movieplayer;
[movieplayer release];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:self.vdoPlayer];
[self.vdoPlayer play];
}
}
-(void) moviePlayBackDidFinish:(NSNotification*)theNotification
{
MPMoviePlayerController *movieplayer= [theNotification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:movieplayer];
movieplayer.initialPlaybackTime = 0.0;
[movieplayer stop];
}
내가 재생할 수있는 비디오 파일을 시작하기 전에받은 경고 메시지를 다음과 같습니다
나는 다음과 같은 코드가 있습니다.
경고 : "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18) /Symbols/System/Library/VideoDecoders/VCH263.videodecoder" (파일이 아닌 에 대한 기호를 읽을 수 없습니다 녹이다).
경고 : 에 대한 기호를 읽을 수 없습니다 "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18) /Symbols/System/Library/VideoDecoders/H264H1.videodecoder" (파일을 찾을 수 없음) .
경고 : 에 대한 기호를 읽을 수 없습니다 "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18) /Symbols/System/Library/VideoDecoders/MP4VH1.videodecoder" (파일을 찾을 수 없음) .
2010-03-29 16 : 57 : 25.830 .... V2 [4663 : 207] 설정 파일 : /// 개인은/var/모바일/애플리케이션/7DCB1FCC-7268-4551-B737-8B418CA4A07E/TMP/MediaCache/[HTML]
비슷한 경고와 이상한 메모리 문제가 발생하여 해결책을 찾았습니까? – Shizam