Does android native "VideoView" video rendering widget plays encrypted video files?
And if yes then how to play it and what all the APIs.
I have gone through this link i don't find anything related playing encrypted video.
Is it that i need to decrypt my video and then pass it to VideoView?
VideoView can't play an encrypted video, you have to decrypt it yourself. There are roughly two ways:
libmedia is a library developed to precisely address this feature.
Something like:
mServer = new LocalSingleHttpServer();
mServer.setCipher(myGetCipher());
mServer.start();
path = mServer.getURL(path);
mVideoView.setVideoPath(path);
mVideoView.start();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With