Hi All,
I need to play an audio file from a byte array. I came across where you can set the data source of media player to be of type MediaDataSource.
As per the android developer - "For supplying media data to the framework. Implement this if your app has special requirements for the way media data is obtained"
I am getting the audio from an external source through the B4J webserver in a custom encoded format. I can decode the stream and want to use the bytes to play the audio without creating a temp audio file.
Is there any way to create a MediaDataSource so that I can use it with Media Player.?
Kindly let me know.
Links: https://developer.android.com/reference/android/media/MediaDataSource.html
Best,
SK
I need to play an audio file from a byte array. I came across where you can set the data source of media player to be of type MediaDataSource.
As per the android developer - "For supplying media data to the framework. Implement this if your app has special requirements for the way media data is obtained"
I am getting the audio from an external source through the B4J webserver in a custom encoded format. I can decode the stream and want to use the bytes to play the audio without creating a temp audio file.
Is there any way to create a MediaDataSource so that I can use it with Media Player.?
Kindly let me know.
Links: https://developer.android.com/reference/android/media/MediaDataSource.html
Best,
SK