@webex/web-client-media-engine 3.15.0 → 3.15.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 +16 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +16 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -7149,6 +7149,7 @@ exports.WcmeErrorType = void 0;
|
|
|
7149
7149
|
WcmeErrorType["GET_MAX_BITRATE_FAILED"] = "GET_MAX_BITRATE_FAILED";
|
|
7150
7150
|
WcmeErrorType["GET_PAYLOAD_TYPE_FAILED"] = "GET_PAYLOAD_TYPE_FAILED";
|
|
7151
7151
|
WcmeErrorType["SET_NMG_FAILED"] = "SET_NMG_FAILED";
|
|
7152
|
+
WcmeErrorType["DATA_CHANNEL_SEND_FAILED"] = "DATA_CHANNEL_SEND_FAILED";
|
|
7152
7153
|
})(exports.WcmeErrorType || (exports.WcmeErrorType = {}));
|
|
7153
7154
|
class WcmeError {
|
|
7154
7155
|
constructor(type, message = '') {
|
|
@@ -14693,8 +14694,21 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14693
14694
|
logger.error(`DataChannel not created or not connected. Unable to send JMP message.`);
|
|
14694
14695
|
return;
|
|
14695
14696
|
}
|
|
14696
|
-
|
|
14697
|
-
|
|
14697
|
+
try {
|
|
14698
|
+
logger.info(`Sending JMP message (size: ${msg.length}): ${msg}`);
|
|
14699
|
+
this.dataChannel.send(msg);
|
|
14700
|
+
}
|
|
14701
|
+
catch (err) {
|
|
14702
|
+
const { bufferedAmount, readyState } = this.dataChannel;
|
|
14703
|
+
const { sctp } = this.pc.getUnderlyingRTCPeerConnection();
|
|
14704
|
+
const { maxMessageSize, state } = sctp || {};
|
|
14705
|
+
logErrorAndThrow(exports.WcmeErrorType.DATA_CHANNEL_SEND_FAILED, `Sending JMP message failed with error: ${err},
|
|
14706
|
+
Message size: ${msg.length},
|
|
14707
|
+
Data Channel State: ${readyState},
|
|
14708
|
+
Data Channel Buffered amount: ${bufferedAmount},
|
|
14709
|
+
SCTP State: ${state},
|
|
14710
|
+
SCTP Max Message Size: ${maxMessageSize}`);
|
|
14711
|
+
}
|
|
14698
14712
|
});
|
|
14699
14713
|
let prevNumTotalSources = 0;
|
|
14700
14714
|
let prevNumLiveSources = 0;
|