2010-07-02 5 views
0

MPMoviePLAYER가 오디오 만 표시하는 데 문제가 있습니다. iOS 4.0에서는 작동하지 않습니다.MP4oviPlayer가 iPhone 4 또는 iOS 4.0에서 재생되지 않습니다.

아무도 도와 줄 수 있습니까?

MPMoviePlayerController *moviePlayer; 
     NSBundle *bundle = [NSBundle mainBundle]; 
     NSString *moviePath = [bundle pathForResource:@"Video" ofType:@"mp4"]; 

     moviePlayer = [ [ MPMoviePlayerController alloc ] 
         initWithContentURL: [ NSURL fileURLWithPath: moviePath ] ];   
     [moviePlayer setFullscreen:YES]; 
     [moviePlayer play]; 

나는 또한 내가 너무이 문제를 데

답변

1

"비 제로 클라이언트 수에 AddRunningClient 시작 장치"콘솔에서 을 다음과 같은 메시지를 받고 있습니다. 처음에는 활성 구성을 '배포'로 설정할 때만 알았습니다. 그러나 구성이 '디버그'로 설정되면 메시지를 받기 시작했습니다. 오디오 재생과 MPMoviePlayerController 만 화면에 나타나지 않습니다.

누군가이 문제와 해결 방법에 대한 게시물을 작성하기에 충분했습니다. 업데이트 된 SDK로 인해 많은 변화가 일어난 것 같습니다.

http://iosdevelopertips.com/video/getting-mpmovieplayercontroller-to-cooperate-with-ios4-3-2-ipad-and-earlier-versions-of-iphone-sdk.html

난 그냥 그것을 통해가는 시작했습니다, 당신이 도움이되기를 바랍니다.

관련 문제