Closed evangeline closed 1 year ago
Bug repro for https://github.com/aws/amazon-chime-sdk-js/issues/2709
When you call startAudioInput repeatedly with an audio stream, audio will fail to send (audioSendingFailed)
startAudioInput
audioSendingFailed
Run the browser demo, the following scenarios will cause audioSendingFailed:
Calling startAudioInput repeatedly with the same audio track but in a new media stream
await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack]));
Calling startAudioInput repeatedly with the same audio track but making sure to stopAudioInput before starting again
stopAudioInput
await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack])); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(new MediaStream([audioTrack]));
Putting the track into the same media stream, ie:
const stream = new MediaStream([audioTrack]); await this.audioVideo?.startAudioInput(stream); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(stream); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(stream); await this.audioVideo?.stopAudioInput(); await this.audioVideo?.startAudioInput(stream);
Bug repro for https://github.com/aws/amazon-chime-sdk-js/issues/2709
When you call
startAudioInput
repeatedly with an audio stream, audio will fail to send (audioSendingFailed
)Run the browser demo, the following scenarios will cause
audioSendingFailed
:Calling
startAudioInput
repeatedly with the same audio track but in a new media streamCalling
startAudioInput
repeatedly with the same audio track but making sure tostopAudioInput
before starting againPutting the track into the same media stream, ie: