11

I am having issues with downloading and playing an HLS URL at the same time.

I have followed WWDC'16 video and also below link.

But either I am able to play the audio or I am only able to download it. I am not able to achieve doing both the tasks at the same time. And the download is also working only on iOS 11 beta releases, not on iOS 10 devices.

Am I missing something or there is some other way of achieving it?

Nirmalsinh Rathod
  • 5,079
  • 4
  • 26
  • 56
Vikas Dadheech
  • 1,672
  • 12
  • 23
  • format update and spellings mistake – Nirmalsinh Rathod Aug 03 '17 at 12:45
  • if i remember correctly its not possible to play downloaded files in prior iOS 11 versions. Many people doing a workaround by configuring a HLS setup with a locally build in httpd on the device, so that the device delivers the media file locally. – thorb65 Aug 07 '17 at 08:29
  • that's what @thorb65, apple provided AVAssetDownloadTask to download HLS content from iOS 10, but it is not working for me as of now and hence the question on stackoverflow. – Vikas Dadheech Aug 08 '17 at 09:10

1 Answers1

2

There are a lot of changes related to HLS and FPS for iOS 11

And there are two examples from Apple for developers:

As for me: on iOS 10 I can play and download HLS+FPS without any issues, but the same code for iOS 11 is not working (as I wrote - there a lot of new instances and workflows in it).

Vadim Nikolaev
  • 2,132
  • 17
  • 34
  • So have you been able to achieve it through AVAssetDownloadTask? without Fairplay? An example piece of code to do this would be highly appreciated. – Vikas Dadheech Aug 11 '17 at 09:14
  • @VikasDadheech You better download a sample from Apple (the links I added above) and see the part of code what you need – Vadim Nikolaev Aug 11 '17 at 09:29
  • I did download it and checked it before posting the question here. But the problems that I was facing, were still there even after following similar set of steps. The only change being that the sample was written in Swift and I am using objective C; – Vikas Dadheech Oct 13 '17 at 11:29