@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/esm/index.js CHANGED
@@ -9645,10 +9645,17 @@ class MultistreamConnection extends EventEmitter {
9645
9645
  : [{ active: false }];
9646
9646
  }
9647
9647
  createSendTransceiver(mediaType, sceneId, sendEncodingsOptions) {
9648
- const rtcTransceiver = this.pc.addTransceiver(toMediaStreamTrackKind(mediaType), {
9649
- direction: 'sendrecv',
9650
- sendEncodings: sendEncodingsOptions,
9651
- });
9648
+ let rtcTransceiver;
9649
+ try {
9650
+ rtcTransceiver = this.pc.addTransceiver(toMediaStreamTrackKind(mediaType), {
9651
+ direction: 'sendrecv',
9652
+ sendEncodings: sendEncodingsOptions,
9653
+ });
9654
+ }
9655
+ catch (e) {
9656
+ logger.error(`addTransceiver failed due to : ${e}`);
9657
+ throw e;
9658
+ }
9652
9659
  this.addMid(mediaType);
9653
9660
  const csi = generateCsi(getMediaFamily(mediaType), sceneId);
9654
9661
  this.sendTransceivers.set(mediaType, new SendOnlyTransceiver(rtcTransceiver, csi));