video - How can I make Android's VideoView to read padded file? -


is possible android's videoview read mp4 file skip first 512 bytes?

our client not want videos transferred/copied on different devices. did "obfuscate" mp4 file adding random 512 bytes @ beginning of file , renaming files different file extension.

obviously, above approach not protect videos being pirated. he's fine enough protection "non-techies".

currently, upon playing video, our android app extracts actual video content new temporary file skipping first 512 bytes. temp file 1 played videoview.

the problem takes long time our videos more 100mb+ each. not acceptable solution.

i think, if can make videoview skip first 512 bytes, we're set. possible? if not, better alternatives?

disclaimer: i'm web developer of server app adds 512-byte padding. i'm not android developer. i'm posting question on behalf of android dev colleague. forgive me if our approach totally noob. feel free suggest better (and hopefully) easy ways.

if "skipping" want jump point in video can use videoview#seekto(int msec). method skips start on duration video.

if want cut video @ beginning or other modifications 1 solution pre-process in server , stream result app. way app won't have handle heavy pre-processing , more importantly avoid downloading whole video file in advance.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -