@hyperframes/inspector 0.9.95 → 0.9.96
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,12 +12,22 @@ export declare function audibleVideoNeedsWebAudio(fields: {
|
|
|
12
12
|
audioGroup?: string | null;
|
|
13
13
|
masterChain?: string | null;
|
|
14
14
|
}): boolean;
|
|
15
|
+
export declare const PARENT_COPY_ATTRIBUTES: readonly ["data-playback-rate", "data-automation", "data-fx-chain", "data-audio-group", "data-volume", "data-fade-in", "data-fade-out"];
|
|
15
16
|
export interface ParentCopy {
|
|
16
17
|
kind: "audio" | "video";
|
|
17
18
|
src: string;
|
|
18
19
|
start: number;
|
|
19
20
|
duration: number;
|
|
20
21
|
mediaStart: number;
|
|
22
|
+
layer?: number;
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
mastered?: boolean;
|
|
25
|
+
attrs?: Partial<Record<(typeof PARENT_COPY_ATTRIBUTES)[number], string>>;
|
|
21
26
|
}
|
|
27
|
+
export declare function parentCopyKey(copy: Pick<ParentCopy, "kind" | "src" | "start" | "mediaStart" | "layer">): string;
|
|
28
|
+
export declare function parentCopyLayers(): (elements: readonly HTMLMediaElement[]) => {
|
|
29
|
+
el: HTMLMediaElement;
|
|
30
|
+
copy: ParentCopy;
|
|
31
|
+
}[];
|
|
22
32
|
export declare function mediaFileOf(el: HTMLMediaElement): string | null;
|
|
23
33
|
export declare function parentCopyOf(el: HTMLMediaElement): ParentCopy | null;
|
|
@@ -12,7 +12,7 @@ export type RuntimeJson = string | number | boolean | null | RuntimeJson[] | {
|
|
|
12
12
|
import type { HyperframeControlAction } from "../inline-scripts/runtimeContract.js";
|
|
13
13
|
import type { HyperframePickerElementInfo } from "../inline-scripts/pickerApi.js";
|
|
14
14
|
import type { RuntimeProtocolV1 } from "./protocol.js";
|
|
15
|
-
type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "set-copies-ahead" | "retry-preview-copies" | "request-preview-facts" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements" | "scrub-audio";
|
|
15
|
+
type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "set-copies-ahead" | "retry-preview-copies" | "request-preview-facts" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements" | "scrub-audio" | "set-parent-audio" | "audio-clock";
|
|
16
16
|
type RuntimeBridgeControlMessageBase = {
|
|
17
17
|
source: "hf-parent";
|
|
18
18
|
type: "control";
|
|
@@ -35,6 +35,9 @@ type RuntimeBridgeControlMessageBase = {
|
|
|
35
35
|
grading?: RuntimeJson;
|
|
36
36
|
compare?: RuntimeJson;
|
|
37
37
|
seekMode?: "drag" | "commit";
|
|
38
|
+
clips?: string[];
|
|
39
|
+
rate?: number;
|
|
40
|
+
at?: number;
|
|
38
41
|
};
|
|
39
42
|
export type RuntimeStateMessage = {
|
|
40
43
|
source: "hf-preview";
|
|
@@ -168,6 +171,12 @@ export type RuntimeMediaAutoplayBlockedMessage = {
|
|
|
168
171
|
type: "media-autoplay-blocked";
|
|
169
172
|
media: ParentCopy[];
|
|
170
173
|
};
|
|
174
|
+
/** The same list, asked for by a parent that plays the film's audio from decoded buffers (`set-parent-audio`). */
|
|
175
|
+
export type RuntimeParentCopiesMessage = {
|
|
176
|
+
source: "hf-preview";
|
|
177
|
+
type: "parent-copies";
|
|
178
|
+
media: ParentCopy[];
|
|
179
|
+
};
|
|
171
180
|
/**
|
|
172
181
|
* Posted by the runtime when `installRuntimeControlBridge` finishes registering
|
|
173
182
|
* its message listener — signals that subsequent control messages
|
|
@@ -260,25 +269,27 @@ export type PlaybackHeldBy = {
|
|
|
260
269
|
networkState: number;
|
|
261
270
|
fetchMs: number | FetchNotSeenToStart;
|
|
262
271
|
};
|
|
272
|
+
/** How playback went over the last few seconds of play. */
|
|
273
|
+
export type PlaybackHealthReport = {
|
|
274
|
+
droppedShare: number;
|
|
275
|
+
seconds: number;
|
|
276
|
+
choppy: boolean;
|
|
277
|
+
fps: number;
|
|
278
|
+
worstFrameMs: number;
|
|
279
|
+
skippedShare: number;
|
|
280
|
+
waitingShare: number;
|
|
281
|
+
frozenShare: number;
|
|
282
|
+
gapP50Ms: number;
|
|
283
|
+
gapP95Ms: number;
|
|
284
|
+
clockSource: "audio" | "webaudio" | "monotonic";
|
|
285
|
+
heldBy: PlaybackHeldBy | null;
|
|
286
|
+
mode: "play";
|
|
287
|
+
};
|
|
263
288
|
export type RuntimePreviewHealthMessage = {
|
|
264
289
|
source: "hf-preview";
|
|
265
290
|
type: "preview-health";
|
|
266
|
-
/**
|
|
267
|
-
health:
|
|
268
|
-
droppedShare: number;
|
|
269
|
-
seconds: number;
|
|
270
|
-
choppy: boolean;
|
|
271
|
-
fps: number;
|
|
272
|
-
worstFrameMs: number;
|
|
273
|
-
skippedShare: number;
|
|
274
|
-
waitingShare: number;
|
|
275
|
-
frozenShare: number;
|
|
276
|
-
gapP50Ms: number;
|
|
277
|
-
gapP95Ms: number;
|
|
278
|
-
clockSource: "audio" | "webaudio" | "monotonic";
|
|
279
|
-
heldBy: PlaybackHeldBy | null;
|
|
280
|
-
mode: "play";
|
|
281
|
-
} | null;
|
|
291
|
+
/** Null while paused, seeking or warming up. */
|
|
292
|
+
health: PlaybackHealthReport | null;
|
|
282
293
|
};
|
|
283
294
|
export type RuntimePreviewFactsMessage = {
|
|
284
295
|
source: "hf-preview";
|
|
@@ -299,7 +310,7 @@ export type RuntimePreviewFactsMessage = {
|
|
|
299
310
|
copiesReady: boolean;
|
|
300
311
|
};
|
|
301
312
|
};
|
|
302
|
-
export type RuntimeOutboundMessage = RuntimeStateMessage | RuntimePreviewCopiesMessage | RuntimePreviewHealthMessage | RuntimePreviewFactsMessage | RuntimeTimelineMessage | RuntimeDiagnosticMessage | RuntimePickerHoveredMessage | RuntimePickerCandidatesMessage | RuntimePickerPickedMessage | RuntimePickerPickedManyMessage | RuntimePickerCancelledMessage | RuntimeStageSizeMessage | RuntimeStaticCompositionMessage | RuntimeMediaAutoplayBlockedMessage | RuntimeReadyMessage | RuntimeAssetsReadyMessage | RuntimeDataErrorMessage | RuntimeDataAppliedMessage | RuntimeAnalyticsMessage | RuntimePerformanceMessage | RuntimeGroupLevelsMessage;
|
|
313
|
+
export type RuntimeOutboundMessage = RuntimeStateMessage | RuntimePreviewCopiesMessage | RuntimePreviewHealthMessage | RuntimePreviewFactsMessage | RuntimeTimelineMessage | RuntimeDiagnosticMessage | RuntimePickerHoveredMessage | RuntimePickerCandidatesMessage | RuntimePickerPickedMessage | RuntimePickerPickedManyMessage | RuntimePickerCancelledMessage | RuntimeStageSizeMessage | RuntimeStaticCompositionMessage | RuntimeMediaAutoplayBlockedMessage | RuntimeParentCopiesMessage | RuntimeReadyMessage | RuntimeAssetsReadyMessage | RuntimeDataErrorMessage | RuntimeDataAppliedMessage | RuntimeAnalyticsMessage | RuntimePerformanceMessage | RuntimeGroupLevelsMessage;
|
|
303
314
|
export type HeldSeek = Promise<void> | void;
|
|
304
315
|
export type RuntimePlayer = {
|
|
305
316
|
_timeline: RuntimeTimelineLike | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.96",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"htmlparser2": "^10.1.0",
|
|
44
44
|
"postcss": "^8.5.8",
|
|
45
45
|
"puppeteer-core": "^25.8.0",
|
|
46
|
-
"@hyperframes/parsers": "0.9.
|
|
47
|
-
"@hyperframes/core": "0.9.
|
|
46
|
+
"@hyperframes/parsers": "0.9.96",
|
|
47
|
+
"@hyperframes/core": "0.9.96"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|