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.

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