@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.
- package/dist/{needle-engine.bundle-BN_X4iTv.js → needle-engine.bundle-D6p-PpmA.js} +5 -4
- package/dist/{needle-engine.bundle-D-slQEcs.umd.cjs → needle-engine.bundle-Di5GTT8l.umd.cjs} +68 -68
- package/dist/{needle-engine.bundle-DY-lNV9M.min.js → needle-engine.bundle-gapmFknJ.min.js} +2 -2
- package/dist/needle-engine.d.ts +16 -15
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine-components/VideoPlayer.d.ts +1 -0
- package/lib/engine-components/VideoPlayer.js +5 -1
- package/lib/engine-components/VideoPlayer.js.map +1 -1
- package/package.json +1 -1
- package/plugins/vite/build-pipeline.js +16 -6
- package/src/engine-components/VideoPlayer.ts +4 -1
|
@@ -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.
|
|
1989
|
+
Ro('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.16.7";');
|
|
1990
1990
|
Ro('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1991
|
-
Ro('globalThis["__NEEDLE_PROJECT_BUILD_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.
|
|
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.
|
|
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);
|