browserd
browserd copied to clipboard
Hide cursor in video feed 🐭
We should not show the cursor in the webrtc video feed, however it's baked in and cannot be removed using the APIs we are using for user media. However, since the linux edition of the webrtc mouse monitor code uses xfixes (if the server supports it, ours seems to) we should be able to tell xfixes to hide the cursor (or make it transparent) and expect webrtc to do the same.
- XFIXES API (ctrl+f for "HideCursor")
- Unclutter-xfixes (related source/solution)
- Webrtc source
Note: If desktopCapturer supports getDisplayMedia in the future, we can use that to disable the cursor.
I really really want to implement this, but don't have time to do so at the moment 😢
It may also be possible to use Xvfb -fc <font>
to give xvfb a cursor font that is all transparent.