@dcl/playground-assets 7.0.6-4077633874.commit-07aedd3 → 7.0.6-4078495586.commit-3336b11

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/alpha.d.ts CHANGED
@@ -3489,6 +3489,24 @@ export declare interface PBVector3 {
3489
3489
  z: number;
3490
3490
  }
3491
3491
 
3492
+ /**
3493
+ * @public
3494
+ */
3495
+ export declare interface PBVideoPlayer {
3496
+ /** which file to load */
3497
+ src: string;
3498
+ /** default true */
3499
+ playing?: boolean | undefined;
3500
+ /** default 0.0 */
3501
+ position?: number | undefined;
3502
+ /** default 1.0 */
3503
+ volume?: number | undefined;
3504
+ /** default 1.0 */
3505
+ playbackRate?: number | undefined;
3506
+ /** default false */
3507
+ loop?: boolean | undefined;
3508
+ }
3509
+
3492
3510
  /**
3493
3511
  * @public
3494
3512
  */
@@ -4396,6 +4414,10 @@ export declare interface TextureHelper {
4396
4414
  * @returns the avatar texture of userId specified
4397
4415
  */
4398
4416
  Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
4417
+ /**
4418
+ * @returns the video texture of videoPlayerEntity specified
4419
+ */
4420
+ Video: (videoTexture: VideoTexture) => TextureUnion;
4399
4421
  }
4400
4422
 
4401
4423
  /**
@@ -4424,6 +4446,9 @@ export declare interface TextureUnion {
4424
4446
  } | {
4425
4447
  $case: "avatarTexture";
4426
4448
  avatarTexture: AvatarTexture;
4449
+ } | {
4450
+ $case: "videoTexture";
4451
+ videoTexture: VideoTexture;
4427
4452
  };
4428
4453
  }
4429
4454
 
@@ -5304,6 +5329,20 @@ export declare type Vector3Type = {
5304
5329
  z: number;
5305
5330
  };
5306
5331
 
5332
+ /** @public */
5333
+ export declare const VideoPlayer: ComponentDefinition<PBVideoPlayer>;
5334
+
5335
+ /**
5336
+ * @public
5337
+ */
5338
+ export declare interface VideoTexture {
5339
+ videoPlayerEntity: number;
5340
+ /** default = TextureWrapMode.Clamp */
5341
+ wrapMode?: TextureWrapMode | undefined;
5342
+ /** default = FilterMode.Bilinear */
5343
+ filterMode?: TextureFilterMode | undefined;
5344
+ }
5345
+
5307
5346
  /** @public */
5308
5347
  export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
5309
5348
 
package/dist/beta.d.ts CHANGED
@@ -3485,6 +3485,24 @@ export declare interface PBVector3 {
3485
3485
  z: number;
3486
3486
  }
3487
3487
 
3488
+ /**
3489
+ * @public
3490
+ */
3491
+ export declare interface PBVideoPlayer {
3492
+ /** which file to load */
3493
+ src: string;
3494
+ /** default true */
3495
+ playing?: boolean | undefined;
3496
+ /** default 0.0 */
3497
+ position?: number | undefined;
3498
+ /** default 1.0 */
3499
+ volume?: number | undefined;
3500
+ /** default 1.0 */
3501
+ playbackRate?: number | undefined;
3502
+ /** default false */
3503
+ loop?: boolean | undefined;
3504
+ }
3505
+
3488
3506
  /**
3489
3507
  * @public
3490
3508
  */
@@ -4392,6 +4410,10 @@ export declare interface TextureHelper {
4392
4410
  * @returns the avatar texture of userId specified
4393
4411
  */
4394
4412
  Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
4413
+ /**
4414
+ * @returns the video texture of videoPlayerEntity specified
4415
+ */
4416
+ Video: (videoTexture: VideoTexture) => TextureUnion;
4395
4417
  }
4396
4418
 
4397
4419
  /**
@@ -4420,6 +4442,9 @@ export declare interface TextureUnion {
4420
4442
  } | {
4421
4443
  $case: "avatarTexture";
4422
4444
  avatarTexture: AvatarTexture;
4445
+ } | {
4446
+ $case: "videoTexture";
4447
+ videoTexture: VideoTexture;
4423
4448
  };
4424
4449
  }
4425
4450
 
@@ -5300,6 +5325,20 @@ export declare type Vector3Type = {
5300
5325
  z: number;
5301
5326
  };
5302
5327
 
5328
+ /** @public */
5329
+ export declare const VideoPlayer: ComponentDefinition<PBVideoPlayer>;
5330
+
5331
+ /**
5332
+ * @public
5333
+ */
5334
+ export declare interface VideoTexture {
5335
+ videoPlayerEntity: number;
5336
+ /** default = TextureWrapMode.Clamp */
5337
+ wrapMode?: TextureWrapMode | undefined;
5338
+ /** default = FilterMode.Bilinear */
5339
+ filterMode?: TextureFilterMode | undefined;
5340
+ }
5341
+
5303
5342
  /** @public */
