ExoPlayer
ExoPlayer copied to clipboard
Add InputStreamDataSource
Does exoplayer have a byte stream accumulation playback API?
for example: AudioTrack.write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes)
Have you solved it
In ExoPlayer terms, this would be a DataSource
you can write byte[] arrays to. There was some previous discussion on how to write this in https://github.com/google/ExoPlayer/issues/8051 and go/exoghi/4212, which you may want to read.
Given this has come up a few times now, I leave this open as an enhancement to create a InputStreamDataSource
(that can probably be modelled/generalized from AssetDataSource
that already uses an InputStream
internally)