Persist live HLS stream

How can I save what

AVPlayer
is currently playing (both video and audio) from Live HLS stream?


Please note that the HLS stream is live and not Video on Demand so cannot use

AVAggregateAssetDownloadTask
In the perfect scenario will get
CMSampleBuffer
objects which can save to file easily. Also
AVPlayerItemOutput
is not entirely an option because I am unable to see how will get the audio channel.

Replies

I don't believe that is a scenario we support.

Asset download task is intended to support offline playback of VOD content.


I don't really see a reason to support this.

If you feel you have good reasons, please outline them in a bug report and we will take look.