2013-08-05 3 views
1

나는 모든 게임을 사용하여 게임 플레이를 기록하고 플레이어는 결과 화면에서 비디오를 공유 할 수 있습니다.Everyplay는 비디오를 녹화하지만 "공유"및 "프로필보기"를 누를 때 충돌이 발생합니다

iPad에서 프로필의 녹화, 공유 및보기는 정상적으로 작동하지만 Everyplay에서 "공유", "모든 플레이 프로필보기"버튼을 누르면 모든 iPhone 빌드 (4, 4S, 5)가 충돌합니다. 페이지.

두 개의 버튼을 탭하면 어떤 일이 발생했는지 추적했습니다.

2013-08-01 10:29:19.489 ZombieBlackout[6602:907] Video Updated 
2013-08-01 10:29:20.786 ZombieBlackout[6602:907] everyplayRecordingStopped 
2013-08-01 10:29:20.788 ZombieBlackout[6602:907] everyplayShown 
2013-08-01 10:29:22.393 ZombieBlackout[6602:907] Audio route change while recording was stopped. 
2013-08-01 10:29:22.394 ZombieBlackout[6602:907] A route change occurred that does not require stopping application audio. 
2013-08-01 10:29:22.451 ZombieBlackout[6602:907] Audio route change while recording was stopped. 
2013-08-01 10:29:22.453 ZombieBlackout[6602:907] A route change occurred that does not require stopping application audio. 
2013-08-01 10:29:27.488 ZombieBlackout[6602:907] Video Updated 
2013-08-01 10:29:35.383 ZombieBlackout[6602:907] *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES' 
*** First throw call stack: 
(0x3304f3e7 0x3ad40963 0x3304f307 0x34ec688f 0x3506b0c9 0x3f388d 0x3f0dad 0x3e1e5b 0x3e1d4b 0x3b15a793 0x3b15a5db 0x3b15de45 0x330231b1 0x32f9623d 0x32f960c9 0x36b7433b 0x34eb22b9 0xb1503 0xb02b8) 
libc++abi.dylib: terminate called throwing an exception 

그리고 나는 아이폰에 님블 퀘스트를 시도하기 때문에 우리의 빌드가 아이폰에 내가 언급 된 2 개 버튼을 눌러 수 있어요 때문입니다 생각하지 않습니다.

저는 Cocos2dx를 사용하고 있습니다. 코드 작성 방법은 Android 용입니다. Everyplay와 함께 cocos2dx에 문제가 있는지 궁금합니다.

알려 주시기 바랍니다. 감사합니다.

답변

3

게임이 가로 전용 인 것으로 가정합니다. 이 경우이 문제를 해결하는 방법에는 두 가지 옵션이 있습니다.

옵션 1 :

항목 UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight 및 UIInterfaceOrientationPortraitUpsideDown와 게임의의 Info.plist에 UISupportedInterfaceOrientations 배열을 추가합니다. 지원되는 모든 인터페이스 방향을 프로젝트 요약 페이지에서 확인하거나 info.plist 파일을 수동으로 편집하여 xCode에서 쉽게 수행 할 수 있습니다.

옵션 2 :

는 응용 프로그램의 AppDelegate.m 파일에 다음 메서드를 추가합니다

// IOS 6 

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { 
    return UIInterfaceOrientationMaskAll; 
} 

를 두 경우 모두 당신이 풍경에 코드를 처리에만 방향을 추가했는지 당신은 또한 확인해야합니다 게임의 UIViewController.

// IOS 5 

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { 
    return UIInterfaceOrientationIsLandscape(toInterfaceOrientation); 
} 

// IOS 6 

- (BOOL)shouldAutorotate { 
    return YES; 
} 

- (NSUInteger)supportedInterfaceOrientations { 
    return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; 
} 
+0

이렇게하면 문제가 해결됩니다. –