Skip to content

Commit

Permalink
fix: make decode error a terminal error
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Dec 7, 2024
1 parent c7fc289 commit 6ddc8ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
Expand Down

0 comments on commit 6ddc8ae

Please sign in to comment.