-
Notifications
You must be signed in to change notification settings - Fork 167
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
Append element to dom for LocalTrack setProcessor #981
Comments
What would you like to control about the dom element?
What's the unexpected behaviour here? |
The element is not muted actaully.
First initialized with muted, but
So muted property set to true again when there is audioTrack If it is intended to mute the processElement. I think we should change the order of codes(attachElement first, then set element muted) |
If the processor element is muted properly, then this would solve your use case ? |
Yes! |
Describe the problem
My team is currently working on noise reduction during streaming with livekit with love.
I add NoiseReduction logic to track with setProcessor method in local track.
Noise reduction works well, but there is one problem.
After adding setProcessor, the sound of track get out to speaker.
It's because there are audio playing element on processorElement.
In setProcessor method, there are logic that if there is no processorElement, get new element by document.createElement.
But this element is not attached to DOM, so can not control it by
document.getElement~~
.Also, processorElement is protected, so cannot control it from local track.
So audio is kept played
Describe the proposed solution
I think there are several ways to solve it. But don't know what would this project prefer.
Alternatives considered
protected
topublic
like attachedElementImportance
I cannot use LiveKit without it
Additional Information
No response
The text was updated successfully, but these errors were encountered: