Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Play encrypted audio files.

Open am2074 opened this issue 4 years ago • 2 comments

It is not uncommon for developers to have content, in this case audio files, that we want to limit the user from accessing. Like Spotify, they encrypt their audio files when a user downloads them for offline use and are decrypted on the fly when they are played.

Is there a way to make this happen with this plugin? I heard it is possible with Exoplayer with their methods discussed here. But I don't know whether or not it can be done with this plugin. If it can, that would be really awesome to have this feature.

am2074 avatar Dec 22 '20 15:12 am2074

@am2074 hey man, I am currently utilizing my own obfuscation technique where I chunk the file into 3 different files with an encrypted hash filename, then put them back together again. We've also tried encrypting the file and decrypting on the fly, works fine with this audio player.

blakewood84 avatar Jan 03 '22 17:01 blakewood84

Can you share the code for this?

fateh491989 avatar Mar 28 '22 14:03 fateh491989