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.