@webex/calling 3.3.1-next.28 → 3.3.1-next.29
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 +16 -40
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +2 -19
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +1 -13
- package/dist/types/CallingClient/calling/call.d.ts +0 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -2250,7 +2250,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2250
2250
|
iceCandidatesTimeout: _constants.ICE_CANDIDATES_TIMEOUT,
|
|
2251
2251
|
sdpMunging: {
|
|
2252
2252
|
convertPort9to0: true,
|
|
2253
|
-
addContentSlides: false
|
|
2253
|
+
addContentSlides: false,
|
|
2254
|
+
copyClineToSessionLevel: true
|
|
2254
2255
|
}
|
|
2255
2256
|
}, {
|
|
2256
2257
|
localTracks: {
|
|
@@ -2773,33 +2774,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2773
2774
|
}
|
|
2774
2775
|
return postMedia;
|
|
2775
2776
|
}()
|
|
2776
|
-
/* istanbul ignore next */
|
|
2777
|
-
/**
|
|
2778
|
-
* Copy SDP's c-line to session level from media level.
|
|
2779
|
-
* SPARK-522437
|
|
2780
|
-
*/
|
|
2781
|
-
)
|
|
2782
|
-
}, {
|
|
2783
|
-
key: "addSessionConnection",
|
|
2784
|
-
value: function addSessionConnection(sdp) {
|
|
2785
|
-
var lines = sdp.split(/\r\n|\r|\n/);
|
|
2786
|
-
var mIndex = lines.findIndex(function (line) {
|
|
2787
|
-
return line.startsWith('m=');
|
|
2788
|
-
});
|
|
2789
|
-
var tIndex = lines.findIndex(function (line) {
|
|
2790
|
-
return line.startsWith('t=');
|
|
2791
|
-
});
|
|
2792
|
-
if (mIndex !== -1 && mIndex < lines.length - 1 && lines[mIndex + 1].startsWith('c=')) {
|
|
2793
|
-
var cLine = lines[mIndex + 1];
|
|
2794
|
-
lines.splice(tIndex, 0, cLine);
|
|
2795
|
-
}
|
|
2796
|
-
return lines.join('\r\n');
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
2777
|
/* istanbul ignore next */
|
|
2800
2778
|
/**
|
|
2801
2779
|
* Setup a listener for roap events emitted by the media sdk.
|
|
2802
2780
|
*/
|
|
2781
|
+
)
|
|
2803
2782
|
}, {
|
|
2804
2783
|
key: "mediaRoapEventsListener",
|
|
2805
2784
|
value: function mediaRoapEventsListener() {
|
|
@@ -2809,7 +2788,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2809
2788
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2810
2789
|
function () {
|
|
2811
2790
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(event) {
|
|
2812
|
-
var _event$roapMessage, _event$roapMessage2
|
|
2791
|
+
var _event$roapMessage, _event$roapMessage2;
|
|
2813
2792
|
var mediaOk, sdpVideoPortZero;
|
|
2814
2793
|
return _regenerator.default.wrap(function _callee25$(_context26) {
|
|
2815
2794
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -2819,13 +2798,10 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2819
2798
|
file: _constants.CALL_FILE,
|
|
2820
2799
|
method: _this14.mediaRoapEventsListener.name
|
|
2821
2800
|
});
|
|
2822
|
-
if ((_event$roapMessage3 = event.roapMessage) !== null && _event$roapMessage3 !== void 0 && _event$roapMessage3.sdp) {
|
|
2823
|
-
event.roapMessage.sdp = _this14.addSessionConnection(event.roapMessage.sdp);
|
|
2824
|
-
}
|
|
2825
2801
|
_context26.t0 = event.roapMessage.messageType;
|
|
2826
|
-
_context26.next = _context26.t0 === _types4.RoapScenario.OK ?
|
|
2802
|
+
_context26.next = _context26.t0 === _types4.RoapScenario.OK ? 5 : _context26.t0 === _types4.RoapScenario.OFFER ? 8 : _context26.t0 === _types4.RoapScenario.ANSWER ? 13 : _context26.t0 === _types4.RoapScenario.ERROR ? 16 : _context26.t0 === _types4.RoapScenario.OFFER_RESPONSE ? 18 : 21;
|
|
2827
2803
|
break;
|
|
2828
|
-
case
|
|
2804
|
+
case 5:
|
|
2829
2805
|
mediaOk = {
|
|
2830
2806
|
received: false,
|
|
2831
2807
|
message: event.roapMessage
|
|
@@ -2834,8 +2810,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2834
2810
|
type: 'E_ROAP_OK',
|
|
2835
2811
|
data: mediaOk
|
|
2836
2812
|
});
|
|
2837
|
-
return _context26.abrupt("break",
|
|
2838
|
-
case
|
|
2813
|
+
return _context26.abrupt("break", 21);
|
|
2814
|
+
case 8:
|
|
2839
2815
|
// TODO: Remove these after the Media-Core adds the fix
|
|
2840
2816
|
sdpVideoPortZero = event.roapMessage.sdp.replace(/^m=(video) (?:\d+) /gim, 'm=$1 0 ');
|
|
2841
2817
|
event.roapMessage.sdp = sdpVideoPortZero;
|
|
@@ -2844,28 +2820,28 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2844
2820
|
type: 'E_SEND_CALL_SETUP',
|
|
2845
2821
|
data: event.roapMessage
|
|
2846
2822
|
});
|
|
2847
|
-
return _context26.abrupt("break",
|
|
2848
|
-
case
|
|
2823
|
+
return _context26.abrupt("break", 21);
|
|
2824
|
+
case 13:
|
|
2849
2825
|
_this14.localRoapMessage = event.roapMessage;
|
|
2850
2826
|
_this14.sendMediaStateMachineEvt({
|
|
2851
2827
|
type: 'E_SEND_ROAP_ANSWER',
|
|
2852
2828
|
data: event.roapMessage
|
|
2853
2829
|
});
|
|
2854
|
-
return _context26.abrupt("break",
|
|
2855
|
-
case
|
|
2830
|
+
return _context26.abrupt("break", 21);
|
|
2831
|
+
case 16:
|
|
2856
2832
|
_this14.sendMediaStateMachineEvt({
|
|
2857
2833
|
type: 'E_ROAP_ERROR',
|
|
2858
2834
|
data: event.roapMessage
|
|
2859
2835
|
});
|
|
2860
|
-
return _context26.abrupt("break",
|
|
2861
|
-
case
|
|
2836
|
+
return _context26.abrupt("break", 21);
|
|
2837
|
+
case 18:
|
|
2862
2838
|
_this14.localRoapMessage = event.roapMessage;
|
|
2863
2839
|
_this14.sendMediaStateMachineEvt({
|
|
2864
2840
|
type: 'E_SEND_ROAP_OFFER',
|
|
2865
2841
|
data: event.roapMessage
|
|
2866
2842
|
});
|
|
2867
|
-
return _context26.abrupt("break",
|
|
2868
|
-
case
|
|
2843
|
+
return _context26.abrupt("break", 21);
|
|
2844
|
+
case 21:
|
|
2869
2845
|
case "end":
|
|
2870
2846
|
return _context26.stop();
|
|
2871
2847
|
}
|