Jitsi-meet: Share one entire screen, but not all screens

Created on 29 Apr 2018  路  16Comments  路  Source: jitsi/jitsi-meet

I have multiple screens. It is currently (using https://meet.jit.si/) only possible to share a window, a chrome tab or the entire desktop (all screens).

What seems to be missing is to share only one screen.

Sharing one application window is not what I want here, because I often switch between two application windows on the same screen.

Is this possible to implement or a limitation by the browser?

(I tried it on Chrome 66, Ubuntu 16.04)

Most helpful comment

Ok finally made it work. Here are the steps required when using OBS:

  1. Run OBS Studio,
  2. In File > Settings uncheck Make projectors always on top
    image
  3. Now right-click on the screen and start Windowed projector (Preview)*
  4. Make it full-screen using F11
  5. Finally, screen share the Windowed projector (Preview) application

All 16 comments

Seems to be a Linux/Ubuntu related problem: https://bugs.chromium.org/p/chromium/issues/detail?id=660032

Same problem in Ubuntu 18.04

Would a workaround on the side of jitsi-meet be possible, where the use still can select a sub-rectangle of the originally shared full screen / full desktop?

I don't think we can work around this in jitsi-meet. The chrome API only allows us to specify the types of sources to include (tabs, separate applications, or screens). The detection of the actual screens that are available happens internally in chrome.

I can attest to this happening in Arch & Firefox, as well. Is there any browser where this would be possible in Linux? I would happily switch.

I can attest to this happening in Arch & Firefox, as well. Is there any browser where this would be possible in Linux? I would happily switch.

You can try chromium or chrome

Closing since there is nothing we can do on meet.

Here is a possible workaround from the above Chromium bug list:

Comment 19 by [email protected], Feb 6
As a workaround I use ffmpeg virtual webcam. I have written a script that asks you which individual screen you wish to share.
Chromium will not automatically add virtual webcam to its list (its another bug), so to workaround it, I prorammatically reinsert my internal laptop webcam.
I have shared these scripts in my repo called hliss (Hangouts Linux Individual Screen Share). It is located here: https://github.com/Ashark/hliss

A very clunky workaround I've used with this and other web-based screen share on Ubuntu 18.04 (and likely works with others) is to install OBS, set it up to view the monitor you wish to share, move it off to another monitor and share that app...

This is very clunky but essentially achieves the same effect as JThoennes' solution.

Another workaround option similar to @JThoennes and @george-viaud that I use is using Xephyr:

Example:

# Get list of monitors via xrandr --listmonitors
Xephyr -output DP1 :1 &
export DISPLAY=:1
firefox &
recordmydesktop -o /tmp/myrecording.ogv
# Any other items you want on screen DP1

On jitsi, share the app: Xephyr.

@george-viaud thanks for the tip! This also helped me with single screen sharing.

How to you set OBS to just show the screen with no interface?

The best I could do is get rid of all the docks and status bar and full screen it. This leaves a menu though:
image

If I select Fullscreen Projector (Preview) I get the whole screen but then it stays on top of other applications.

I haven't used obs.

With recordmydesktop this works for me:

export DISPLAY=:1
recordmydesktop  --on-the-fly-encoding -o /mnt/$(date +%Y%m%d-%H:%M:%S-%Z)-course.ogv

Ok finally made it work. Here are the steps required when using OBS:

  1. Run OBS Studio,
  2. In File > Settings uncheck Make projectors always on top
    image
  3. Now right-click on the screen and start Windowed projector (Preview)*
  4. Make it full-screen using F11
  5. Finally, screen share the Windowed projector (Preview) application

Nice !!!!

Another workaround option similar to @JThoennes and @george-viaud that I use is using Xephyr:

Example:

# Get list of monitors via xrandr --listmonitors
Xephyr -output DP1 :1 &
export DISPLAY=:1
firefox &
recordmydesktop -o /tmp/myrecording.ogv
# Any other items you want on screen DP1

On jitsi, share the app: Xephyr.

I use this:

Xephyr :1 -screen 1280x980 & 
XPID=$!

export DISPLAY=:1

xfce4-panel &
PANELPID=$!

openbox

kill $PANELPID
kill $XPID

@gerazov's hack with OBS is nice because you can even compose your webcam view over the shared screen, or more advanced stuff!

you can even compose your webcam view over the shared screen

@JoKeyser Did you know that you can enable your cam during screen sharing for a Picture-in-Picture mode?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

532910 picture 532910  路  3Comments

mfts picture mfts  路  3Comments

VogtAI picture VogtAI  路  3Comments

mdosch picture mdosch  路  3Comments

TopheC picture TopheC  路  3Comments