@hyperframes/studio 0.8.209 → 0.8.211
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-CMH8OeX2.js → hyperframes-player-CzrqgMUX.js} +1 -1
- package/dist/assets/{index-DjHzuJGR.js → index-B3SPHPi1.js} +1 -1
- package/dist/assets/{index-CYbvOVp-.css → index-RUPGNyct.css} +1 -1
- package/dist/assets/{index-DQam8zzE.js → index-k4nVfS2D.js} +123 -123
- package/dist/{chunk-HPIJDMWG.js → chunk-HD6NXWGI.js} +6 -5
- package/dist/index.d.ts +4 -0
- package/dist/index.html +2 -2
- package/dist/index.js +485 -241
- package/dist/player.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -8
- package/src/components/DesktopGuideCard.tsx +1 -1
- package/src/components/nle/NLEPreview.test.ts +9 -0
- package/src/components/nle/NLEPreview.tsx +1 -1
- package/src/player/components/Player.test.ts +10 -0
- package/src/player/components/Player.tsx +0 -12
- package/src/player/components/VideoThumbnail.tsx +6 -0
- package/src/player/hooks/previewMessageRouter.test.ts +4 -0
- package/src/player/lib/mediaFetch.test.ts +466 -0
- package/src/player/lib/mediaFetch.ts +133 -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
- package/src/styles/hex-baseline.json +0 -1
|
@@ -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
|
}
|
|
@@ -1433,11 +1439,6 @@ var Player = forwardRef(
|
|
|
1433
1439
|
loadIdRef.current += 1;
|
|
1434
1440
|
player.setAttribute("src", src);
|
|
1435
1441
|
container.appendChild(player);
|
|
1436
|
-
if (player.shadowRoot) {
|
|
1437
|
-
const pasteboardStyle = document.createElement("style");
|
|
1438
|
-
pasteboardStyle.textContent = ".hfp-container{overflow:visible}.hfp-iframe{box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 4px 32px rgba(0,0,0,.7)}";
|
|
1439
|
-
player.shadowRoot.appendChild(pasteboardStyle);
|
|
1440
|
-
}
|
|
1441
1442
|
enableInteractiveIframe(player);
|
|
1442
1443
|
cleanup = () => {
|
|
1443
1444
|
iframe.removeEventListener("load", handleLoad);
|
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,8 +14,8 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-k4nVfS2D.js"></script>
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-RUPGNyct.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
21
21
|
<div data-hf-id="hf-aph5" id="root"></div>
|