@hyperframes/player 0.8.205 → 0.8.207

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.
@@ -12,20 +12,20 @@ interface ProxyEntry {
12
12
  el: HTMLMediaElement;
13
13
  start: number;
14
14
  duration: number;
15
+ /** Where in the file the clip begins (`data-media-start`); the proxy plays `t - start + mediaStart`. */
16
+ mediaStart: number;
15
17
  /**
16
18
  * The iframe media element this proxy mirrors, when adopted from the DOM.
17
19
  * Its `data-start`/`data-duration` are re-read each tick so live timeline
18
20
  * edits (trim/move) bound the proxy correctly. Null for URL-driven proxies.
19
21
  */
20
22
  source?: HTMLMediaElement | null;
21
- /**
22
- * Count of consecutive steady-state samples in which the proxy's
23
- * `currentTime` was found drifted beyond `MIRROR_DRIFT_THRESHOLD_SECONDS`.
24
- * Reset on every in-threshold sample. A write is only issued once this
25
- * reaches `MIRROR_REQUIRED_CONSECUTIVE_DRIFT_SAMPLES`, absorbing
26
- * single-sample jitter without thrashing.
27
- */
28
- driftSamples: number;
23
+ /** The offset behind the timeline (+) at the last drift sample; steering is only trusted when it stopped growing. */
24
+ lastOffset?: number;
25
+ /** Seconds a seek of this playing proxy takes to land (smoothed); a seek aims this far ahead so it lands on time. */
26
+ seekLatency?: number;
27
+ /** When the seek still landing was issued (ms); unset when none is pending. */
28
+ seekIssuedAt?: number;
29
29
  }
30
30
 
31
31
  type ShaderLoadingMode = "composition" | "player" | "none";
@@ -12,20 +12,20 @@ interface ProxyEntry {
12
12
  el: HTMLMediaElement;
13
13
  start: number;
14
14
  duration: number;
15
+ /** Where in the file the clip begins (`data-media-start`); the proxy plays `t - start + mediaStart`. */
16
+ mediaStart: number;
15
17
  /**
16
18
  * The iframe media element this proxy mirrors, when adopted from the DOM.
17
19
  * Its `data-start`/`data-duration` are re-read each tick so live timeline
18
20
  * edits (trim/move) bound the proxy correctly. Null for URL-driven proxies.
19
21
  */
20
22
  source?: HTMLMediaElement | null;
21
- /**
22
- * Count of consecutive steady-state samples in which the proxy's
23
- * `currentTime` was found drifted beyond `MIRROR_DRIFT_THRESHOLD_SECONDS`.
24
- * Reset on every in-threshold sample. A write is only issued once this
25
- * reaches `MIRROR_REQUIRED_CONSECUTIVE_DRIFT_SAMPLES`, absorbing
26
- * single-sample jitter without thrashing.
27
- */
28
- driftSamples: number;
23
+ /** The offset behind the timeline (+) at the last drift sample; steering is only trusted when it stopped growing. */
24
+ lastOffset?: number;
25
+ /** Seconds a seek of this playing proxy takes to land (smoothed); a seek aims this far ahead so it lands on time. */
26
+ seekLatency?: number;
27
+ /** When the seek still landing was issued (ms); unset when none is pending. */
28
+ seekIssuedAt?: number;
29
29
  }
30
30
 
31
31
  type ShaderLoadingMode = "composition" | "player" | "none";