Questions tagged [avassetdownloadtask]

27 questions
1
vote
0 answers

AVAssetDownloadDelegate method not called in background

In a recent project I'm working on video downloading using AVAssetDownloadURLSession. I'm using AVAssetDownloadDelegate to listen to any download updates. Using the below method I'm able to get the percentage download updated for each download…
PGDev
  • 23,751
  • 6
  • 34
  • 88
1
vote
0 answers

AVAggregateAssetDownloadTask stops sending updates when going to background (perhaps stops downloading)

First off, I'm on iOS 13.6.1 I'm downloading HLS videos to later play offline. It all works as expected when in foreground, all the logic does what it should and there doesn't seem to be any problem. But when the app goes to background I stop…
Andres C
  • 463
  • 6
  • 26
1
vote
0 answers

How we can get i-Frame using AVAssetDownloadTask when downloading video objective c

I am working on iOS app with Objective C where we are downloaded a Video. When i am playing this video in offline video is playing fine but Fast-forward and rewind are not working for downloaded content in Offline playback mode.Please suggest what…
dheeru
  • 395
  • 3
  • 13
1
vote
1 answer

Problem to play downloaded HLS stream in the AVPlayer after update iOS 12.2

I encountered with a strange problem. After Apple released iOS 12.2 AVPlayer didn't play saved HLS stream correctly. He stops playing video in the offline mode after 4-7 minutes and goes to the buffering. Player didn't call any observers, only…
1
vote
0 answers

Downloading multiple HLS audio files simultaneously fails

I have been trying to multiple HLS audio files together in iOS. The files are encrypted with a key. I need to fetch the key and store it locally for offline use. When I download a small number (2 or 3 files) of files simultaneously it works fine,…
1
vote
0 answers

downcast to AVAssetDownloadURLSession fails

I'm creating an AVAssetDownloadURLSession here's my code: let config = URLSessionConfiguration.background(withIdentifier: "background") let avSession = AVAssetDownloadURLSession(configuration: config, assetDownloadDelegate: self, delegateQueue:…
Dan Morrow
  • 4,433
  • 2
  • 31
  • 45
0
votes
1 answer

iOS - Setting total max size limit for downloads with AVAssetDownloadURLSession

I am creating an app to download audio tracks and videos with AVAssetDownloadURLSession and AVAssetDownloadTask. What I would love to do is set a threshold for downloads. Say, the threshold is 5GB then total downloads would never exceed 5GB. I went…
0
votes
1 answer

AVAggregateAssetDownloadTask Error Domain=CoreMediaErrorDomain Code=-16657

I'm using AVAggregateAssetDownloadTask to download HLS videos in my application. I just added a pause/resume functionality. Simply, I'm suspending the task when the user wants to pause the download. But, somehow in this case, actually task won't…
MGY
  • 7,245
  • 5
  • 41
  • 74
0
votes
1 answer

Offline FairPlay playback makes network requests to load m3u8 playlists

We're building offline Fairplay playback feature in our app using AVAssetDownloadTask API set. We can successfully download the the content, but we noticed network activities, which are requests to the m3u8 playlists presented in the boot.xml in the…
Evan
  • 335
  • 1
  • 3
  • 11
0
votes
2 answers

Delete AVAssetDownloadTask all not downloaded files

I need to delete all files that AVAssetDownloadTask didn't manage to download while the app was running. I want to do this after the app has received the UIApplication.willTerminateNotification. I tried cancel of all AVAssetDownloadTasks, but…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
0
votes
0 answers

AVAssetDownloadTask doesn't start on IOS 10.3 device

I'm actually implementing a download functionality in an application. I'm facing a very weird bug with AVAssetDownloadTask. Indeed at the beginning of the day the implementation for downloading a asset was working. When I called the resume function…
Martin
  • 843
  • 8
  • 17
0
votes
1 answer

Forward slash in assetTitle causes error

While testing (on real device) AVAssetDownloadURLSession I noticed when I put slash "/" into assetTitle as result I receive error: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed"…
mackode
  • 73
  • 7
1
2