UNPKG

bigbluebutton-html-plugin-sdk

Version:

This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.

28 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.conference = void 0; var enums_1 = require("./enums"); exports.conference = { /** * Sets the volume of the speakers in the conference to a certain level. * Needs to be a value between 0 and 1. * * @param setSpeakerLevelCommandArguments volume to which the core will set the speaker * level. * Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure. */ setSpeakerLevel: function (setSpeakerLevelCommandArguments) { var level = setSpeakerLevelCommandArguments.level; if (level <= 1 && level >= 0) { window.dispatchEvent(new CustomEvent(enums_1.ConferenceEnum.SET_SPEAKER_LEVEL, { detail: { level: level, }, })); } else { throw new Error('Not possible to set the speaker volume less than zero or higher than one'); } }, }; //# sourceMappingURL=commands.js.map