@webex/web-client-media-engine 3.24.0 → 3.24.1
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/cjs/index.js +25 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +25 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -7798,6 +7798,7 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7798
7798
|
var trace = function (name, payload, timestamp) {
|
|
7799
7799
|
logger({ timestamp: timestamp ? Math.round(timestamp) : Date.now(), name: name, payload: payload });
|
|
7800
7800
|
};
|
|
7801
|
+
trace('rtcConfiguration', makeEvent(JSON.stringify(pc.getConfiguration())));
|
|
7801
7802
|
var origPeerConnection = window.RTCPeerConnection;
|
|
7802
7803
|
pc.addEventListener('icecandidate', function (e) {
|
|
7803
7804
|
if (e.candidate) {
|
|
@@ -7831,7 +7832,7 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7831
7832
|
pc.addEventListener('datachannel', function (event) {
|
|
7832
7833
|
trace('ondatachannel', makeEvent("".concat(event.channel.id, ": ").concat(event.channel.label)));
|
|
7833
7834
|
});
|
|
7834
|
-
['
|
|
7835
|
+
['close'].forEach(function (method) {
|
|
7835
7836
|
var nativeMethod = origPeerConnection.prototype[method];
|
|
7836
7837
|
if (nativeMethod) {
|
|
7837
7838
|
origPeerConnection.prototype[method] = function () {
|
|
@@ -7840,6 +7841,26 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7840
7841
|
};
|
|
7841
7842
|
}
|
|
7842
7843
|
});
|
|
7844
|
+
['createDataChannel'].forEach(function (method) {
|
|
7845
|
+
var nativeMethod = origPeerConnection.prototype[method];
|
|
7846
|
+
if (nativeMethod) {
|
|
7847
|
+
origPeerConnection.prototype[method] = function () {
|
|
7848
|
+
trace("on".concat(method), makeEvent(method));
|
|
7849
|
+
var dataChannel = nativeMethod.apply(this, arguments);
|
|
7850
|
+
dataChannel.addEventListener('open', function () {
|
|
7851
|
+
trace("ondataChannelOpen", makeEvent("".concat(dataChannel.id, ":").concat(dataChannel.label)));
|
|
7852
|
+
});
|
|
7853
|
+
dataChannel.addEventListener('close', function () {
|
|
7854
|
+
trace("ondataChannelClose", makeEvent("".concat(dataChannel.id, ":").concat(dataChannel.label)));
|
|
7855
|
+
});
|
|
7856
|
+
dataChannel.addEventListener('error', function (event) {
|
|
7857
|
+
var error = event.error;
|
|
7858
|
+
trace("ondataChannelError", makeEvent("".concat(dataChannel.id, ":").concat(dataChannel.label, ": ").concat(error.errorDetail)));
|
|
7859
|
+
});
|
|
7860
|
+
return dataChannel;
|
|
7861
|
+
};
|
|
7862
|
+
}
|
|
7863
|
+
});
|
|
7843
7864
|
['addStream', 'removeStream'].forEach(function (method) {
|
|
7844
7865
|
var nativeMethod = origPeerConnection.prototype[method];
|
|
7845
7866
|
if (nativeMethod) {
|
|
@@ -7914,7 +7935,9 @@ var rtcStats = function (pc, logger, intervalTime, statsPreProcessor) {
|
|
|
7914
7935
|
origPeerConnection.prototype[method] = function () {
|
|
7915
7936
|
var _this = this;
|
|
7916
7937
|
var args = arguments;
|
|
7917
|
-
trace("on".concat(method), makeEvent(method === 'addIceCandidate'
|
|
7938
|
+
trace("on".concat(method), makeEvent(method === 'addIceCandidate'
|
|
7939
|
+
? arguments[0]
|
|
7940
|
+
: (arguments[0] ? arguments[0].sdp : 'undefined')));
|
|
7918
7941
|
return nativeMethod.apply(this, [arguments[0]]).then(function () {
|
|
7919
7942
|
var _a;
|
|
7920
7943
|
trace("on".concat(method, "OnSuccess"), makeEvent('success'));
|