@dcl/playground-assets 7.1.10-4896345180.commit-d9eebaf → 7.1.10-4897779046.commit-853bd22

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.1.10-4896345180.commit-d9eebaf",
4
+ "version": "7.1.10-4897779046.commit-853bd22",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "types": "./index.d.ts",
36
36
  "typings": "./index.d.ts",
37
- "commit": "d9eebafc8d639e411c44223414874e9d06423797"
37
+ "commit": "853bd22662d7996fa52755792237b79e2d465177"
38
38
  }
@@ -1159,6 +1159,7 @@ export declare const componentDefinitionByName: {
1159
1159
  "core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
1160
1160
  "core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
1161
1161
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
1162
+ "core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
1162
1163
  "core::VideoPlayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
1163
1164
  "core::VisibilityComponent": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
1164
1165
  };
@@ -4297,6 +4298,19 @@ export declare interface PBVector3 {
4297
4298
  z: number;
4298
4299
  }
4299
4300
 
4301
+ /**
4302
+ * @public
4303
+ */
4304
+ export declare interface PBVideoEvent {
4305
+ /** monotonic counter */
4306
+ timestamp: number;
4307
+ /** number of tick in which the event was produced, equals to EngineInfo.tick_number */
4308
+ tickNumber: number;
4309
+ currentOffset: number;
4310
+ videoLength: number;
4311
+ state: VideoState;
4312
+ }
4313
+
4300
4314
  /**
4301
4315
  * @public
4302
4316
  */
@@ -6368,9 +6382,47 @@ export declare type Vector3Type = {
6368
6382
  z: number;
6369
6383
  };
6370
6384
 
6385
+ /** @public */
6386
+ export declare const VideoEvent: GrowOnlyValueSetComponentDefinition<PBVideoEvent>;
6387
+
6388
+ /**
6389
+ * @public
6390
+ */
6391
+ export declare interface VideoEventsSystem {
6392
+ removeVideoEventsEntity(entity: Entity): void;
6393
+ registerVideoEventsEntity(entity: Entity, callback: VideoEventsSystemCallback): void;
6394
+ hasVideoEventsEntity(entity: Entity): boolean;
6395
+ }
6396
+
6397
+ /**
6398
+ * @alpha
6399
+ * @public
6400
+ * Register callback functions to a particular entity on video events.
6401
+ */
6402
+ export declare const videoEventsSystem: VideoEventsSystem;
6403
+
6404
+ /**
6405
+ * @public
6406
+ */
6407
+ export declare type VideoEventsSystemCallback = (event: DeepReadonlyObject<PBVideoEvent>) => void;
6408
+
6371
6409
  /** @public */
6372
6410
  export declare const VideoPlayer: LastWriteWinElementSetComponentDefinition<PBVideoPlayer>;
6373
6411
 
6412
+ /**
6413
+ * @public
6414
+ */
6415
+ export declare const enum VideoState {
6416
+ VS_NONE = 0,
6417
+ VS_ERROR = 1,
6418
+ VS_LOADING = 2,
6419
+ VS_READY = 3,
6420
+ VS_PLAYING = 4,
6421
+ VS_BUFFERING = 5,
6422
+ VS_SEEKING = 6,
6423
+ VS_PAUSED = 7
6424
+ }
6425
+
6374
6426
  /**
6375
6427
  * @public
6376
6428
  */