MediaSource Android Stagefright - how to create it from bytearray in native code?

456 views
Skip to first unread message

MK

unread,
Apr 22, 2021, 11:07:49 AM4/22/21
to android-platform

The command line client for Stagefright
https://android.googlesource.com/platform/frameworks/av/+/master/cmds/stagefright/stagefright.cpp
Is using MediaSource to play the Video.
How can I set MediaSource to be from byte array (char *), where I can specify it. I want to load the whole file from memory from array (very small video, not need for file streaming)
https://android.googlesource.com/pl.../master/cmds/stagefright/stagefright.cpp#1234
I think MediaSource is an Interface, it has read() methods etc, but nothing to construct MediaSource from bytearray, char array (char *)
How can I construct proper MediaSource? So that I can just make
playSource(mediaSource);
Thanks,
Reply all
Reply to author
Forward
0 new messages