From 6ddc8ae0331edbb114eb03295bd2db22f4540612 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Sat, 7 Dec 2024 21:34:29 +0530 Subject: [PATCH] fix: make decode error a terminal error --- .../hms-video-store/src/audio-sink-manager/AudioSinkManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts b/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts index d4b28f2468..121d7cdd70 100644 --- a/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts +++ b/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts @@ -143,7 +143,7 @@ export class AudioSinkManager { private handleAudioElementError = (audioEl: HTMLAudioElement, track: HMSRemoteAudioTrack) => { audioEl.addEventListener('error', async () => { - HMSLogger.e(this.TAG, 'error on audio element', audioEl?.error?.code); + HMSLogger.e(this.TAG, 'error on audio element for track - ', track.trackId, 'error code', audioEl?.error?.code); const ex = ErrorFactory.TracksErrors.AudioPlaybackError( `Audio playback error for track - ${track.trackId} code - ${audioEl?.error?.code}`, );