startPlayerFromStream no sound on android, same code works on IOS and Web
Can you please help me resolve this issue on android?
startPlayerFromStream with no sound on android, same code works on IOS and Web, and I can pleasestartPlayer and got sound on android. My code like this:
_player.uint8ListSink!.add(chunk);
...
await _player.startPlayerFromStream(
codec: Codec.pcm16,
numChannels: 1,
sampleRate: 24000,
bufferSize: 1024*1024,
interleaved: true
);
...
buffered chunk will be added later by another thread( _player.uint8ListSink!.add(chunk);)
Please advics
BufferSize: 1024*1024 is huge! You can try to omit this parameter and let Flutter Sound use the a default value.
awesome! I change it back to 161024, and I can hear the sound. I change the buffer to 10241024 because some times the play may intermittently, then I thought it may cased by the buffer not enough, and then I increased it. Larpoux, Thank you for the quick reply1