5304
5343
  export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
5305
5344
 
@@ -3485,6 +3485,24 @@ export declare interface PBVector3 {
3485
3485
  z: number;
3486
3486
  }
3487
3487
 
3488
+ /**
3489
+ * @public
3490
+ */
3491
+ export declare interface PBVideoPlayer {
3492
+ /** which file to load */
3493
+ src: string;
3494
+ /** default true */
3495
+ playing?: boolean | undefined;
3496
+ /** default 0.0 */
3497
+ position?: number | undefined;
3498
+ /** default 1.0 */
3499
+ volume?: number | undefined;
3500
+ /** default 1.0 */
3501
+ playbackRate?: number | undefined;
3502
+ /** default false */
3503
+ loop?: boolean | undefined;
3504
+ }
3505
+
3488
3506
  /**
3489
3507
  * @public
3490
3508
  */
@@ -4392,6 +4410,10 @@ export declare interface TextureHelper {
4392
4410
  * @returns the avatar texture of userId specified
4393
4411
  */
4394
4412
  Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
4413
+ /**
4414
+ * @returns the video texture of videoPlayerEntity specified
4415
+ */
4416
+ Video: (videoTexture: VideoTexture) => TextureUnion;
4395
4417
  }
4396
4418
 
4397
4419
  /**
@@ -4420,6 +4442,9 @@ export declare interface TextureUnion {
4420
4442
  } | {
4421
4443
  $case: "avatarTexture";
4422
4444
  avatarTexture: AvatarTexture;
4445
+ } | {
4446
+ $case: "videoTexture";
4447
+ videoTexture: VideoTexture;
4423
4448
  };
4424
4449
  }
4425
4450
 
@@ -5300,6 +5325,20 @@ export declare type Vector3Type = {
5300
5325
  z: number;
5301
5326
  };
5302
5327
 
5328
+ /** @public */
5329
+ export declare const VideoPlayer: ComponentDefinition<PBVideoPlayer>;
5330
+
5331
+ /**
5332
+ * @public
5333
+ */
5334
+ export declare interface VideoTexture {
5335
+ videoPlayerEntity: number;
5336
+ /** default = TextureWrapMode.Clamp */
5337
+ wrapMode?: TextureWrapMode | undefined;
5338
+ /** default = FilterMode.Bilinear */
5339
+ filterMode?: TextureFilterMode | undefined;
5340
+ }
5341
+
5303
5342
  /** @public */
5304
5343
  export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
5305
5344
 
package/dist/index.js CHANGED
@@ -9869,6 +9869,52 @@
9869
9869
  return message;
9870
9870
  },
9871
9871
  };
9872
+ function createBaseVideoTexture() {
9873
+ return { videoPlayerEntity: 0, wrapMode: undefined, filterMode: undefined };
9874
+ }
9875
+ /**
9876
+ * @public
9877
+ */
9878
+ /**
9879
+ * @internal
9880
+ */
9881
+ const VideoTexture = {
9882
+ encode(message, writer = _m0.Writer.create()) {
9883
+ if (message.videoPlayerEntity !== 0) {
9884
+ writer.uint32(8).uint32(message.videoPlayerEntity);
9885
+ }
9886
+ if (message.wrapMode !== undefined) {
9887
+ writer.uint32(16).int32(message.wrapMode);
9888
+ }
9889
+ if (message.filterMode !== undefined) {
9890
+ writer.uint32(24).int32(message.filterMode);
9891
+ }
9892
+ return writer;
9893
+ },
9894
+ decode(input, length) {
9895
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
9896
+ let end = length === undefined ? reader.len : reader.pos + length;
9897
+ const message = createBaseVideoTexture();
9898
+ while (reader.pos < end) {
9899
+ const tag = reader.uint32();
9900
+ switch (tag >>> 3) {
9901
+ case 1:
9902
+ message.videoPlayerEntity = reader.uint32();
9903
+ break;
9904
+ case 2:
9905
+ message.wrapMode = reader.int32();
9906
+ break;
9907
+ case 3:
9908
+ message.filterMode = reader.int32();
9909
+ break;
9910
+ default:
9911
+ reader.skipType(tag & 7);
9912
+ break;
9913
+ }
9914
+ }
9915
+ return message;
9916
+ },
9917
+ };
9872
9918
  function createBaseTextureUnion() {
9873
9919
  return { tex: undefined };
9874
9920
  }
