How to Download and Restrict Video Files in Android App?
Introduction
A couple of months back, I came across a client requirement who wanted to build a feature to download and restrict video files in Android App, just like YouTube, Netflix, Amazon Prime does with us. It took me quite a few days to figure out how to accomplish this requirement, but I ended up with a satisfying solution. If you are looking for this requirement or something similar, hook until the end.
Client Requirement
The client made it very clear how the feature should look like. Though, it took time for the team to comprehend and summarize the requirements.
Here was the requirement-
The client wanted to download the video from the URL, save it to the application environment, and play offline (without using the internet) from the environment only. Moreover, he wanted to restrict the user from accessing the video files outside the app environment.
After much research, we concluded the three final steps for building the feature: How to Download and Restrict Video Files in Android App.
1. Download the video from the URL 2. Encrypt the video file 3. Decrypt the video file at the time of playing
Read More: Download and Restrict Video Files in Android App












