I need to implement a video DASH client for Android.
At this time I haven't find any solution except write the InputStream
in a temp file and then read the file. Of course this solution is not efficient at all. I thought to use an OutputStream
to use its FileDescriptor
as the data source. But I'm not able to use a valid FileDescriptor
without creating an existing file...
Because of the DASH protocol, the client has the charge of getting all the (little) segments, so I really need to find a way to read the media directly from the memory. Maybe the only solution is to use the JNI but I don't really know how.
To resume I'm open to every suggestions. The only constraints are :
- At first I have an
InputStream
- Here it can be any intermediate operations but the more efficient as possible
- Get a valid input to feed a
MediaPlayer
That seems pretty basic but I can't found any way to achieve that. Thanks.