@webex/web-client-media-engine 1.37.4 → 1.37.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
@@ -9649,10 +9649,17 @@ class MultistreamConnection extends EventEmitter {
9649
9649
  : [{ active: false }];
9650
9650
  }
9651
9651
  createSendTransceiver(mediaType, sceneId, sendEncodingsOptions) {
9652
- const rtcTransceiver = this.pc.addTransceiver(toMediaStreamTrackKind(mediaType), {
9653
- direction: 'sendrecv',
9654
- sendEncodings: sendEncodingsOptions,
9655
- });
9652
+ let rtcTransceiver;
9653
+ try {
9654
+ rtcTransceiver = this.pc.addTransceiver(toMediaStreamTrackKind(mediaType), {
9655
+ direction: 'sendrecv',
9656
+ sendEncodings: sendEncodingsOptions,
9657
+ });
9658
+ }
9659
+ catch (e) {
9660
+ logger.error(`addTransceiver failed due to : ${e}`);
9661
+ throw e;
9662
+ }
9656
9663
  this.addMid(mediaType);
9657
9664
  const csi = generateCsi(getMediaFamily(mediaType), sceneId);
9658
9665
  this.sendTransceivers.set(mediaType, new SendOnlyTransceiver(rtcTransceiver, csi));