@webex/web-client-media-engine 3.28.1 → 3.28.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/esm/index.js CHANGED
@@ -10662,7 +10662,18 @@ class Transceiver {
10662
10662
  return this._rtcRtpTransceiver.sender;
10663
10663
  }
10664
10664
  close() {
10665
- this._rtcRtpTransceiver.stop();
10665
+ try {
10666
+ this._rtcRtpTransceiver.stop();
10667
+ }
10668
+ catch (error) {
10669
+ if (error instanceof DOMException && error.name === 'InvalidStateError') {
10670
+ logger.warn('Peer connection is already closed, skipping call to RTCRtpTransceiver.stop()');
10671
+ }
10672
+ else {
10673
+ logger.error('An unexpected error occurred while stopping the RTCRtpTransceiver:', error);
10674
+ throw error;
10675
+ }
10676
+ }
10666
10677
  }
10667
10678
  }
10668
10679