@@ -9886,6 +9932,9 @@
9886
9932
  if (message.tex?.$case === "avatarTexture") {
9887
9933
  AvatarTexture.encode(message.tex.avatarTexture, writer.uint32(18).fork()).ldelim();
9888
9934
  }
9935
+ if (message.tex?.$case === "videoTexture") {
9936
+ VideoTexture.encode(message.tex.videoTexture, writer.uint32(26).fork()).ldelim();
9937
+ }
9889
9938
  return writer;
9890
9939
  },
9891
9940
  decode(input, length) {
@@ -9901,6 +9950,9 @@
9901
9950
  case 2:
9902
9951
  message.tex = { $case: "avatarTexture", avatarTexture: AvatarTexture.decode(reader, reader.uint32()) };
9903
9952
  break;
9953
+ case 3:
9954
+ message.tex = { $case: "videoTexture", videoTexture: VideoTexture.decode(reader, reader.uint32()) };
9955
+ break;
9904
9956
  default:
9905
9957
  reader.skipType(tag & 7);
9906
9958
  break;
@@ -12555,6 +12607,98 @@
12555
12607
  }
12556
12608
  };
12557
12609
 
12610
+ /* eslint-disable */
12611
+ function createBasePBVideoPlayer() {
12612
+ return {
12613
+ src: "",
12614
+ playing: undefined,
12615
+ position: undefined,
12616
+ volume: undefined,
12617
+ playbackRate: undefined,
12618
+ loop: undefined,
12619
+ };
12620
+ }
12621
+ /**
12622
+ * @public
12623
+ */
12624
+ /**
12625
+ * @internal
12626
+ */
12627
+ const PBVideoPlayer = {
12628
+ encode(message, writer = _m0.Writer.create()) {
12629
+ if (message.src !== "") {
12630
+ writer.uint32(10).string(message.src);
12631
+ }
12632
+ if (message.playing !== undefined) {
12633
+ writer.uint32(16).bool(message.playing);
12634
+ }
12635
+ if (message.position !== undefined) {
12636
+ writer.uint32(29).float(message.position);
12637
+ }
12638
+ if (message.volume !== undefined) {
12639
+ writer.uint32(37).float(message.volume);
12640
+ }
12641
+ if (message.playbackRate !== undefined) {
12642
+ writer.uint32(45).float(message.playbackRate);
12643
+ }
12644
+ if (message.loop !== undefined) {
12645
+ writer.uint32(48).bool(message.loop);
12646
+ }
12647
+ return writer;
12648
+ },
12649
+ decode(input, length) {
12650
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
12651
+ let end = length === undefined ? reader.len : reader.pos + length;
12652
+ const message = createBasePBVideoPlayer();
12653
+ while (reader.pos < end) {
12654
+ const tag = reader.uint32();
12655
+ switch (tag >>> 3) {
12656
+ case 1:
12657
+ message.src = reader.string();
12658
+ break;
12659
+ case 2:
12660
+ message.playing = reader.bool();
12661
+ break;
12662
+ case 3:
12663
+ message.position = reader.float();
12664
+ break;
12665
+ case 4:
12666
+ message.volume = reader.float();
12667
+ break;
12668
+ case 5:
12669
+ message.playbackRate = reader.float();
12670
+ break;
12671
+ case 6:
12672
+ message.loop = reader.bool();
12673
+ break;
12674
+ default:
12675
+ reader.skipType(tag & 7);
12676
+ break;
12677
+ }
12678
+ }
12679
+ return message;
12680
+ },
12681
+ };
12682
+
12683
+ /**
12684
+ * @internal
12685
+ */
12686
+ const VideoPlayerSchema = {
12687
+ COMPONENT_ID: 1043,
12688
+ serialize(value, builder) {
12689
+ const writer = PBVideoPlayer.encode(value);
12690
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
12691
+ builder.writeBuffer(buffer, false);
12692
+ },
12693
+ deserialize(reader) {
12694
+ return PBVideoPlayer.decode(reader.buffer(), reader.remainingBytes());
12695
+ },
12696
+ create() {
12697
+ // TODO: this is a hack.
12698
+ return PBVideoPlayer.decode(new Uint8Array());
12699
+ }
12700
+ };
12701
+
12558
12702
  /* eslint-disable */
