@webex/web-client-media-engine 1.34.0 → 1.34.1

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/LICENSE.md CHANGED
@@ -1,3 +1,3 @@
1
1
  Copyright (c) 2022 Cisco Systems, Inc. and/or its affiliated entities.
2
2
 
3
- Your use of the Web Client Media Engine is subject to the Cisco End User License Agreement located at: https://www.cisco.com/c/dam/en_us/about/doing_business/legal/eula/cisco_end_user_license_agreement-eng.pdf
3
+ Your use of the web-client-media-engine (WCME) is subject to the Cisco End User License Agreement located at: https://www.cisco.com/c/dam/en_us/about/doing_business/legal/eula/cisco_end_user_license_agreement-eng.pdf
package/dist/cjs/index.js CHANGED
@@ -1154,7 +1154,12 @@ class LocalTrack extends EventEmitter$2 {
1154
1154
  * Cleanup local microphone track.
1155
1155
  */
1156
1156
  disposeEffects() {
1157
- this.effects.forEach((effect) => effect.dispose());
1157
+ if (this.effects.size > 0) {
1158
+ this.effects.forEach((effect) => effect.dispose());
1159
+ this.effects.clear();
1160
+ this.underlyingStream = this.originalStream;
1161
+ this.emit(exports.LocalTrackEvents.UnderlyingTrackChange);
1162
+ }
1158
1163
  }
1159
1164
  }
1160
1165
  LocalTrack.Events = exports.LocalTrackEvents;