@livedigital/client 3.0.2 → 3.0.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "3.0.2",
5
+ "version": "3.0.3",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -88,7 +88,10 @@ class DefaultAudioTrack extends DefaultBaseTrack implements AudioTrack {
88
88
  return;
89
89
  }
90
90
 
91
- await this.replaceTrack(this.#originalTrack);
91
+ if (this.isPublished) {
92
+ await this.replaceTrack(this.#originalTrack);
93
+ }
94
+
92
95
  await this.#trackProcessor?.stopProcessing();
93
96
  } catch (error) {
94
97
  this.logger.warn('disableNoiseSuppression()', {
@@ -116,7 +116,10 @@ class DefaultVideoTrack extends DefaultBaseTrack implements VideoTrack {
116
116
  return;
117
117
  }
118
118
 
119
- await this.replaceTrack(this.#originalTrack);
119
+ if (this.isPublished) {
120
+ await this.replaceTrack(this.#originalTrack);
121
+ }
122
+
120
123
  this.#trackProcessor.stopProcessing();
121
124
  this.logger.info('disableBlur()', { track: this });
122
125
  } catch (error) {