Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to encrypt and decrypt a video file in android

Tags:

android

I have a question that I want to encrypt the video file when finished playing and after that when user again want to play the same I have to decrypt that. Means I have to encrypt the file at onCompletion of the video and decrypt the video file when want to be playing.

This is for only security reasons that user can not transmit it to another place.

Thanks in advance.

like image 264
Sanat Pandey Avatar asked Dec 20 '25 07:12

Sanat Pandey


1 Answers

You need not decrypt the video. Here is a third party library to play encrypted videos on the fly.

http://libeasy.alwaysdata.net/network/#encoding

It make the local server and serve the frames of video in chunks to the Videoview.From your app only it can play

like image 124
Cecil Paul Avatar answered Dec 22 '25 21:12

Cecil Paul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!