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?
Asked
Active
Viewed 1,429 times
1 Answers
1
One possible solution is to use same mechanism as here Don't wast your time for ContentProvider, Memoryfile etc.

Community
- 1
- 1

user3330596
- 71
- 7