@thestatic-tv/dcl-sdk 2.5.4 → 2.5.5

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 CHANGED
@@ -3793,15 +3793,19 @@ var StaticTVClient = class {
3793
3793
  this._clearVerificationTimeout();
3794
3794
  this._streamVerified = false;
3795
3795
  if (import_ecs3.VideoPlayer.has(screen)) {
3796
- import_ecs3.VideoPlayer.deleteFrom(screen);
3796
+ const player = import_ecs3.VideoPlayer.getMutable(screen);
3797
+ player.src = url;
3798
+ player.playing = true;
3799
+ player.loop = isFallback;
3800
+ player.volume = 1;
3801
+ } else {
3802
+ import_ecs3.VideoPlayer.create(screen, {
3803
+ src: url,
3804
+ playing: true,
3805
+ loop: isFallback,
3806
+ volume: 1
3807
+ });
3797
3808
  }
3798
- import_ecs3.VideoPlayer.create(screen, {
3799
- src: url,
3800
- playing: true,
3801
- loop: isFallback,
3802
- // Loop fallback videos
3803
- volume: 1
3804
- });
3805
3809
  import_ecs3.Material.setBasicMaterial(screen, {
3806
3810
  texture: import_ecs3.Material.Texture.Video({ videoPlayerEntity: screen })
3807
3811
  });
package/dist/index.mjs CHANGED
@@ -3750,15 +3750,19 @@ var StaticTVClient = class {
3750
3750
  this._clearVerificationTimeout();
3751
3751
  this._streamVerified = false;
3752
3752
  if (VideoPlayer.has(screen)) {
3753
- VideoPlayer.deleteFrom(screen);
3753
+ const player = VideoPlayer.getMutable(screen);
3754
+ player.src = url;
3755
+ player.playing = true;
3756
+ player.loop = isFallback;
3757
+ player.volume = 1;
3758
+ } else {
3759
+ VideoPlayer.create(screen, {
3760
+ src: url,
3761
+ playing: true,
3762
+ loop: isFallback,
3763
+ volume: 1
3764
+ });
3754
3765
  }
3755
- VideoPlayer.create(screen, {
3756
- src: url,
3757
- playing: true,
3758
- loop: isFallback,
3759
- // Loop fallback videos
3760
- volume: 1
3761
- });
3762
3766
  Material.setBasicMaterial(screen, {
3763
3767
  texture: Material.Texture.Video({ videoPlayerEntity: screen })
3764
3768
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Connect your Decentraland scene to thestatic.tv - full channel lineup, metrics tracking, and interactions",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",