내 응용 프로그램이 일부 처리를 수행하며 어느 시점에서 AVAssetExportSession을 호출해야합니다.백그라운드에서 AVAssetExportSession 시작
세션이 이미 시작된 상태에서 앱을 배경으로 설정하면 모든 것이 정상적으로 완료됩니다. 그러나 exportAsynchronouslyWithCompletionHandler
을 호출하기 전에 앱을 배경으로 사용하면됩니다. 백그라운드에서 AVAssetExportSession을 시작하는
AVAssetExportSessionStatusFailed Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x1e550db0 {NSLocalizedFailureReason=An unknown error occurred (-12985), NSUnderlyingError=0x1e574910 "The operation couldn’t be completed. (OSStatus error -12985.)", NSLocalizedDescription=The operation could not be completed}
가 가능 :이 오류가?
전혀 백그라운드에서 실행할 수 없습니다. 백그라운드로 들어가기 전에 세션이 시작 되더라도 즉시 중단됩니다. _backgroundTaskId = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler :^{... 백그라운드에서 실행되도록하려면 사용하고 있습니까? – eddy
@eddy 예 그와 같은 것을 사용하고 있습니다. – Dex
동일한 문제가 있습니다. 어떤 해결책이 있습니까? –