Downloading and playing offline HLS Content - iOS 10

后端 未结 4 463
离开以前
离开以前 2020-12-16 06:01

Since iOS 10, Apple has provided the support for downloading HLS (m3u8) video for offline viewing.

My question is: Is it necessary that we can only download HLS when

4条回答
  •  攒了一身酷
    2020-12-16 06:18

    You can easily download an HLS stream with AVAssetDownloadURLSession makeAssetDownloadTask. Have a look at the AssetPersistenceManager in Apples Sample code: https://developer.apple.com/library/content/samplecode/HLSCatalog/Introduction/Intro.html It should be fairly straight forward to use the Objective C version of the api.

提交回复
热议问题