Thursday, September 8, 2022
HomeWordPress DevelopmentDiscord display screen share with audio on Linux!

Discord display screen share with audio on Linux!


Sadly, for those who’re utilizing Discord on a Linux-based working system, you understand that Discord display screen sharing would not embrace audio out of your apps like how Home windows and macOS does.
I looked for a method to get audio working for Discord display screen share on Linux; I discovered one other man with the identical frusration, so I made a decision to work with him to create Tuxphones, a program fabricated from two elements: a daemon and a BetterDiscord plugin.
The daemon creates a digital PulseAudio sink, and the BetterDiscord plugin sends discord stream info to the daemon and blocks the default Discord stream.

After the knowledge is distributed over, the daemon takes over and creates a WebSocket reference to Discord’s gateway then connects to Discord’s RTC servers.

After a number of trial and error, we managed to get a video stream to the discord server with our exterior utilizing H264 however we nonetheless have not managed to make discord’s webrtc backend learn our Opus audio stream.
We do not know what the error is and we try to investiage it, however neither of us know that a lot about WebRTC.

If anybody desires Discord screenshare with audio on Linux as unhealthy as we do and is aware of WebRTC, please assist us out.

You could find our code on Github:
Tuxphones: https://github.com/ImTheSquid/Tuxphones
gst-webrtcredux (the plugin that we developed to make use of webrtc-rs with gstreamer): https://github.com/ImTheSquid/gst-webrtcredux

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments