@taole/giftstage 0.1.29 → 0.1.31

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,14 +1,12 @@
1
1
  import type { GPUBackend, GiftSlot } from '../types';
2
2
  export declare class ImageRenderer {
3
- private webglQuadVB;
4
- private topLeftQuadVB;
3
+ private quadVB;
5
4
  private quadIB;
6
5
  private readonly scratchTransform;
7
6
  private projCacheW;
8
7
  private projCacheH;
9
8
  private projCache;
10
- private static readonly QUAD_VERTS_WEBGL;
11
- private static readonly QUAD_VERTS_TOP_LEFT;
9
+ private static readonly QUAD_VERTS;
12
10
  private static readonly QUAD_INDICES;
13
11
  drawSlot(backend: GPUBackend, slot: GiftSlot): void;
14
12
  destroy(backend: GPUBackend): void;
@@ -560,6 +560,10 @@ export interface GiftSlot {
560
560
  loopCount: number;
561
561
  videoEntity: VideoEntity | null;
562
562
  loadAbortController?: AbortController | null;
563
+ /** HTMLVideoElement finite-playback watchdog; cleared on normal completion or resource release. */
564
+ videoPlaybackWatchdogTimer?: ReturnType<typeof setTimeout> | null;
565
+ /** Guards the HTMLVideo ended/watchdog race so completion is dispatched exactly once. */
566
+ videoPlaybackCompletionStarted?: boolean;
563
567
  svgaSlotTextures?: Map<string, ResolvedSVGASlotTexture>;
564
568
  videoElement: HTMLVideoElement | null;
565
569
  releaseMediaSource?: (() => void) | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/giftstage",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "High-performance WebGPU/WebGL gift animation player unifying SVGA, VAP, AlphaVideo, and images",
5
5
  "type": "module",
6
6
  "main": "dist/gift-stage.cjs.js",