Posts

Post not yet marked as solved
0 Replies
469 Views
Hello,I encountered a problem with a crash and its report analysis. I use AVAssetDownloadURLSession to download medias.I used production app and get a crash. This is stacktrace I received :Crashed: NSOperationQueue 0x107a9b050 (QOS: UNSPECIFIED)0 CoreFoundation 0x1b65dc988 <redacted> + 41 CoreFoundation 0x1b6632908 <redacted> + 142 CoreFoundation 0x1b6632908 <redacted> + 143 CoreFoundation 0x1b6632908 <redacted> + 144 CoreFoundation 0x1b6632908 <redacted> + 145 CoreFoundation 0x1b6632908 <redacted> + 146 CoreFoundation 0x1b6632908 <redacted> + 147 CoreFoundation 0x1b6632908 <redacted> + 148 CoreFoundation 0x1b6632908 <redacted> + 149 CoreFoundation 0x1b6632908 <redacted> + 1410 CoreFoundation 0x1b6632908 <redacted> + 14Does someone has some ideas about this problem ?Best regards
Posted Last updated
.
Post not yet marked as solved
0 Replies
384 Views
Hi,I use AVAssetDownloadURLSession to download m3u8 playlists. I'm encountering a strange behavior. I don't know why.I check the progress of the download with :urlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, didLoad timeRange: CMTimeRange, totalTimeRangesLoaded loadedTimeRanges: [NSValue], timeRangeExpectedToLoad: CMTimeRange)I compute the progress with the same code that Apple sample :var percentComplete = 0.0 for value in loadedTimeRanges { let loadedTimeRange = value.timeRangeValue percentComplete += loadedTimeRange.duration.seconds / timeRangeExpectedToLoad.duration.seconds } percentComplete *= 100but when the progress is equal 100, only for some mediaurlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, didFinishDownloadingTo location: URL)is not called immediatly (60-100 seconds after 100 percent) but I don't understand why.
Posted Last updated
.
Post not yet marked as solved
0 Replies
720 Views
Hi,I'm converting my iOS app to MacOS app thanks to UIKitForMac. I use AVAssetDownloadTask class to download my assets.Content I try to download is encypted with Fairplay and I configure resourceLoader of asset to preload content keys :asset.resourceLoader.preloadsEligibleContentKeys = trueOn iOS, all works like a charm : content keys are loading during assets downloading but on MacOS, I'm encountering several problems :- Despite that I put "preloadsEligibleContentKeys, any content keys are loaded during download (only on playback beginning).shouldWaitForLoadingOfRequestedResourceis not called during downloading on macos.- 'persistentContentKey(fromKeyVendorResponse: '')' works on iOS but it returns nil on MacOS with decoded CKC data seems to be OK in parameter...loadingRequest.contentInformationRequest!.contentType = AVStreamingKeyDeliveryPersistentContentKeyTypeIf someone could have a solution, I don't know if it's a MacOS Catalina bugs or if I should add a specific parameter for MacOS.I work on MacOS Catalina 10.15 (19A512f) and Xcode 11.0 Beta 4.Edit: During persistentContentKey(fromKeyVendorResponse:...) call, I get this log :objc[65267]: Class asn1ReceiptToken is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea24d40) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a9288). One of the two will be used. Which one is undefined.objc[65267]: Class ISPurchaseReceipt is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea22a90) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a92d8). One of the two will be used. Which one is undefined.objc[65267]: Class asn1Token is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea22680) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a9328). One of the two will be used. Which one is undefined.objc[65267]: Class asn1SetToken is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea226a8) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a9350). One of the two will be used. Which one is undefined.objc[65267]: Class asn1SequenceToken is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea226d0) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a9378). One of the two will be used. Which one is undefined.objc[65267]: Class asn1IntegerToken is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea226f8) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a93a0). One of the two will be used. Which one is undefined.objc[65267]: Class asn1OSToken is implemented in both /System/Library/PrivateFrameworks/StoreServices.framework/Versions/A/StoreServices (0x7fff9ea22720) and /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP (0x11d5a93c8). One of the two will be used. Which one is undefined.
Posted Last updated
.