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.
24 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.captions = void 0;
var enums_1 = require("./enums");
exports.captions = {
/**
* Sets the automatically generated audio captions to be displayed/or not in the client.
*
* @param setDisplayAudioCaptionsCommandArguments: object with a
* {@link CaptionsLanguageEnum} that tells the language to which the core will set the
* display of the audio captions. If the value is `CaptionsLanguageEnum.NONE`, it will hide the
* audio captions.
* Refer to {@link SetDisplayAudioCaptionsCommandArguments} to understand the argument structure.
*/
setDisplayAudioCaptions: function (setDisplayAudioCaptions) {
var displayAudioCaptions = setDisplayAudioCaptions.displayAudioCaptions;
window.dispatchEvent(new CustomEvent(enums_1.CaptionsEnum.SET_DISPLAY_AUDIO_CAPTIONS, {
detail: {
displayAudioCaptions: displayAudioCaptions,
},
}));
},
};
//# sourceMappingURL=commands.js.map