@thestatic-tv/dcl-sdk 2.5.5 → 2.5.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/index.js +7 -3
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3616,6 +3616,13 @@ var StaticTVClient = class {
|
|
|
3616
3616
|
});
|
|
3617
3617
|
});
|
|
3618
3618
|
}
|
|
3619
|
+
if (this.config.videoScreen !== void 0) {
|
|
3620
|
+
const fallbackUrl = this.config.fallbackVideoUrl !== void 0 ? this.config.fallbackVideoUrl : DEFAULT_FALLBACK_VIDEO;
|
|
3621
|
+
if (fallbackUrl !== "") {
|
|
3622
|
+
this._playVideoInternal(fallbackUrl, true, false);
|
|
3623
|
+
this.log(`Auto-playing fallback video: ${fallbackUrl}`);
|
|
3624
|
+
}
|
|
3625
|
+
}
|
|
3619
3626
|
this.log(`StaticTVClient initialized (${this._keyType} mode)`);
|
|
3620
3627
|
}
|
|
3621
3628
|
/** Get the API base URL (for internal module use) */
|
|
@@ -3806,9 +3813,6 @@ var StaticTVClient = class {
|
|
|
3806
3813
|
volume: 1
|
|
3807
3814
|
});
|
|
3808
3815
|
}
|
|
3809
|
-
import_ecs3.Material.setBasicMaterial(screen, {
|
|
3810
|
-
texture: import_ecs3.Material.Texture.Video({ videoPlayerEntity: screen })
|
|
3811
|
-
});
|
|
3812
3816
|
if (!this._videoEventsRegistered) {
|
|
3813
3817
|
this._registerVideoEvents();
|
|
3814
3818
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3449,7 +3449,7 @@ function setupStaticUI(client) {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
|
|
3451
3451
|
// src/StaticTVClient.ts
|
|
3452
|
-
import { VideoPlayer,
|
|
3452
|
+
import { VideoPlayer, videoEventsSystem, VideoState } from "@dcl/sdk/ecs";
|
|
3453
3453
|
import * as utils from "@dcl-sdk/utils";
|
|
3454
3454
|
var DEFAULT_BASE_URL = "https://thestatic.tv/api/v1/dcl";
|
|
3455
3455
|
var DEFAULT_FALLBACK_VIDEO = "https://media.thestatic.tv/fallback-loop.mp4";
|
|
@@ -3573,6 +3573,13 @@ var StaticTVClient = class {
|
|
|
3573
3573
|
});
|
|
3574
3574
|
});
|
|
3575
3575
|
}
|
|
3576
|
+
if (this.config.videoScreen !== void 0) {
|
|
3577
|
+
const fallbackUrl = this.config.fallbackVideoUrl !== void 0 ? this.config.fallbackVideoUrl : DEFAULT_FALLBACK_VIDEO;
|
|
3578
|
+
if (fallbackUrl !== "") {
|
|
3579
|
+
this._playVideoInternal(fallbackUrl, true, false);
|
|
3580
|
+
this.log(`Auto-playing fallback video: ${fallbackUrl}`);
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3576
3583
|
this.log(`StaticTVClient initialized (${this._keyType} mode)`);
|
|
3577
3584
|
}
|
|
3578
3585
|
/** Get the API base URL (for internal module use) */
|
|
@@ -3763,9 +3770,6 @@ var StaticTVClient = class {
|
|
|
3763
3770
|
volume: 1
|
|
3764
3771
|
});
|
|
3765
3772
|
}
|
|
3766
|
-
Material.setBasicMaterial(screen, {
|
|
3767
|
-
texture: Material.Texture.Video({ videoPlayerEntity: screen })
|
|
3768
|
-
});
|
|
3769
3773
|
if (!this._videoEventsRegistered) {
|
|
3770
3774
|
this._registerVideoEvents();
|
|
3771
3775
|
}
|
package/package.json
CHANGED