-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: audio playback error #3419
base: dev
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
# Conflicts: # packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts
} | ||
} | ||
|
||
init(elementId?: string) { | ||
if (this.state.initialized || this.audioSink) { | ||
HMSLogger.e(this.TAG, 'Audio sink already initialized'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this to debug instead of error?
const audioSink = document.createElement('div'); | ||
audioSink.id = `HMS-SDK-audio-sink-${uuid()}`; | ||
const userElement = elementId && document.getElementById(elementId); | ||
const audioSinkParent = userElement || document.body; | ||
audioSinkParent.append(audioSink); | ||
|
||
this.audioSink = audioSink; | ||
HMSLogger.d(this.TAG, 'audio sink created', this.audioSink); | ||
this.state.initialized = true; | ||
HMSLogger.e(this.TAG, 'audio sink created', this.audioSink); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be a debug log
return; | ||
} else { | ||
HMSLogger.e(this.TAG, 'Autoplay succeeded', `${track}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed
@KaustubhKumar05 Bumping all logs to the error level is intentional |
Description
Pre-launch Checklist
Merging: