@stormstreaming/stormstreamer 1.0.7 → 1.0.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.0.8
4
+
5
+ Fix frozen video preview after detach/reattach to DOM tree.
6
+
3
7
  ## 1.0.7
4
8
 
5
9
  Fixed race condition in StageController where resize methods could fire after detach, causing "Cannot read properties of null" errors.
package/dist/amd/index.js CHANGED
@@ -4,8 +4,8 @@
4
4
  * contact@stormstreaming.com
5
5
  * https://stormstreaming.com
6
6
  *
7
- * Version: 1.0.7
8
- * Version: 2/24/2026, 9:59:15 AM
7
+ * Version: 1.0.8
8
+ * Version: 2/24/2026, 4:44:50 PM
9
9
  *
10
10
  * LEGAL NOTICE:
11
11
  * This software is subject to the terms and conditions defined in
@@ -2914,6 +2914,12 @@
2914
2914
  if (this._debug) this._logger.decoratedLog("Attach To Parent: " + container + " (success)", "dark-pink");
2915
2915
  this._parentElement = tempParentElement;
2916
2916
  this._parentElement.appendChild(this._videoContainer);
2917
+ if (this._screenElement) {
2918
+ const videoElement = this._screenElement.getVideoElement();
2919
+ if (videoElement === null || videoElement === void 0 ? void 0 : videoElement.srcObject) {
2920
+ videoElement.play().catch(() => {});
2921
+ }
2922
+ }
2917
2923
  this._resizeObserver.observe(this._parentElement);
2918
2924
  // FIX: użyj zapisanego handlera zamiast anonimowej funkcji
2919
2925
  this._parentElement.addEventListener("transitionend", this._transitionEndHandler);
@@ -6769,8 +6775,8 @@
6769
6775
  constructor(streamConfig, autoInitialize = false) {
6770
6776
  super();
6771
6777
  this.DEV_MODE = true;
6772
- this.STREAMER_VERSION = "1.0.7";
6773
- this.COMPILE_DATE = "2/24/2026, 9:59:13 AM";
6778
+ this.STREAMER_VERSION = "1.0.8";
6779
+ this.COMPILE_DATE = "2/24/2026, 4:44:48 PM";
6774
6780
  this.STREAMER_BRANCH = "Experimental";
6775
6781
  this.STREAMER_PROTOCOL_VERSION = 1;
6776
6782
  this._initialized = false;