android


How to play an encrypted video file in Android


I searched through a lot of questions on SO but I can't find the answer, that's why I ask the following question:
An Android app should be able to play an encrypted video file (stored on the SD card and retrieved from a webserver).
The file has to be stored on the SD card so that the app can play the video file without having an active internet connection.
Because the video files may not be copied, the plan is to encrypt them server side when uploading the files to a webserver.
What is the best option?
1) I have seen suggestions for running a local webserver which decrypts the file (and how to do this?)
2) or should we decrypt the file, save it as a temporary file and set this temporary file as the source for the videoplayer?
3) something completely different?
You are trying to implement a DRM scheme, and a naive one at that. Look into DRM schemes and report back if you cannot implement the impossible. All you can hope for is obfuscation, and there are plenty of ways of doing that (none of them are secure of course).
You will expose the user to a waiting time if you choose to decrypt a entire big video beforehand. As of the security, you can guess it's a poor idea to have the contents in clear in a file, even temporary. The local webserver is a better choice because it's a streaming method, so without file storage. There is no class for an http server in the SDK, you have to implement your own one, otherwise look for an existing library similar to LocalSingleHttpServer.

Related Links

How do I keep step counting fragment in the background?
400 Bad Request: Post Large Data (>65KB)(JSON Format) from android device using WCF Rest service
OpenCV Core.putText - text on a frame doesn't look good
How can I control my Android app through hard-keys?
ViewPager with Rotational transformation
javax.mail.AuthenticationFailedException or background mail security Error
Recommended apps pop up dialog
Data not being inserted in Table on Button Press
android autocomplete places api fragment does not show search reults
No callback from cordova-plugin-googleplus plugin after successful login
Link multiple button to multiple tabs in android [duplicate]
I can't find layout_width that i must supply [closed]
Why YouTube API doesn't work in 5.0 and later versions?
android spinner adapter OnItemSelectedListener what is Row Id
Android Expandable listview on scroll it changes selected checkbox state
How to post a multi part form data from android to web api?

Categories

HOME
algorithm
phantom-dsl
spark-streaming
amp-html
android-studio-2.2
zend-framework
rsa
youtube-data-api-v3
nsbundle
onclick
android-json
banner
elasticsearch-5
mql5
google-chrome-app
ipmitool
angular-dart
symbol
wolframalpha
cgbitmapcontext
r-mice
epsilon
data.stackexchange.com
jasmine-node
bringtofront
sqlpackage
eviews
xbox
mockjax
sql-server-2000
fstream
installscript
getlasterror
sharepoint-workflow
swagger-php
hivemq
ideascript
unordered-map
dbnull
subclipse
android-exoplayer
file-sharing
uiimage
double-click
mesosphere
ovf
reportservice2010
netbeans6.8
remedy
payara-micro
aquamacs
truezip
opengl-4
bbpress
reshape
flyout
rsa-archer-grc
node-request
reporting-services-2012
ng-grid
appscale
android-wake-lock
cda
hadoop-partitioning
jbase
sciruby
terracotta
avisynth
django-urls
cgi-bin
.bash-profile
dulwich
ocra
mraid
uvc
mmwormhole
iiop
imagefilter
rmysql
nsmenu
ignite-ui
ora-00904
high-resolution
gtm-oauth2
jeromq
printdialog
scmmanager
stacky
sqlclr
android-loadermanager
onmousemove
paginator
appjs
usertype
jsr286
denied
user-tracking
tournament
pylucene
uipagecontrol
http-daemon
uideviceorientation
silent
qtabbar
lalr
firefox-3
mathematical-typesetting
image-capture
idatareader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App