如何在BigBlueButton中禁用全屏共享,仅允许应用窗口及浏览器标签页共享?
Absolutely, you can restrict full-screen sharing while keeping application window and browser tab sharing enabled in BigBlueButton—here are two reliable ways to make this work:
First, start by checking if there’s a native configuration option to disable just full-screen sharing (since the global "Disable screen sharing" toggle kills all sharing, which isn’t what you want).
- Navigate to your BBB HTML5 client’s config directory, typically at
/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml - Look for screen-sharing related keys (like
public.screenshare). Unfortunately, BBB doesn’t ship with an out-of-the-box setting to disable only full-screen sharing, so you’ll likely need to modify the client code instead.
This is the most direct way to hide the full-screen option and block it from being used. Here’s how to do it:
Step 1: Locate the Screen Share Component Files
In the BBB HTML5 client codebase (if you’re running a self-hosted instance or have access to the demo app code), find the component responsible for rendering screen share options. Common paths include:
imports/ui/components/screenshare/screenshare.jsximports/ui/components/screenshare/ScreenshareDialog.jsx(depending on your BBB version)
Step 2: Remove the Full-Screen Option
Look for the code that defines the three share options. It’ll look something like this:
const shareOptions = [ { id: 'screen', label: 'Your Entire Screen', type: 'screen' }, { id: 'window', label: 'Application Window', type: 'window' }, { id: 'tab', label: 'Chrome Tab', type: 'tab' }, ];
Simply remove the screen entry to hide the full-screen option:
const shareOptions = [ { id: 'window', label: 'Application Window', type: 'window' }, { id: 'tab', label: 'Chrome Tab', type: 'tab' }, ];
Step 3: Add Server-Side Block (Optional but Recommended)
To prevent users from bypassing the frontend restriction (e.g., via browser dev tools), add a check on the server side to reject full-screen share requests:
- Open the screen share handler file, usually at
imports/api/screenshare/server/handlers.js - In the function that processes share start requests, add a check for the share type:
// Inside the handler function for starting screen share if (shareType === 'screen') { throw new Meteor.Error('not-allowed', 'Full-screen sharing has been disabled'); }
Step 4: Rebuild and Deploy the Client
After making changes, rebuild the BBB HTML5 client (if self-hosted) with commands like:
cd /usr/share/meteor/bundle sudo meteor npm run build sudo systemctl restart bbb-html5
Important Notes
- If you’re using a managed BBB service and don’t have code access, reach out to your provider to see if they can implement this custom restriction for you.
- Always back up original code files before making modifications—this makes it easy to revert if something breaks.
- Code paths might vary slightly between BBB versions, so double-check the file structure for your specific release.
内容的提问来源于stack exchange,提问作者Afsar Ahamad

