@webex/calling 3.5.0-next.20 → 3.5.0-next.22
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/dist/CallingClient/calling/call.js +26 -4
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +456 -373
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/calling/types.js +6 -1
- package/dist/CallingClient/calling/types.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +22 -4
- package/dist/module/CallingClient/calling/types.js +5 -0
- package/dist/types/CallingClient/calling/call.d.ts +2 -2
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/types.d.ts +5 -1
- package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -271,14 +271,36 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
271
271
|
/**
|
|
272
272
|
* Mutes/Unmutes the call.
|
|
273
273
|
*
|
|
274
|
-
* @param
|
|
274
|
+
* @param localAudioStream - The local audio stream to mute or unmute.
|
|
275
|
+
* @param muteType - Identifies if mute was triggered by system or user.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```javascript
|
|
279
|
+
* call.mute(localAudioStream, 'system_mute')
|
|
280
|
+
* ```
|
|
275
281
|
*/
|
|
276
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mute", function (localAudioStream) {
|
|
277
|
-
if (localAudioStream) {
|
|
282
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mute", function (localAudioStream, muteType) {
|
|
283
|
+
if (!localAudioStream) {
|
|
284
|
+
_Logger.default.warn("Did not find a local stream while muting the call ".concat(_this.getCorrelationId(), "."), {
|
|
285
|
+
file: _constants.CALL_FILE,
|
|
286
|
+
method: 'mute'
|
|
287
|
+
});
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (muteType === _types4.MUTE_TYPE.SYSTEM) {
|
|
291
|
+
if (!localAudioStream.userMuted) {
|
|
292
|
+
_this.muted = localAudioStream.systemMuted;
|
|
293
|
+
} else {
|
|
294
|
+
_Logger.default.info("Call is muted by the user already - ".concat(_this.getCorrelationId(), "."), {
|
|
295
|
+
file: _constants.CALL_FILE,
|
|
296
|
+
method: 'mute'
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
} else if (!localAudioStream.systemMuted) {
|
|
278
300
|
localAudioStream.setUserMuted(!_this.muted);
|
|
279
301
|
_this.muted = !_this.muted;
|
|
280
302
|
} else {
|
|
281
|
-
_Logger.default.
|
|
303
|
+
_Logger.default.info("Call is muted on the system - ".concat(_this.getCorrelationId(), "."), {
|
|
282
304
|
file: _constants.CALL_FILE,
|
|
283
305
|
method: 'mute'
|
|
284
306
|
});
|