Skip to content

POC: Screen share audio streaming on Windows #1919

@T3RR7

Description

@T3RR7

Hello, I'm currently working on a PoC for screen share audio streaming on Windows. I’ve implemented an audio capturer using the loopback API, based on Microsoft's sample code

I’ve run into a few issues while working on it:

  • I’m not sure how to properly handle stream closing to stop capturing.
  • I don’t know how the audio data should be sent. Should it be PCM? What sample rate should it use, etc.? I think we could discuss all of these (and more other) questions together.
  • In my sample app, I see the stream on both the local publisher and the remote side, but I can’t hear any sound. The stats (packets, total sample duration, etc.) look correct, so it seems like it should work. This is definitely my problem, but I’d like to understand what’s happening, why it doesn’t work, and fix it myself.

You can check out the PoC code here: https://github.com/naukograd-software/flutter-webrtc/tree/main

Note: this is very rough code with no meaningful commits yet. Sorry about that — I’ll clean it up once the solution is ready for a PR.

I think that by working together we can add this feature.

UPD:
For the convinient review of what's done:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions