@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/cjs/index.js +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -10666,7 +10666,18 @@ class Transceiver {
|
|
|
10666
10666
|
return this._rtcRtpTransceiver.sender;
|
|
10667
10667
|
}
|
|
10668
10668
|
close() {
|
|
10669
|
-
|
|
10669
|
+
try {
|
|
10670
|
+
this._rtcRtpTransceiver.stop();
|
|
10671
|
+
}
|
|
10672
|
+
catch (error) {
|
|
10673
|
+
if (error instanceof DOMException && error.name === 'InvalidStateError') {
|
|
10674
|
+
logger.warn('Peer connection is already closed, skipping call to RTCRtpTransceiver.stop()');
|
|
10675
|
+
}
|
|
10676
|
+
else {
|
|
10677
|
+
logger.error('An unexpected error occurred while stopping the RTCRtpTransceiver:', error);
|
|
10678
|
+
throw error;
|
|
10679
|
+
}
|
|
10680
|
+
}
|
|
10670
10681
|
}
|
|
10671
10682
|
}
|
|
10672
10683
|
|