avassetdownloadtask

Cache HLS video while playing with AVAssetDownloadTask

拈花ヽ惹草 提交于 2021-01-27 14:23:09
问题 I am trying cache an HLS stream while I am playing it. I was following the Apple documentation on this (the section Playing Offline Assets): https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html#//apple_ref/doc/uid/TP40016757-CH11-SW1 I've implemented the following method - which should make my HLS streams download while playing: func downloadAndPlayAsset(_ asset: AVURLAsset) { //

Downloading and playing offline HLS Content - iOS 10

三世轮回 提交于 2019-12-30 06:43:31
问题 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 it is being played ? Or we can just download when user press download button and show progress. Does anyone has implemented this in Objective C version? Actually my previous App is made in Objective C. Now I want to add support for downloading HLS rather than MP4 (previously I was downloading MP4 for offline view). I am really

Download performance of AVAssetDownloadTask

余生颓废 提交于 2019-12-12 19:13:25
问题 I'm using AVAssetDownloadTask to download some FairPlay-encrypted audio. As per guidelines, the audio is split up into small chunks to allow switching between bitrates during streaming. Our chunks are about 6 seconds each, which means less than 100 kb in size. The download speed of this process is pretty bad. I've seen speeds between 85 KB/s and 250 KB/s. This is on a connection where when I download a new Xcode beta, I get several megabytes per second. I'm guessing that the slow speed is due

iOS: Playing offline HLS with AES-128 encryption

我是研究僧i 提交于 2019-12-11 15:10:51
问题 With out FairPlay i am planning to download Streaming URL Content and key. For this i have used Apple sample code HLSCatalog and in that i have integrated below mechanism to get the decrypt key. https://developer.apple.com/documentation/avfoundation/media_assets_playback_and_editing/using_avfoundation_to_play_and_persist_http_live_streams Playing Offline HLS with AES-128 encryption iOS Here i am successfully able to download the key. Once key download is complete then it is calling the below

Downloading and playing offline HLS Content - iOS 10

淺唱寂寞╮ 提交于 2019-11-30 21:47:58
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 it is being played ? Or we can just download when user press download button and show progress. Does anyone has implemented this in Objective C version? Actually my previous App is made in Objective C. Now I want to add support for downloading HLS rather than MP4 (previously I was downloading MP4 for offline view). I am really desperate to this. Please share thoughts or any code if implemented. The only way you can do this is to