@webex/web-client-media-engine 3.8.1 → 3.8.3
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 +11 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14256,6 +14256,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14256
14256
|
let prevNumTotalSources = 0;
|
|
14257
14257
|
let prevNumLiveSources = 0;
|
|
14258
14258
|
jmpSession.on(JmpSessionEvents.SourceAdvertisementReceived, (data) => {
|
|
14259
|
+
logger.log(`SourceAdvertisement received: ${JSON.stringify(data)}`);
|
|
14259
14260
|
if (data.numTotalSources !== prevNumTotalSources ||
|
|
14260
14261
|
data.numLiveSources !== prevNumLiveSources) {
|
|
14261
14262
|
prevNumTotalSources = data.numTotalSources;
|
|
@@ -14265,18 +14266,23 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14265
14266
|
: MultistreamConnectionEventNames.AudioSourceCountUpdate;
|
|
14266
14267
|
this.emit(eventName, data.numTotalSources, data.numLiveSources, getMediaContent(mediaType));
|
|
14267
14268
|
}
|
|
14269
|
+
else {
|
|
14270
|
+
logger.log('Number of sources was unchanged, ignoring message');
|
|
14271
|
+
}
|
|
14268
14272
|
});
|
|
14269
14273
|
jmpSession.on(JmpSessionEvents.MediaRequestStatusReceived, (data) => {
|
|
14274
|
+
logger.log(`MediaRequestStatus received: ${JSON.stringify(data)}`);
|
|
14270
14275
|
data.streamStates.forEach((s) => {
|
|
14271
14276
|
const receiveSlot = this.getReceiveSlotById(s.id);
|
|
14272
14277
|
if (!receiveSlot) {
|
|
14273
|
-
logger.warn(`Got MediaRequestStatus for unknown receive slot: ${s.id}`);
|
|
14278
|
+
logger.warn(`Got MediaRequestStatus for unknown receive slot: ${JSON.stringify(s.id)}`);
|
|
14274
14279
|
return;
|
|
14275
14280
|
}
|
|
14276
14281
|
receiveSlot._updateSource(s.state, s.csi);
|
|
14277
14282
|
});
|
|
14278
14283
|
});
|
|
14279
14284
|
jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
|
|
14285
|
+
logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
|
|
14280
14286
|
if (getMediaFamily(mediaType) === MediaFamily.Video) {
|
|
14281
14287
|
this.sendMediaRequestStatus(mediaType);
|
|
14282
14288
|
}
|
|
@@ -14332,7 +14338,10 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14332
14338
|
sendTransceiver.updateSendParameters(requestedIdEncodingParamsMap);
|
|
14333
14339
|
}
|
|
14334
14340
|
createDataChannel() {
|
|
14335
|
-
const dataChannel = this.pc.createDataChannel('datachannel', {
|
|
14341
|
+
const dataChannel = this.pc.createDataChannel('datachannel', {
|
|
14342
|
+
ordered: false,
|
|
14343
|
+
maxRetransmits: 0,
|
|
14344
|
+
});
|
|
14336
14345
|
dataChannel.onopen = (e) => {
|
|
14337
14346
|
logger.info('DataChannel opened: ', e);
|
|
14338
14347
|
[...this.sendTransceivers.keys()].forEach((mediaType) => {
|