ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Add InputStreamDataSource

Open FangWW opened this issue 2 years ago • 2 comments

Does exoplayer have a byte stream accumulation playback API?

for example: AudioTrack.write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes)

FangWW avatar Mar 22 '22 14:03 FangWW

Have you solved it

Roc-egg avatar Jun 15 '22 07:06 Roc-egg

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)

tonihei avatar Feb 06 '24 10:02 tonihei