streaming - stream video on device bytewise to videoview - Android -


i want play encrypted video files present on device after decrypting them. want pre-process data-stream , parallel play using videoview streaming video internet.

is there way buffer processed data videoview network stream ?

i think saying want decrypt video in 1 process , pass decrypted 'clear stream' video process play it?

if video drm protected, use case unlikely supported of leading drm solutions - go great lengths ensure clear stream video not accessible application on device (for obvious reasons).

if using or simple encryption encryption key available application should able this.

update answering bmvit's question in comment - 1 way follow these steps:

  1. stream encrypted file server usual, 'chunk chunk'
  2. on android device, read stream , decrypt each chunk received
  3. using localhost http server on android device, 'serve' decrypted chunks mediaplayer (the media player should set use url pointing @ localhost http server)

i guessing approach libmedia library uses, although have never seen source not sure: http://libeasy.alwaysdata.net

it worth being aware tricky (which why libmedia not free).


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -