Question / Help Audio Stops Working When Disconnecting From The RDP On Stream

jones11

New Member
I'm doing a YouTube livestream, when i'm connected to the RDP the audio works fine on the livestream,
but when i Disconnect from the RDP the audio stops but the video keeps working well without any issues,
when i reconnect again to the RDP the audio starts working again without any problems
Does anyone know how to fix it?
thank in advance
 

koala

Active Member
In the rdp client, you need to set your remote audio settings to not redirect audio to the local machine. I don't know how it's called in english, but the corresponding settings on a german screenshot look like this:
1552071829577.png

In case you're connecting to a virtual machine and not to a physical machine, you cannot use OBS. This cannot be done in a vps, since a vps does not have a physical audio device. The virtual rdp audio device is only present as long as a rdp connection is active. It is removed by Windows as soon as a session is disconnected.

If you remote control OBS on a physical machine, rdp is not the right tool to remotely control it, because of the switching of the GPU and audio devices. As soon as you open a rdp session, gpu and audio is replaced by virtual rdp devices. As soon as the session is disconnected, the virtual rdp devices are removed. A stream or recording running at the moment of the disconnect is aborted. A better tool to remotely control such a machine is vnc, since vnc just transfers the display content of the main display of the machine and does not create any virtual machine and also doesn't fiddle with the screen saver.
 

jones11

New Member
i have tried redirecting the audio to the local machine, the audio works, everything works fine
but when i disconnect from the session, the sound stops
when i use a media source on obs, the audio keeps playing even if i disonnect from the RDP
but when i use desktop audio, the audio stops playing when i disconnect
 

koala

Active Member
If you're on a vps: not that I know. If you're on a physical machine: see my screenshot.
 

GerdF

New Member
Hi,

Unfortunately, the screenshot does not help the situation.
Even if "Auf dem Remotecomputer wiedergeben" is checked, the audio stops when the RDP connection is terminated.

This seems to be a Windows issue:
Unfortunately, Microsoft seems not to be interested in solving the problem.

Regards,
Gerd
 

RafaeDSalvado

New Member
i already found a way to fix this issue

first i installed VB-Audio then reboot my Remote Desktop
second I installed VLC then play the audio there and also on OBS setting under audio i selected VB-Audio on Desktop Audio and for the last i created DWORD value on regedit
10

You can try to enable RDP keep alive functionnality in the registry:
In regedit.exe as admin:
  1. Go to the location HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
  2. Create or edit the DWORD value of KeepAliveEnable
  3. Set it to 1.
  4. Save and quit
1728394496668.png
 
Top