bigbluebutton-html-plugin-sdk 0.0.60 → 0.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cjs/ui-commands/commands.d.ts +6 -0
- package/dist/cjs/ui-commands/commands.js +4 -0
- package/dist/cjs/ui-commands/commands.js.map +1 -1
- package/dist/cjs/ui-commands/conference/commands.d.ts +12 -0
- package/dist/cjs/ui-commands/conference/commands.js +28 -0
- package/dist/cjs/ui-commands/conference/commands.js.map +1 -0
- package/dist/cjs/ui-commands/conference/enums.d.ts +3 -0
- package/dist/cjs/ui-commands/conference/enums.js +8 -0
- package/dist/cjs/ui-commands/conference/enums.js.map +1 -0
- package/dist/cjs/ui-commands/conference/types.d.ts +6 -0
- package/dist/cjs/ui-commands/conference/types.js +3 -0
- package/dist/cjs/ui-commands/conference/types.js.map +1 -0
- package/dist/cjs/ui-commands/types.d.ts +4 -0
- package/dist/cjs/ui-commands/user-status/commands.d.ts +11 -0
- package/dist/cjs/ui-commands/user-status/commands.js +22 -0
- package/dist/cjs/ui-commands/user-status/commands.js.map +1 -0
- package/dist/cjs/ui-commands/user-status/enums.d.ts +3 -0
- package/dist/cjs/ui-commands/user-status/enums.js +8 -0
- package/dist/cjs/ui-commands/user-status/enums.js.map +1 -0
- package/dist/cjs/ui-commands/user-status/types.d.ts +6 -0
- package/dist/cjs/ui-commands/user-status/types.js +3 -0
- package/dist/cjs/ui-commands/user-status/types.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -249,6 +249,10 @@ One other thing is that the type of the return is precisely the same type requir
|
|
|
249
249
|
- presentation-area:
|
|
250
250
|
- open: this function will open the presentation area content automatically;
|
|
251
251
|
- close: this function will close the presentation area content automatically;
|
|
252
|
+
- conference:
|
|
253
|
+
- setSpeakerLevel: this function will set the speaker volume level(audio output) of the conference to a certain number between 0 and 1;
|
|
254
|
+
- user-status:
|
|
255
|
+
- setAwayStatus: this function will set the away status of the user to a certain status;
|
|
252
256
|
|
|
253
257
|
See usage ahead:
|
|
254
258
|
|
|
@@ -18,4 +18,10 @@ export declare const uiCommands: {
|
|
|
18
18
|
open: () => void;
|
|
19
19
|
close: () => void;
|
|
20
20
|
};
|
|
21
|
+
userStatus: {
|
|
22
|
+
setAwayStatus: (setAwayStatusCommandArguments: import("./user-status/types").SetAwayStatusCommandArguments) => void;
|
|
23
|
+
};
|
|
24
|
+
conference: {
|
|
25
|
+
setSpeakerLevel: (setSpeakerLevelCommandArguments: import("./conference/types").SetSpeakerLevelCommandArguments) => void;
|
|
26
|
+
};
|
|
21
27
|
};
|
|
@@ -5,10 +5,14 @@ var commands_1 = require("./chat/commands");
|
|
|
5
5
|
var commands_2 = require("./external-video/commands");
|
|
6
6
|
var commands_3 = require("./sidekick-options-container/commands");
|
|
7
7
|
var commands_4 = require("./presentation-area/commands");
|
|
8
|
+
var commands_5 = require("./user-status/commands");
|
|
9
|
+
var commands_6 = require("./conference/commands");
|
|
8
10
|
exports.uiCommands = {
|
|
9
11
|
chat: commands_1.chat,
|
|
10
12
|
externalVideo: commands_2.externalVideo,
|
|
11
13
|
sidekickOptionsContainer: commands_3.sidekickOptionsContainer,
|
|
12
14
|
presentationArea: commands_4.presentationArea,
|
|
15
|
+
userStatus: commands_5.userStatus,
|
|
16
|
+
conference: commands_6.conference,
|
|
13
17
|
};
|
|
14
18
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AACvC,sDAA0D;AAC1D,kEAAiF;AACjF,yDAAgE;AAChE,mDAAoD;AACpD,kDAAmD;AAEtC,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;IACJ,aAAa,0BAAA;IACb,wBAAwB,qCAAA;IACxB,gBAAgB,6BAAA;IAChB,UAAU,uBAAA;IACV,UAAU,uBAAA;CACX,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetSpeakerLevelCommandArguments } from './types';
|
|
2
|
+
export declare const conference: {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the volume of the speakers in the conference to a certain level.
|
|
5
|
+
* Needs to be a value between 0 and 1.
|
|
6
|
+
*
|
|
7
|
+
* @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
|
|
8
|
+
* level.
|
|
9
|
+
* Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
|
|
10
|
+
*/
|
|
11
|
+
setSpeakerLevel: (setSpeakerLevelCommandArguments: SetSpeakerLevelCommandArguments) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conference = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.conference = {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the volume of the speakers in the conference to a certain level.
|
|
8
|
+
* Needs to be a value between 0 and 1.
|
|
9
|
+
*
|
|
10
|
+
* @param setSpeakerLevelCommandArgumentsthe volume to which the core will set the speaker
|
|
11
|
+
* level.
|
|
12
|
+
* Refer to {@link SetSpeakerLevelCommandArguments} to understand the argument structure.
|
|
13
|
+
*/
|
|
14
|
+
setSpeakerLevel: function (setSpeakerLevelCommandArguments) {
|
|
15
|
+
var level = setSpeakerLevelCommandArguments.level;
|
|
16
|
+
if (level <= 1 && level >= 0) {
|
|
17
|
+
window.dispatchEvent(new CustomEvent(enums_1.ConferenceEnum.SET_SPEAKER_LEVEL, {
|
|
18
|
+
detail: {
|
|
19
|
+
level: level,
|
|
20
|
+
},
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error('Not possible to set the speaker volume less than zero or higher than one');
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAG5B,QAAA,UAAU,GAAG;IACxB;;;;;;;OAOG;IACH,eAAe,EAAE,UAAC,+BAAgE;QACxE,IAAA,KAAK,GAAK,+BAA+B,MAApC,CAAqC;QAClD,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;YAC5B,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,sBAAc,CAAC,iBAAiB,EAAE;gBAClC,MAAM,EAAE;oBACN,KAAK,OAAA;iBACN;aACF,CAAC,CACH,CAAC;SACH;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;SAC7F;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConferenceEnum = void 0;
|
|
4
|
+
var ConferenceEnum;
|
|
5
|
+
(function (ConferenceEnum) {
|
|
6
|
+
ConferenceEnum["SET_SPEAKER_LEVEL"] = "SET_SPEAKER_LEVEL_COMMAND";
|
|
7
|
+
})(ConferenceEnum || (exports.ConferenceEnum = ConferenceEnum = {}));
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,iEAA+C,CAAA;AACjD,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/conference/types.ts"],"names":[],"mappings":""}
|
|
@@ -2,9 +2,13 @@ import { UiCommandsChatObject } from './chat/types';
|
|
|
2
2
|
import { UiCommandsExternalVideoObject } from './external-video/types';
|
|
3
3
|
import { UiCommandsSidekickOptionsContainerObject } from './sidekick-options-container/types';
|
|
4
4
|
import { UiCommandsPresentationAreaObject } from './presentation-area/types';
|
|
5
|
+
import { UiCommandsUserStatusObject } from './user-status/types';
|
|
6
|
+
import { UiCommandsConferenceObject } from './conference/types';
|
|
5
7
|
export interface UiCommands {
|
|
6
8
|
chat: UiCommandsChatObject;
|
|
7
9
|
externalVideo: UiCommandsExternalVideoObject;
|
|
8
10
|
sidekickOptionsContainer: UiCommandsSidekickOptionsContainerObject;
|
|
9
11
|
presentationArea: UiCommandsPresentationAreaObject;
|
|
12
|
+
userStatus: UiCommandsUserStatusObject;
|
|
13
|
+
conference: UiCommandsConferenceObject;
|
|
10
14
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetAwayStatusCommandArguments } from './types';
|
|
2
|
+
export declare const userStatus: {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the away status of the user to a certain status.
|
|
5
|
+
*
|
|
6
|
+
* @param setAwayStatusCommandArguments the status to which the core will set the user
|
|
7
|
+
* status.
|
|
8
|
+
* Refer to {@link SetAwayStatusCommandArguments} to understand the argument structure.
|
|
9
|
+
*/
|
|
10
|
+
setAwayStatus: (setAwayStatusCommandArguments: SetAwayStatusCommandArguments) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userStatus = void 0;
|
|
4
|
+
var enums_1 = require("./enums");
|
|
5
|
+
exports.userStatus = {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the away status of the user to a certain status.
|
|
8
|
+
*
|
|
9
|
+
* @param setAwayStatusCommandArguments the status to which the core will set the user
|
|
10
|
+
* status.
|
|
11
|
+
* Refer to {@link SetAwayStatusCommandArguments} to understand the argument structure.
|
|
12
|
+
*/
|
|
13
|
+
setAwayStatus: function (setAwayStatusCommandArguments) {
|
|
14
|
+
var away = setAwayStatusCommandArguments.away;
|
|
15
|
+
window.dispatchEvent(new CustomEvent(enums_1.UserStatusEnum.SET_AWAY_STATUS, {
|
|
16
|
+
detail: {
|
|
17
|
+
away: away,
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/commands.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAG5B,QAAA,UAAU,GAAG;IACxB;;;;;;OAMG;IACH,aAAa,EAAE,UAAC,6BAA4D;QAClE,IAAA,IAAI,GAAK,6BAA6B,KAAlC,CAAmC;QAC/C,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,sBAAc,CAAC,eAAe,EAAE;YAChC,MAAM,EAAE;gBACN,IAAI,MAAA;aACL;SACF,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserStatusEnum = void 0;
|
|
4
|
+
var UserStatusEnum;
|
|
5
|
+
(function (UserStatusEnum) {
|
|
6
|
+
UserStatusEnum["SET_AWAY_STATUS"] = "SET_AWAY_USER_STATUS_COMMAND";
|
|
7
|
+
})(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
|
|
8
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,kEAAgD,CAAA;AAClD,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/user-status/types.ts"],"names":[],"mappings":""}
|