Securing your content is a crucial aspect, when it comes to downloading a media or a muti-media files from prying eyes of your users specially on an OTT based project if you’re working on to. Now this can get tricky and might cost you some money if you make up you’re mind in buying some plugins from third party vendors. The neat trick mentioned below helps for any .mp3 files or an .aac file, song which you want it to be secured and by no means want them to be downloaded by your clients or users/readers/listeners etc.
The code is mentioned below on my GitHub repo as well as screengrab here, now this is again for hard coded from scratch for OTT platforms only.
here is the website:
https://akupedia.github.io/mp3dang/
the full code can be inspected here for reference:
https://github.com/akupedia/mp3dang/blob/master/code.html
Behold, a Giant I’m I, prevent piracy and be safe!