@webex/web-client-media-engine 3.8.0 → 3.8.2
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 +8 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -9259,7 +9259,7 @@ function injectDummyCandidates(mediaDescription) {
|
|
|
9259
9259
|
if (mediaDescription.iceInfo.candidates.length === 0) {
|
|
9260
9260
|
mediaDescription.addLine(new CandidateLine('dummy1', 1, 'udp', 1, '0.0.0.0', 9, 'host'));
|
|
9261
9261
|
mediaDescription.addLine(new CandidateLine('dummy2', 1, 'tcp', 2, '0.0.0.0', 9, 'host'));
|
|
9262
|
-
mediaDescription.addLine(new CandidateLine('dummy3', 1, '
|
|
9262
|
+
mediaDescription.addLine(new CandidateLine('dummy3', 1, 'udp', 3, '0.0.0.0', 9, 'relay'));
|
|
9263
9263
|
}
|
|
9264
9264
|
}
|
|
9265
9265
|
function removeMidRidExtensions(mediaDescription) {
|
|
@@ -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
|
}
|