-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
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:
- Code using native API: https://github.com/naukograd-software/flutter-webrtc/tree/main/common/windows
- Audio setup and stream creation: https://github.com/naukograd-software/flutter-webrtc/blob/main/common/cpp/src/flutter_screen_capture.cc#L276
Metadata
Metadata
Assignees
Labels
No labels