Repository navigation
Share system audio while sharing the desktop (Windows) — like Zoom's "Share computer sound" #3345
torresproject-o
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
What I'd like
The ability to share the computer's audio to the channel while sharing the
desktop, similar to Zoom's "Share computer sound". The captured audio would be
sent as a
STREAMTYPE_MEDIAFILE_AUDIOstream, so it runs in parallel with themicrophone and the desktop video, and needs no changes on the receiving side
(clients already play media-file audio).
Why
Sharing what's playing on the computer (music, a video, a tutorial) is a very
common need when screen-sharing. TeamTalk can stream a media file today, but
not the live system audio. This would close that gap with a one-checkbox UX.
Proposed UX (qtTeamTalk)
A new "Audio" group in the Desktop Sharing dialog:
Narrator from the shared audio unless enabled. This matters a lot for blind
users, who don't want their screen reader transmitted.
Capture follows the desktop-share selection:
Implementation
I already have a working implementation for Windows using the Process
Loopback API (
ActivateAudioInterfaceAsyncwithAUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK), so it needs no virtual audiodriver. It feeds the captured PCM into an
AudioInputStreamerwired to theexisting media-file audio path in
ClientNode, reusing all the existingtransmission machinery.
New C-API:
TT_StartShareSystemAudio()/TT_StopShareSystemAudio().I have a patch ready (12 files, ~1000 lines, Windows-only, guarded with
#if defined(WIN32)). Happy to open a PR if you're interested. I'd also beglad to discuss API naming or a cross-platform design (macOS ScreenCaptureKit /
Linux PipeWire).
Application
All reactions