Skip to content

Commit

Permalink
fix: add replay for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Dec 10, 2024
1 parent c7821d3 commit f6e22e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ export class AudioSinkManager {
if (audioEl?.error?.code === MediaError.MEDIA_ERR_DECODE) {
await track.setVolume(0);
await track.setVolume(this.volume);
HMSLogger.d(this.TAG, 'output device', track.getOutputDevice());
await this.playAudioFor(track);
this.eventBus.analytics.publish(
AnalyticsEventFactory.audioRecovered('Audio recovered after media decode error'),
);
Expand Down

0 comments on commit f6e22e7

Please sign in to comment.