@webex/web-client-media-engine 3.11.4 → 3.11.5

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/esm/index.js CHANGED
@@ -14476,10 +14476,11 @@ class MultistreamConnection extends EventEmitter$2 {
14476
14476
  });
14477
14477
  jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
14478
14478
  logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
14479
- if (getMediaFamily(mediaType) === MediaFamily.Video) {
14480
- this.sendMediaRequestStatus(mediaType);
14481
- }
14482
- this.updateRequestedStreams(mediaType, data.requests);
14479
+ this.updateRequestedStreams(mediaType, data.requests).then(() => {
14480
+ if (getMediaFamily(mediaType) === MediaFamily.Video) {
14481
+ this.sendMediaRequestStatus(mediaType);
14482
+ }
14483
+ });
14483
14484
  });
14484
14485
  jmpSession.on(JmpSessionEvents.ActiveSpeaker, (data) => {
14485
14486
  this.emit(MultistreamConnectionEventNames.ActiveSpeakerNotification, data.csis);
@@ -14528,7 +14529,7 @@ class MultistreamConnection extends EventEmitter$2 {
14528
14529
  logger.warn(`${mediaType}: Unable to find matching stream ID for requested ID: ${JSON.stringify(id)}`);
14529
14530
  }
14530
14531
  });
14531
- sendTransceiver.updateSendParameters(requestedIdEncodingParamsMap);
14532
+ return sendTransceiver.updateSendParameters(requestedIdEncodingParamsMap);
14532
14533
  }
14533
14534
  createDataChannel() {
14534
14535
  const dataChannel = this.pc.createDataChannel('datachannel', {
@@ -14592,6 +14593,9 @@ class MultistreamConnection extends EventEmitter$2 {
14592
14593
  if (getMediaFamily(mediaType) !== MediaFamily.Video) {
14593
14594
  return;
14594
14595
  }
14596
+ if (!this.getSendTransceiverOrThrow(mediaType).requested) {
14597
+ return;
14598
+ }
14595
14599
  const streamStates = this.getVideoStreamStates(mediaType);
14596
14600
  const task = () => {
14597
14601
  var _a;