मेरा ऐप कुछ प्रसंस्करण करता है और किसी बिंदु पर इसे AVAssetExportSession को कॉल करने की आवश्यकता होती है।पृष्ठभूमि में AVAssetExportSession प्रारंभ करना
यदि सत्र पहले ही शुरू हो चुका है और फिर मैं ऐप को पृष्ठभूमि करता हूं, तो सबकुछ सामान्य रूप से पूरा हो जाता है। हालांकि, अगर मैं exportAsynchronouslyWithCompletionHandler
पर कॉल करने से पहले ऐप को पृष्ठभूमि करता हूं।
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}
क्या यह संभव है पृष्ठभूमि में एक AVAssetExportSession शुरू करने के लिए: मैं इस त्रुटि मिलती है?
मैं इसे पृष्ठभूमि में चलाने के लिए नहीं मिल सकता। यहां तक कि अगर पृष्ठभूमि में जाने से पहले सत्र शुरू हो जाता है, तो यह तुरंत बाधित हो जाता है। क्या आप _backgroundTaskId = [[UIAplplication sharedAplication] प्रारंभ कर रहे हैं BackgroundTaskWithExpirationHandler:^{... इसे पृष्ठभूमि में चलाने के लिए? – eddy
@eddy हां मैं कुछ ऐसा उपयोग कर रहा हूं जैसे – Dex
मुझे एक ही समस्या है। क्या कोई समाधान है? –