I am attempting to add functionality to the screen sharing that would allow
desktop audio to be forwarded to the opposite endpoint.
Ideally per window/client audio would be supported.
The simplest solution is modify the plugin to attach an audio track for the
This does in fact work, and the desktop audio is played out of the
endpoint-- however the audio for the browser/NWJS instance running the
conference is included.
The result is an unpleasant echo, since a remote user speaks, their audio
is then played out of the desktop, and that voice is then forwarded back to
I'm wondering if this is already handled somehow in WebRTC- it seems like a
common use case, and since Jitsi is handling the audio/video tracks
separately maybe it isn't being triggered.
I'm looking now at solutions that involve getting the direct audio track
out of an individual window, or perhaps using AudioContext on the client
side, or potentially some processing on the server side, to negate the
remote audio tracks from the desktop audio track.
Any thoughts, ideas, or experience involving this, would be greatly
- Jason Thomas