|
1 | | -# Repository of a plugin for BigBlueButton |
| 1 | +# Decrease external video's volume on speak |
2 | 2 |
|
3 | | -## Description |
| 3 | +## What is it? |
4 | 4 |
|
5 | | -A brief description of the plugin including a screenshot or a short video. |
| 5 | +This plugin is one of the official bbb plugins. It basically decreases the external video's volume when a user is speaking in the meeting. |
6 | 6 |
|
7 | | -## Running the Plugin From Source Code |
| 7 | +## Running the Plugin from Source |
| 8 | + |
| 9 | +1. Start the development server: |
| 10 | + |
| 11 | +```bash |
| 12 | +cd $HOME/src/plugins/decrease-volume-on-speak |
| 13 | +npm install |
| 14 | +npm start |
| 15 | +``` |
| 16 | + |
| 17 | +2. Add reference to it on BigBlueButton's `settings.yml`: |
| 18 | + |
| 19 | +```yaml |
| 20 | + plugins: |
| 21 | + - name: DecreaseVolumeOnSpeak |
| 22 | + url: http://127.0.0.1:4701/static/DecreaseVolumeOnSpeak.js |
| 23 | +``` |
8 | 24 |
|
9 | 25 | ## Building the Plugin |
10 | 26 |
|
| 27 | +To build the plugin for production use, follow these steps: |
| 28 | +
|
| 29 | +```bash |
| 30 | +cd $HOME/src/plugins/decrease-volume-on-speak |
| 31 | +npm install |
| 32 | +npm run build-bundle |
| 33 | +``` |
| 34 | + |
| 35 | +The above command will generate the `dist` folder, containing the bundled JavaScript file named `DecreaseVolumeOnSpeak.js`. This file can be hosted on any HTTPS server. |
11 | 36 |
|
12 | | -## Background |
| 37 | +To use the plugin with BigBlueButton, add the plugin's URL to `settings.yml` as shown below: |
13 | 38 |
|
14 | | -BigBlueButton added supports for plugins in 2024 with BBB 3.0. |
15 | | -Check the official [documentation website](https://docs.bigbluebutton.org) for more information. |
| 39 | +```yaml |
| 40 | +public: |
| 41 | + app: |
| 42 | + ... // All app configurations |
| 43 | + plugins: |
| 44 | + - name: DecreaseVolumeOnSpeak |
| 45 | + url: <<PLUGIN_URL>> |
| 46 | + ... // All other configurations |
| 47 | +``` |
16 | 48 |
|
17 | | -This plugin repository was created using the plugin [template repository for BigBlueButton](https://github.com/bigbluebutton/plugin-template) hosted on GitHub. |
| 49 | +Alternatively, you can host the bundled file on the BigBlueButton server by copying `dist/DecreaseVolumeOnSpeak.js` to the folder `/var/www/bigbluebutton-default/assets/plugins`. In this case, the `<<PLUGIN_URL>>` will be `https://<your-host>/plugins/DecreaseVolumeOnSpeak.js`. |
0 commit comments