@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/cjs/index.js CHANGED
@@ -14480,10 +14480,11 @@ class MultistreamConnection extends EventEmitter$2 {
14480
14480
  });
14481
14481
  jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
14482
14482
  logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
14483
- if (getMediaFamily(mediaType) === exports.MediaFamily.Video) {
14484
- this.sendMediaRequestStatus(mediaType);
14485
- }
14486
- this.updateRequestedStreams(mediaType, data.requests);
14483
+ this.updateRequestedStreams(mediaType, data.requests).then(() => {
14484
+ if (getMediaFamily(mediaType) === exports.MediaFamily.Video) {
14485
+ this.sendMediaRequestStatus(mediaType);
14486
+ }
14487
+ });
14487
14488
  });
14488
14489
  jmpSession.on(JmpSessionEvents.ActiveSpeaker, (data) => {
14489
14490
  this.emit(exports.MultistreamConnectionEventNames.ActiveSpeakerNotification, data.csis);
@@ -14532,7 +14533,7 @@ class MultistreamConnection extends EventEmitter$2 {
14532
14533
  logger.warn(`${mediaType}: Unable to find matching stream ID for requested ID: ${JSON.stringify(id)}`);
14533
14534
  }
14534
14535
  });
14535
- sendTransceiver.updateSendParameters(requestedIdEncodingParamsMap);
14536
+ return sendTransceiver.updateSendParameters(requestedIdEncodingParamsMap);
14536
14537
  }
14537
14538
  createDataChannel() {
14538
14539
  const dataChannel = this.pc.createDataChannel('datachannel', {
@@ -14596,6 +14597,9 @@ class MultistreamConnection extends EventEmitter$2 {
14596
14597
  if (getMediaFamily(mediaType) !== exports.MediaFamily.Video) {
14597
14598
  return;
14598
14599
  }
14600
+ if (!this.getSendTransceiverOrThrow(mediaType).requested) {
14601
+ return;
14602
+ }
14599
14603
  const streamStates = this.getVideoStreamStates(mediaType);
14600
14604
  const task = () => {
14601
14605
  var _a;