[android-developers] my FileDescriptor doesn't work with mediaplayer (plz help)
Hi Experts,
i have a filedescriptor through a script like this
------------------------------------------------------------
Class<?> execClass = Class.forName("android.os.Exec");
Method createSubprocess =
execClass.getMethod("createSubprocess",
String.class, String.class, String.class,
int[].class);
Method waitFor = execClass.getMethod("waitFor",
int.class);
// Executes the command.
// NOTE: createSubprocess() is asynchronous.
int[] pid = new int[1];
FileDescriptor fd =
(FileDescriptor)createSubprocess.invoke(
null, "/system/bin/cat", "/sdcard/chunk.3gp",
null, pid);
------------------------------------------------------------
i can read bytes from fd and it seems working fine but when i pass it
to the mediaplayer as datasource.
it doesn't show anything. (this is just 1 sec video)
same video works fine with direct path but i need to decrypt the file
bytes by bytes while its playing.
i thought this solution might help me but no luck so far.
can anybody guide me to the right direction how can i decrypt the file
while playing ?
or do i need to change in native code and build the opencore (pv
player ) separately and any change in there?
please help
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home