12559
12703
  function createBasePBVisibilityComponent() {
12560
12704
  return { visible: undefined };
@@ -12637,6 +12781,7 @@
12637
12781
  /** @public */ const UiInputResult$1 = engine => engine.defineComponentFromSchema("core::UiInputResult", UiInputResultSchema);
12638
12782
  /** @public */ const UiText$1 = engine => engine.defineComponentFromSchema("core::UiText", UiTextSchema);
12639
12783
  /** @public */ const UiTransform$1 = engine => engine.defineComponentFromSchema("core::UiTransform", UiTransformSchema);
12784
+ /** @public */ const VideoPlayer$1 = engine => engine.defineComponentFromSchema("core::VideoPlayer", VideoPlayerSchema);
12640
12785
  /** @public */ const VisibilityComponent$1 = engine => engine.defineComponentFromSchema("core::VisibilityComponent", VisibilityComponentSchema);
12641
12786
 
12642
12787
  function defineAnimatorComponent(engine) {
@@ -12713,6 +12858,14 @@
12713
12858
  avatarTexture
12714
12859
  }
12715
12860
  };
12861
+ },
12862
+ Video(videoTexture) {
12863
+ return {
12864
+ tex: {
12865
+ $case: 'videoTexture',
12866
+ videoTexture
12867
+ }
12868
+ };
12716
12869
  }
12717
12870
  };
12718
12871
  function defineMaterialComponent(engine) {
@@ -12951,6 +13104,7 @@
12951
13104
  PBUiInputResult: PBUiInputResult,
12952
13105
  PBUiText: PBUiText,
12953
13106
  PBUiTransform: PBUiTransform,
13107
+ PBVideoPlayer: PBVideoPlayer,
12954
13108
  PBVisibilityComponent: PBVisibilityComponent,
12955
13109
  get PointerEventType () { return exports.PointerEventType; },
12956
13110
  PointerEvents: PointerEvents$1,
@@ -12969,6 +13123,7 @@
12969
13123
  UiInputResult: UiInputResult$1,
12970
13124
  UiText: UiText$1,
12971
13125
  UiTransform: UiTransform$1,
13126
+ VideoPlayer: VideoPlayer$1,
12972
13127
  VisibilityComponent: VisibilityComponent$1,
12973
13128
  get YGAlign () { return exports.YGAlign; },
12974
13129
  get YGDisplay () { return exports.YGDisplay; },
@@ -13013,6 +13168,7 @@
13013
13168
  "core::UiInputResult": 1095,
13014
13169
  "core::UiText": 1052,
13015
13170
  "core::UiTransform": 1050,
13171
+ "core::VideoPlayer": 1043,
13016
13172
  "core::VisibilityComponent": 1081
13017
13173
  };
13018
13174
 
@@ -15567,6 +15723,7 @@
15567
15723
  /** @public */ const UiInputResult = UiInputResult$1(engine);
15568
15724
  /** @public */ const UiText = UiText$1(engine);
15569
15725
  /** @public */ const UiTransform = UiTransform$1(engine);
15726
+ /** @public */ const VideoPlayer = VideoPlayer$1(engine);
15570
15727
  /** @public */ const VisibilityComponent = VisibilityComponent$1(engine);
15571
15728
 
15572
15729
  /* eslint-disable */
@@ -42285,6 +42442,7 @@
42285
42442
  exports.PBUiInputResult = PBUiInputResult;
42286
42443
  exports.PBUiText = PBUiText;
42287
42444
  exports.PBUiTransform = PBUiTransform;
42445
+ exports.PBVideoPlayer = PBVideoPlayer;
42288
42446
  exports.PBVisibilityComponent = PBVisibilityComponent;
42289
42447
  exports.PointerEvents = PointerEvents;
42290
42448
  exports.PointerEventsResult = PointerEventsResult;
@@ -42310,6 +42468,8 @@
42310
42468
  exports.UiInputResult = UiInputResult;
42311
42469
  exports.UiText = UiText;
42312
42470
  exports.UiTransform = UiTransform;
42471
+ exports.VideoPlayer = VideoPlayer;
42472
+ exports.VideoTexture = VideoTexture;
42313
42473
  exports.VisibilityComponent = VisibilityComponent;
42314
42474
  exports.components = index;
42315
42475
  exports.createComponentDefinitionFromSchema = createComponentDefinitionFromSchema;