@hyperframes/studio 0.8.210 → 0.8.212
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/assets/{hyperframes-player-DUpxahTX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/assets/{index-CtrcjpbM.js → index-CWgIsKzV.js} +123 -123
- package/dist/assets/{index-B4dcZZAm.js → index-CkjUY33q.js} +1 -1
- package/dist/{chunk-7SREYKIC.js → chunk-HD6NXWGI.js} +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.html +1 -1
- package/dist/index.js +488 -240
- package/dist/player.js +1 -1
- package/package.json +8 -8
- package/src/components/DesktopGuideCard.tsx +1 -1
- package/src/hooks/usePersistentEditHistory.test.ts +7 -3
- package/src/player/components/VideoThumbnail.tsx +6 -0
- package/src/player/hooks/previewMessageRouter.test.ts +4 -0
- package/src/player/lib/mediaFetch.test.ts +572 -0
- package/src/player/lib/mediaFetch.ts +139 -26
- package/src/player/lib/thumbnailFrameCache.ts +69 -0
- package/src/player/lib/thumbnailPlaybackHold.test.ts +86 -0
- package/src/player/lib/thumbnailPlaybackHold.ts +15 -0
- package/src/player/lib/thumbnailScheduler.test.ts +49 -0
- package/src/player/lib/thumbnailScheduler.ts +22 -6
- package/src/player/lib/thumbnailSourcePool.ts +163 -0
- package/src/player/lib/thumbnailVideoDecoder.test.ts +492 -8
- package/src/player/lib/thumbnailVideoDecoder.ts +67 -75
- package/src/player/lib/timelineViewportBudgets.test.ts +1 -0
- package/src/player/lib/timelineViewportBudgets.ts +4 -0
- package/src/player/store/previewQualitySlice.ts +11 -0
|
@@ -582,8 +582,10 @@ function parsePreviewCopies(value) {
|
|
|
582
582
|
error: typeof error === "string" ? error : null
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
+
var optionalNumber = (n) => typeof n === "number" ? n : void 0;
|
|
585
586
|
function parsePlaybackHealth(value) {
|
|
586
587
|
if (typeof value !== "object" || value === null) return null;
|
|
588
|
+
const extra = value;
|
|
587
589
|
const { droppedShare, seconds, choppy, fps, worstFrameMs } = value;
|
|
588
590
|
const numbers = [droppedShare, seconds, fps, worstFrameMs].every((n) => typeof n === "number");
|
|
589
591
|
if (!numbers || typeof choppy !== "boolean") return null;
|
|
@@ -593,6 +595,10 @@ function parsePlaybackHealth(value) {
|
|
|
593
595
|
choppy,
|
|
594
596
|
fps,
|
|
595
597
|
worstFrameMs,
|
|
598
|
+
skippedShare: optionalNumber(extra.skippedShare),
|
|
599
|
+
waitingShare: optionalNumber(extra.waitingShare),
|
|
600
|
+
gapP50Ms: optionalNumber(extra.gapP50Ms),
|
|
601
|
+
gapP95Ms: optionalNumber(extra.gapP95Ms),
|
|
596
602
|
mode: "play"
|
|
597
603
|
};
|
|
598
604
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -259,6 +259,10 @@ interface PlaybackHealth {
|
|
|
259
259
|
choppy: boolean;
|
|
260
260
|
fps: number;
|
|
261
261
|
worstFrameMs: number;
|
|
262
|
+
skippedShare?: number;
|
|
263
|
+
waitingShare?: number;
|
|
264
|
+
gapP50Ms?: number;
|
|
265
|
+
gapP95Ms?: number;
|
|
262
266
|
mode: "play";
|
|
263
267
|
}
|
|
264
268
|
/** What the preview holds, counts and classes only, filled when asked for. */
|
package/dist/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-CWgIsKzV.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/assets/index-RUPGNyct.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|