I need to be able to initialize MediaPlayer with my memory buffer or stream. The solution provided here: how to play video from byte array in media player - to use MediaDataSource with setDataSource works for API level 23 (M) only. Is anybody has suggestion what to do with pre-API23 (L) ? Since there are setDataSource APis to use FileDescriptor/path/URL/URI I am thinking maybe there is a way to "convert" Stream to URI? Any thoughts?
One possible solution is to use same mechanism as here Don't wast your time for ContentProvider, Memoryfile etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With