Afsar Ahamad
Afsar Ahamad

Reputation: 1997

How to disable entire screen sharing and allow only application window and browser tabs sharing in BigBlueButton?

Using BigBlueButton for online classroom I want to allow moderators to share their browser tabs or a particular application but not entire screen. When we tap on the screen sharing button from BigBlueButton Html5Client demo then we got three options (Your Entire Screen , Application Window , Chrome(Browser Tab in case of other browsers) Tab) as Follows.

enter image description here

My requirements is to restrict the sharing of entire screen (From first option). Can I achieve it by customising some settings of BBB or by changing code of client demo application? I seen this Disable screen sharing, But this option is disabling all options.

Upvotes: 3

Views: 3161

Answers (1)

david
david

Reputation: 737

This is a feature that Chrome (and Chromium based browsers like Edge and Opera) have recently added (in Nov 2023). You can now set the new constraint: monitorTypeSurfaces to exclude in getDisplayMedia() to disable sharing the whole screen.

const stream = await navigator.mediaDevices.getDisplayMedia({
  video: true,
  // Remove the "Entire Screen" pane in the media picker.
  monitorTypeSurfaces: "exclude",
});

You can find more details under: Chrome Blog and MDN getDisplayMedia docs

Upvotes: 0

Related Questions