@webex/calling 3.0.0-next.20 → 3.0.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 +20 -2
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +54 -1
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/calling/types.js.map +1 -1
- package/dist/CallingClient/line/index.js +3 -2
- package/dist/CallingClient/line/index.js.map +1 -1
- package/dist/CallingClient/line/types.js.map +1 -1
- package/dist/Events/types.js +1 -0
- package/dist/Events/types.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +14 -1
- package/dist/module/CallingClient/line/index.js +2 -2
- package/dist/module/Events/types.js +1 -0
- package/dist/module/index.js +1 -0
- package/dist/types/CallingClient/calling/call.d.ts +1 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/types.d.ts +1 -0
- package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
- package/dist/types/CallingClient/line/index.d.ts +3 -2
- package/dist/types/CallingClient/line/index.d.ts.map +1 -1
- package/dist/types/CallingClient/line/types.d.ts +3 -10
- package/dist/types/CallingClient/line/types.d.ts.map +1 -1
- package/dist/types/Events/types.d.ts +12 -1
- package/dist/types/Events/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -193,7 +193,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
/**
|
|
196
|
-
* .
|
|
196
|
+
* Mutes/Unmutes the call.
|
|
197
197
|
*
|
|
198
198
|
* @param localAudioTrack -.
|
|
199
199
|
*/
|
|
@@ -207,6 +207,24 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
207
207
|
_this.muted = true;
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
|
+
/**
|
|
211
|
+
* Change the audio stream of the call.
|
|
212
|
+
*
|
|
213
|
+
* @param newAudioStream - The new audio stream to be used in the call.
|
|
214
|
+
*/
|
|
215
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateMedia", function (newAudioStream) {
|
|
216
|
+
var localAudioTrack = newAudioStream.outputStream.getAudioTracks()[0];
|
|
217
|
+
if (!localAudioTrack) {
|
|
218
|
+
_Logger.default.warn("Did not find a local track while updating media for call ".concat(_this.getCorrelationId(), ". Will not update media"), {
|
|
219
|
+
file: _constants.CALL_FILE,
|
|
220
|
+
method: 'updateMedia'
|
|
221
|
+
});
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
_this.mediaConnection.updateLocalTracks({
|
|
225
|
+
audio: localAudioTrack
|
|
226
|
+
});
|
|
227
|
+
});
|
|
210
228
|
_this.destination = destination;
|
|
211
229
|
_this.direction = direction;
|
|
212
230
|
_this.sdkConnector = _SDKConnector.default;
|
|
@@ -2306,7 +2324,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2306
2324
|
_context18.next = 6;
|
|
2307
2325
|
break;
|
|
2308
2326
|
}
|
|
2309
|
-
_Logger.default.warn("Did not find a local track while
|
|
2327
|
+
_Logger.default.warn("Did not find a local track while dialing the call ".concat(this.getCorrelationId()), {
|
|
2310
2328
|
file: _constants.CALL_FILE,
|
|
2311
2329
|
method: 'dial'
|
|
2312
2330
|
});
|