@needle-tools/engine 4.16.6 → 4.16.7

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.
@@ -1986,11 +1986,11 @@ Ro('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
1986
1986
  Ro('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
1987
1987
  Ro('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
1988
1988
  Ro('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
1989
- Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.16.6";');
1989
+ Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.16.7";');
1990
1990
  Ro('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1991
- Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Mar 20 2026 16:57:12 GMT+0000 (Coordinated Universal Time)";');
1991
+ Ro('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Mar 25 2026 16:51:04 GMT+0000 (Coordinated Universal Time)";');
1992
1992
  Ro('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
1993
- const qi = "4.16.6", Tc = "undefined", Fd = "Fri Mar 20 2026 16:57:12 GMT+0000 (Coordinated Universal Time)";
1993
+ const qi = "4.16.7", Tc = "undefined", Fd = "Wed Mar 25 2026 16:51:04 GMT+0000 (Coordinated Universal Time)";
1994
1994
  n0 && console.log(`Engine version: ${qi} (generator: ${Tc})
1995
1995
  Project built at ${Fd}`);
1996
1996
  const gr = NEEDLE_PUBLIC_KEY, vs = "needle_isActiveInHierarchy", da = "builtin_components", hd = "needle_editor_guid";
@@ -36600,6 +36600,7 @@ class yt extends R {
36600
36600
  e.key === "f" && (this.screenspace = !this.screenspace);
36601
36601
  });
36602
36602
  }
36603
+ _playErrors = 0;
36603
36604
  /** start playing the video source */
36604
36605
  play() {
36605
36606
  if (this._videoElement || this.create(!1), !this._videoElement) {
@@ -36612,7 +36613,7 @@ class yt extends R {
36612
36613
  return;
36613
36614
  }
36614
36615
  Ke && console.log("Video Play()", this.clip, this._videoElement, this.time), this._videoElement.currentTime = this.time, this._videoElement.play().catch((e) => {
36615
- console.log(e), Ke && console.error("Error playing video", e, "CODE=" + e.code, this.videoElement?.src, this), setTimeout(() => {
36616
+ this._playErrors++ < 10 ? console.error(e) : this._playErrors === 10 && console.error("Multiple errors playing video, further errors will be suppressed. Use 'debugvideo' param to see all errors."), Ke && console.error("Error playing video", e, "CODE=" + e.code, this.videoElement?.src, this), setTimeout(() => {
36616
36617
  this._isPlaying && !this.destroyed && this.activeAndEnabled && this.play();
36617
36618
  }, 1e3);
36618
36619
  }), Ke && console.log("play", this._videoElement, this.time);