2

If I use AVAssetDownloadTask to download an encrypted audio-only HLS stream, is it possible to get access to the raw audio data, for the purposes of integrating with AVAudioEngine, AVAudioPlayerNode, and associated effects? If so, what's the process like for doing that? e.g. could I use an AES library like RNCryptor to decrypt the media?

Thanks!

John Scalo
  • 3,194
  • 1
  • 27
  • 35
  • hi, interesting, this might have some pointers https://stackoverflow.com/questions/27096857/decode-audio-samples-from-hls-stream-on-ios – IronMan Feb 18 '21 at 23:28
  • 1
    RNCryptor implements a specific cross-platform format. It's not a general purpose encryption library and can't be used to encrypt or decrypt anything but the RNCryptor format. If you need to perform raw AES decryption, you'll generally want CryptoKit or CommonCrypto. (I haven't explore the HLS encryption format, so I don't know how it's packaged.) – Rob Napier Feb 18 '21 at 23:36

0 Answers0