ben-grande / qusal

Salt Formulas for Qubes OS.
17 stars 6 forks source link

video-companion formula and persistent attachment of mics/webcams #92

Open kennethrrosen opened 1 month ago

kennethrrosen commented 1 month ago

Commitment

I confirm that I have read the following resources:

Question

With video-companion, is it unadvisable to --persistent attach the user's mic and webcams to the client?

Thank you!

.

ben-grande commented 1 month ago

With video-companion, is it unadvisable to --persistent attach the user's mic and webcams to the client?

Yes, it is inadvisable and unnecessary.

There is no need to attach mic to the client once you have an AudioVM. Some Webcams have integrated microphone though, this is a different case.

There is only one case when it can be required, when you want to use both (screenshare/webcam) from the same client at the same time, which is not uncommon in case you are doing a video call and talking and wants to share screen:

But if you attach the mic to the AudioVM (which I couldn't get my integrated mic to work):

But I got USB headset with microphone attached to AudioVM to work.

It is unadvisable because those devices can compromise the client by being on the same qube, but if they are isolated, the risk is lower.

Try this setup:

  1. From dom0, attach mic to AudioVM, configure the input device using Pavucontrol or Easyeffects or via command-line to the use the attached microphone.
  2. Set audio client audiovm to the wanted AudioVM, be it dom0 or disp-sys-audio.
  3. From audio client, run qubes-video-companion webcam and target the USBVM that holds the webcam.

Try to use a video conference application to test if everything is working. You can use cheese for the webcam test, I don't remember if it covers sound. You can use the browser with Jitsi, or online sites to do microphone, speaker, webcam test also (may contain ads and not respect your privacy) or do a Signal call or Element with yourself if you have 2 accounts.


Edit: note that mic is not handled by video-companion, only screenshare and webcam, while mic is handled by audiovm.