hyperframes 0.8.203 → 0.8.204
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/{add-HVWZZBVO.js → add-HBFVYKGU.js} +11 -11
- package/dist/{animatedGifPrep-7SQD4XQY.js → animatedGifPrep-VBUKGEZ6.js} +5 -5
- package/dist/api.js +13 -13
- package/dist/{asset-H2D5ENJ6.js → asset-OVLMJY4S.js} +2 -2
- package/dist/{assetCataloger-PIRQXMHM.js → assetCataloger-K4INCLFU.js} +5 -5
- package/dist/{audio-F6TTYCGR.js → audio-JHW3HLHK.js} +11 -11
- package/dist/{auth-HK5IYSNR.js → auth-RH67KQMZ.js} +1 -1
- package/dist/{autoUpdate-DQMCXE6X.js → autoUpdate-JYR2RW5Z.js} +2 -2
- package/dist/{backgroundChecks-Y466WV7Y.js → backgroundChecks-DPHRM4HJ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PGJELR2B.js → batchRender-JFUWZR3M.js} +3 -3
- package/dist/{beats-AD2IJGBZ.js → beats-AWAFZGOT.js} +7 -7
- package/dist/{benchmark-B564OTLO.js → benchmark-VQCCULJ2.js} +8 -8
- package/dist/{browser-B7BELTLZ.js → browser-TT5L7D32.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-INYZKCJN.js → bundleWithLocalizedFonts-EHXEP5ZL.js} +2 -2
- package/dist/{capture-VMJVXQJ2.js → capture-5CM2P6CB.js} +8 -8
- package/dist/{capture-LKV2HS5Q.js → capture-Y7TGR3BI.js} +2 -2
- package/dist/{captureCompositionFrame-L2W6KSAL.js → captureCompositionFrame-LIT6U6C4.js} +10 -10
- package/dist/{catalog-5ETWOAL2.js → catalog-WZN2XB7D.js} +11 -11
- package/dist/{catch-up-3RWU3BRJ.js → catch-up-WZMQUW5H.js} +4 -4
- package/dist/{check-KD57MC5Z.js → check-YVJCDCJS.js} +33 -33
- package/dist/{checkBrowser-R72NYI4S.js → checkBrowser-7V2DGDVD.js} +28 -28
- package/dist/{chunk-VI7GBPF6.js → chunk-23RPCDGE.js} +2 -2
- package/dist/{chunk-WGZOPGHX.js → chunk-2756LXGY.js} +1 -1
- package/dist/{chunk-TMIX2WQL.js → chunk-34VLVDOU.js} +3 -3
- package/dist/{chunk-Q6B7MFTU.js → chunk-3GPDAE3D.js} +1 -1
- package/dist/{chunk-GOPGJXEQ.js → chunk-4CR23IYU.js} +4 -4
- package/dist/{chunk-3NUFUEAX.js → chunk-4HJMZI4H.js} +13 -13
- package/dist/{chunk-YOLS2E5P.js → chunk-54FO6TN7.js} +17 -17
- package/dist/{chunk-OKZZWUZN.js → chunk-54K7HW46.js} +1 -1
- package/dist/{chunk-TZKMAQOY.js → chunk-5RJSWYWL.js} +1 -1
- package/dist/{chunk-7RQXBL4L.js → chunk-5UW7WCHQ.js} +7 -7
- package/dist/{chunk-FRXPZCEP.js → chunk-65VFH2UV.js} +1 -1
- package/dist/{chunk-FE72SB2F.js → chunk-6KZY5RSV.js} +1 -1
- package/dist/{chunk-GOWNPWCJ.js → chunk-6RLP6RDE.js} +1 -1
- package/dist/{chunk-TRDUMOUW.js → chunk-7PRESGFT.js} +2 -2
- package/dist/{chunk-TT6HSBYK.js → chunk-7RB4I2E6.js} +5 -5
- package/dist/{chunk-VYFMJ2HM.js → chunk-AQS3MMEQ.js} +9 -9
- package/dist/{chunk-TVC4EI2W.js → chunk-CXZDIWMK.js} +1 -1
- package/dist/{chunk-DZZ6VHPY.js → chunk-D3EZHD2D.js} +1 -1
- package/dist/{chunk-X5PKA5KH.js → chunk-D5CAZ7R4.js} +2 -2
- package/dist/{chunk-ND5ELD7A.js → chunk-DBF6LLXB.js} +1 -1
- package/dist/{chunk-JVWPKIVV.js → chunk-DRDG46KK.js} +12 -12
- package/dist/{chunk-CTNWZASM.js → chunk-DTV3VHFE.js} +2 -2
- package/dist/{chunk-B7MRZJOW.js → chunk-EF7R5EBJ.js} +9 -9
- package/dist/{chunk-OKRH4JU3.js → chunk-GGEA5EHR.js} +1 -1
- package/dist/{chunk-HO2N4UWV.js → chunk-HBDQGIQA.js} +2 -2
- package/dist/{chunk-3YZ2ESXP.js → chunk-IJ6RY4CH.js} +1 -1
- package/dist/{chunk-JKUVH7BF.js → chunk-KOBPUFCN.js} +1 -1
- package/dist/{chunk-HAKKV3SY.js → chunk-LN5EJMSC.js} +7 -7
- package/dist/{chunk-FTARAZAL.js → chunk-LVMJXO45.js} +1 -1
- package/dist/{chunk-5GFNMC2F.js → chunk-MSH2F7VW.js} +1 -1
- package/dist/{chunk-H6NXL4VB.js → chunk-N3EJG2X4.js} +1 -1
- package/dist/{chunk-CAHZZOEC.js → chunk-NJT6SZGL.js} +1 -1
- package/dist/{chunk-2G6EI3WQ.js → chunk-OPFG563D.js} +1 -1
- package/dist/{chunk-35KHQKEX.js → chunk-QCQDUQVJ.js} +1 -1
- package/dist/{chunk-HYMW42OE.js → chunk-QWATUGUX.js} +3 -3
- package/dist/{chunk-DO2OTFCJ.js → chunk-QZ4HQQYS.js} +1 -1
- package/dist/{chunk-GX4CEJCX.js → chunk-RFCLI6TW.js} +3 -3
- package/dist/{chunk-KWQWEY6F.js → chunk-S35XO2ZA.js} +1 -1
- package/dist/{chunk-7SNVSO4A.js → chunk-TAYZSNYS.js} +1 -1
- package/dist/{chunk-BD3LJRJT.js → chunk-TBSYUEB7.js} +1 -1
- package/dist/{chunk-CFFPH6D3.js → chunk-TCI4MUT6.js} +1 -1
- package/dist/{chunk-RUVO77RK.js → chunk-TNOERLC6.js} +2 -2
- package/dist/{chunk-R36C6H32.js → chunk-TQH7BF7K.js} +1 -1
- package/dist/{chunk-VL5ES6ZM.js → chunk-UKXF4IPA.js} +5 -5
- package/dist/{chunk-4GV742H2.js → chunk-US6JSQ2L.js} +2 -2
- package/dist/{chunk-RZAPLMVM.js → chunk-VC3BMKYO.js} +3 -3
- package/dist/{chunk-HOQNNE3I.js → chunk-VCBZOU7U.js} +1 -1
- package/dist/{chunk-UVV2DKZR.js → chunk-WLD4PX3P.js} +2 -2
- package/dist/{chunk-ML7IPYOC.js → chunk-WM7GOKEP.js} +1 -1
- package/dist/{chunk-E3LRVXM2.js → chunk-WMCGD4XL.js} +1 -1
- package/dist/{chunk-RWHMKGJA.js → chunk-WXAQT63P.js} +3 -3
- package/dist/{chunk-JEFIEL6S.js → chunk-X7XICOVM.js} +1 -1
- package/dist/{chunk-MPGJNUML.js → chunk-XX5U64F2.js} +2 -2
- package/dist/{chunk-KBCV6BHL.js → chunk-Y63CT2ZC.js} +50 -36
- package/dist/{chunk-UNBGZQZ6.js → chunk-YIN2JAZE.js} +185 -78
- package/dist/{chunk-32SIPBON.js → chunk-YLGRZSH4.js} +1 -1
- package/dist/chunk-YRQPU7SV.js +3983 -0
- package/dist/{chunk-IREQUN2P.js → chunk-YU53JSUZ.js} +1 -1
- package/dist/{chunk-YJKSLCKV.js → chunk-ZBDVKLIU.js} +5 -5
- package/dist/{clean-7OBS6NMK.js → clean-3JE2KYTC.js} +14 -14
- package/dist/cli.js +53 -53
- package/dist/{cloud-JFL6IMUV.js → cloud-Z54BHP6G.js} +4 -4
- package/dist/{cloudrun-GHA4FXS3.js → cloudrun-4CPQLU5M.js} +4 -4
- package/dist/{compare-UFTPPNLD.js → compare-AQMLMTFD.js} +25 -25
- package/dist/{compiler-6LUGBYWD.js → compiler-LIJYMSEL.js} +2 -2
- package/dist/{component-4W3MT53Y.js → component-ZH37EIYB.js} +3 -3
- package/dist/{compositions-63M4AHPA.js → compositions-DF2FM6YD.js} +9 -9
- package/dist/{delete-XCSORSYR.js → delete-A3NSK2HH.js} +2 -2
- package/dist/{deploy-JUC2BVCE.js → deploy-6RC2DXPQ.js} +1 -1
- package/dist/{dist-SOMNYPEE.js → dist-VSIT3UAX.js} +2 -2
- package/dist/{doctor-LZ5KMUGS.js → doctor-RILK4ATO.js} +9 -9
- package/dist/{events-DSJDLP3V.js → events-B5EKVEPW.js} +3 -3
- package/dist/{events-XN26WXN3.js → events-SL434XAY.js} +2 -2
- package/dist/{feedback-VZZT77OU.js → feedback-S4PC6VAR.js} +7 -7
- package/dist/{ffmpeg-TU5BPXP6.js → ffmpeg-XSDPPZCU.js} +5 -5
- package/dist/{figma-BYBMKBNS.js → figma-MV2L6E2Z.js} +3 -3
- package/dist/fontLocalizeCli.js +7 -7
- package/dist/{get-JAKXQVNF.js → get-ID3Y3PCN.js} +2 -2
- package/dist/{gpuPolicy-A6BRKFTK.js → gpuPolicy-2LRMQOAD.js} +5 -5
- package/dist/{grade-compare-6TLS63GE.js → grade-compare-NV3TKIOO.js} +26 -26
- package/dist/{help-WMABNXSF.js → help-ZPT23LZ3.js} +1 -1
- package/dist/{history-PNOTK4KM.js → history-MZGDX3TR.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +17 -17
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-457IZRNA.js → info-FIZ4A54H.js} +7 -7
- package/dist/{init-QNOPZRQJ.js → init-WX4MNPL2.js} +25 -25
- package/dist/{inspect-4PECXE65.js → inspect-R5KWWKNJ.js} +26 -26
- package/dist/{installer-K6VCZN74.js → installer-CTV5FKYQ.js} +4 -4
- package/dist/{keyframes-KBR4RHQO.js → keyframes-FAJY5RK5.js} +6 -6
- package/dist/{lambda-FSC3XJOQ.js → lambda-3MCC2ZH7.js} +6 -6
- package/dist/{layout-PFXAKL65.js → layout-3RTVYRRN.js} +26 -26
- package/dist/{lint-MR7WHCBO.js → lint-ZDCVL7K4.js} +6 -6
- package/dist/{list-OCSE7GSX.js → list-SBCXW2UT.js} +2 -2
- package/dist/{login-M4L3MHVL.js → login-VQ2LQ2YG.js} +4 -4
- package/dist/{manager-G6G2WQU3.js → manager-ZRF6UXUM.js} +6 -6
- package/dist/{media-treatment-6ATFI5M2.js → media-treatment-MFIP7Q4G.js} +11 -11
- package/dist/{models-NPSWNLVS.js → models-OU36YZCT.js} +9 -9
- package/dist/{motionShot-HVPC2V7Q.js → motionShot-SHDUG7YR.js} +13 -13
- package/dist/{normalize-audio-YEEAY2TB.js → normalize-audio-7RTPEV7Y.js} +7 -7
- package/dist/{open-6LSE4QDQ.js → open-HT4RG32S.js} +11 -11
- package/dist/{parakeetRunner-HMDK2MEQ.js → parakeetRunner-DOVPZDCH.js} +10 -10
- package/dist/{pipeline-GQV2DL2T.js → pipeline-NIVQ6E2G.js} +6 -6
- package/dist/{play-NORPMDGV.js → play-HPX5SIRQ.js} +17 -17
- package/dist/{preflight-SDPP63GU.js → preflight-TNYC7EIS.js} +6 -6
- package/dist/{present-BVPAEHE6.js → present-QSOIMURR.js} +13 -13
- package/dist/{preview-C762R2VY.js → preview-WDO53XKK.js} +16 -16
- package/dist/{producer-XXFVYAW6.js → producer-G27KP3IY.js} +1 -1
- package/dist/{projectConfig-72HEHSHM.js → projectConfig-CP722RCM.js} +6 -6
- package/dist/{publication-QOK2NB7H.js → publication-LCWVBLDN.js} +2 -2
- package/dist/{publish-OVCPM2R4.js → publish-BIY6LEZ2.js} +8 -8
- package/dist/{remove-background-BK7G24LO.js → remove-background-NPLZGLZ3.js} +7 -7
- package/dist/{render-BA4DJGH2.js → render-HHUGUKG6.js} +26 -26
- package/dist/{render-3RV5ZZHB.js → render-IHNAZXA2.js} +5 -5
- package/dist/{render-KCRWPUSH.js → render-J57LAXB5.js} +13 -13
- package/dist/{render-batch-EKMNALAK.js → render-batch-FK26OQ5E.js} +5 -5
- package/dist/{resolver-ZQAEKX2N.js → resolver-FWJXO6DY.js} +4 -4
- package/dist/{sherpa-UPEEZCVJ.js → sherpa-BXFJU5EP.js} +9 -9
- package/dist/{skills-EBCABDEA.js → skills-7XS4HZBC.js} +5 -5
- package/dist/{skillsUpdateCheck-2TBQ3R7X.js → skillsUpdateCheck-MGU5KLR4.js} +3 -3
- package/dist/{snapshot-KRDQ6UFY.js → snapshot-O2PMEMKH.js} +30 -30
- package/dist/{src-FMPMLWOE.js → src-OQRG6BT7.js} +4 -4
- package/dist/{src-HODRARUH.js → src-Q4R2YPKA.js} +6 -6
- package/dist/{staticProjectServer-NBWPYBIH.js → staticProjectServer-6OY4VMO6.js} +14 -14
- package/dist/studio/assets/{hyperframes-player-C3pgGOtp.js → hyperframes-player-CttA4PW7.js} +1 -1
- package/dist/studio/assets/{index-BbcMyD3j.js → index-DmST2bTJ.js} +110 -110
- package/dist/studio/assets/{index-5EFQxr70.js → index-DpxSurnJ.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BOV2DTPC.js → studio-api-YSUTKHV7.js} +7 -7
- package/dist/{studioServer-TSKSIQC3.js → studioServer-APGEQIW5.js} +43 -43
- package/dist/{telemetry-RLKGEBGR.js → telemetry-3B6EA5IU.js} +3 -3
- package/dist/{timeline-ADFTKSNX.js → timeline-QWM6JS4B.js} +15 -15
- package/dist/{tokens-2NKS4KAO.js → tokens-TKLSP3OQ.js} +2 -2
- package/dist/{transcribe-63XQBLF3.js → transcribe-PODOCWCC.js} +8 -8
- package/dist/{transcribe-AHNMYPY4.js → transcribe-XOPMHJLJ.js} +14 -14
- package/dist/{updateCheck-XDYXIVKF.js → updateCheck-RO6FPYMZ.js} +2 -2
- package/dist/{upgrade-GK2RSMPV.js → upgrade-EVNIL5TZ.js} +2 -2
- package/dist/{urlDownloader-X2B7NQSQ.js → urlDownloader-F5HYFRA6.js} +4 -4
- package/dist/{validate-UN4RB6KN.js → validate-NXLFCHGG.js} +20 -20
- package/dist/{video-QRWQLU5O.js → video-ECV2OIQN.js} +5 -5
- package/dist/warmCheck.js +33 -33
- package/package.json +1 -1
- package/dist/chunk-42DLVZNO.js +0 -3983
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IJ6RY4CH.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-SVVAUJPL.js";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D3EZHD2D.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VP9_CPU_USED,
|
|
21
21
|
SDR_RGB_TO_BT709_FILTER,
|
|
22
22
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
23
23
|
renderProvenanceArgs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Y63CT2ZC.js";
|
|
25
25
|
import {
|
|
26
26
|
runCancellableProcess
|
|
27
27
|
} from "./chunk-BL4U6U52.js";
|
|
@@ -317,7 +317,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
317
317
|
}
|
|
318
318
|
async function probeMedia(inputPath) {
|
|
319
319
|
const isImage = inferInputKind(inputPath) === "image";
|
|
320
|
-
const engine = await import("./src-
|
|
320
|
+
const engine = await import("./src-OQRG6BT7.js");
|
|
321
321
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
322
322
|
if (isImage) {
|
|
323
323
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-2ST4WAFY.js";
|
|
13
13
|
import {
|
|
14
14
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DBF6LLXB.js";
|
|
16
16
|
import {
|
|
17
17
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-65VFH2UV.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/desktopApp.ts
|
|
21
21
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
renderFrameIdForRenderId,
|
|
29
29
|
resolveAuthoredTimingWindow,
|
|
30
30
|
toFps
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-65VFH2UV.js";
|
|
32
32
|
import {
|
|
33
33
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
34
34
|
COLOR_GRADING_SOURCE_HIDDEN_ATTR,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
sourceTimeAt,
|
|
69
69
|
timeAtSourceTime,
|
|
70
70
|
volumeSegmentSampleCount
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YRQPU7SV.js";
|
|
72
72
|
import {
|
|
73
73
|
redactTelemetryString,
|
|
74
74
|
redactUrlQueryStrings
|
|
@@ -1094,22 +1094,32 @@ var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
|
1094
1094
|
function stripBeginFrameFlags(args) {
|
|
1095
1095
|
return args.filter((a) => !BEGINFRAME_ONLY_FLAGS.has(a));
|
|
1096
1096
|
}
|
|
1097
|
+
var BeginFrameProbeTimeout = class extends Error {
|
|
1098
|
+
};
|
|
1097
1099
|
var BEGINFRAME_PROBE_TIMEOUT_MS = 2e3;
|
|
1100
|
+
var BEGINFRAME_PROBE_RETRY_TIMEOUT_MS = 8e3;
|
|
1098
1101
|
var BEGINFRAME_PROBE_CLEANUP_TIMEOUT_MS = 250;
|
|
1099
1102
|
async function awaitBeforeDeadline(operation, deadline, label) {
|
|
1100
1103
|
const remainingMs = deadline - Date.now();
|
|
1101
1104
|
if (remainingMs <= 0) {
|
|
1102
|
-
throw new
|
|
1105
|
+
throw new BeginFrameProbeTimeout(`beginFrame probe timeout before ${label}`);
|
|
1103
1106
|
}
|
|
1104
|
-
return rejectAfter(
|
|
1107
|
+
return rejectAfter(
|
|
1108
|
+
operation,
|
|
1109
|
+
remainingMs,
|
|
1110
|
+
new BeginFrameProbeTimeout(`beginFrame probe timeout during ${label}`)
|
|
1111
|
+
);
|
|
1105
1112
|
}
|
|
1106
|
-
async function rejectAfter(operation, timeoutMs,
|
|
1113
|
+
async function rejectAfter(operation, timeoutMs, error) {
|
|
1107
1114
|
let timeout;
|
|
1108
1115
|
try {
|
|
1109
1116
|
return await Promise.race([
|
|
1110
1117
|
operation,
|
|
1111
1118
|
new Promise((_, reject) => {
|
|
1112
|
-
timeout = setTimeout(
|
|
1119
|
+
timeout = setTimeout(
|
|
1120
|
+
() => reject(typeof error === "string" ? new Error(error) : error),
|
|
1121
|
+
timeoutMs
|
|
1122
|
+
);
|
|
1113
1123
|
})
|
|
1114
1124
|
]);
|
|
1115
1125
|
} finally {
|
|
@@ -1199,7 +1209,8 @@ async function probeBeginFrameSupport(browser, timeoutMs = BEGINFRAME_PROBE_TIME
|
|
|
1199
1209
|
);
|
|
1200
1210
|
}
|
|
1201
1211
|
if (!isPng) {
|
|
1202
|
-
|
|
1212
|
+
const Failure = bytes.length === 0 ? BeginFrameProbeTimeout : Error;
|
|
1213
|
+
throw new Failure(
|
|
1203
1214
|
`beginFrame screenshot returned ${bytes.length} bytes after ${attempts} attempts in ${Date.now() - started}ms with signature ${bytes.length >= 4 ? bytes.subarray(0, 4).toString("hex") : "<empty>"}`
|
|
1204
1215
|
);
|
|
1205
1216
|
}
|
|
@@ -1214,7 +1225,8 @@ async function probeBeginFrameSupport(browser, timeoutMs = BEGINFRAME_PROBE_TIME
|
|
|
1214
1225
|
result = {
|
|
1215
1226
|
supported: false,
|
|
1216
1227
|
detail: error instanceof Error ? error.message : String(error),
|
|
1217
|
-
durationMs: Date.now() - started
|
|
1228
|
+
durationMs: Date.now() - started,
|
|
1229
|
+
timedOut: error instanceof BeginFrameProbeTimeout
|
|
1218
1230
|
};
|
|
1219
1231
|
}
|
|
1220
1232
|
if (page && !await settleWithin(page.close(), BEGINFRAME_PROBE_CLEANUP_TIMEOUT_MS)) {
|
|
@@ -1382,17 +1394,24 @@ async function launchBrowser(fingerprint) {
|
|
|
1382
1394
|
const env = launchEnv(fingerprint);
|
|
1383
1395
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1384
1396
|
let browser;
|
|
1397
|
+
const launch = (args) => ppt.launch({
|
|
1398
|
+
...sigintLaunchOptions(),
|
|
1399
|
+
headless: true,
|
|
1400
|
+
args: withHyperframesBrowserMarker(args),
|
|
1401
|
+
defaultViewport: null,
|
|
1402
|
+
executablePath: fingerprint.executablePath,
|
|
1403
|
+
env,
|
|
1404
|
+
timeout: fingerprint.browserTimeoutMs,
|
|
1405
|
+
protocolTimeout: fingerprint.protocolTimeoutMs
|
|
1406
|
+
});
|
|
1407
|
+
const probe = (target, timeoutMs) => probeBeginFrameSupport(target, timeoutMs).catch((error) => ({
|
|
1408
|
+
supported: true,
|
|
1409
|
+
detail: `probe harness error ignored: ${error instanceof Error ? error.message : String(error)}`,
|
|
1410
|
+
durationMs: 0,
|
|
1411
|
+
timedOut: false
|
|
1412
|
+
}));
|
|
1385
1413
|
try {
|
|
1386
|
-
browser = await
|
|
1387
|
-
...sigintLaunchOptions(),
|
|
1388
|
-
headless: true,
|
|
1389
|
-
args: withHyperframesBrowserMarker(fingerprint.args),
|
|
1390
|
-
defaultViewport: null,
|
|
1391
|
-
executablePath: fingerprint.executablePath,
|
|
1392
|
-
env,
|
|
1393
|
-
timeout: fingerprint.browserTimeoutMs,
|
|
1394
|
-
protocolTimeout: fingerprint.protocolTimeoutMs
|
|
1395
|
-
});
|
|
1414
|
+
browser = await launch(fingerprint.args);
|
|
1396
1415
|
const browserVersion = await browser.version().catch(() => "unknown");
|
|
1397
1416
|
const gpuFlags = fingerprint.args.filter(
|
|
1398
1417
|
(a) => a.startsWith("--use-gl=") || a.startsWith("--use-angle=")
|
|
@@ -1401,28 +1420,23 @@ async function launchBrowser(fingerprint) {
|
|
|
1401
1420
|
`[BrowserManager] Browser launched (${browserVersion}, ${captureMode}, gl=${gpuFlags.join(" ") || "default"}, headlessShell=${!!fingerprint.executablePath}, platform=${process.platform})`
|
|
1402
1421
|
);
|
|
1403
1422
|
if (captureMode === "beginframe") {
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1423
|
+
let result = await probe(browser);
|
|
1424
|
+
if (!result.supported && result.timedOut) {
|
|
1425
|
+
console.warn(
|
|
1426
|
+
`[BrowserManager] HeadlessExperimental.beginFrame probe timed out after ${result.durationMs}ms: ${result.detail}; retrying once with a longer budget.`
|
|
1427
|
+
);
|
|
1428
|
+
await closeBrowserAfterFailedProbe(browser);
|
|
1429
|
+
browser = await launch(fingerprint.args);
|
|
1430
|
+
result = await probe(browser, BEGINFRAME_PROBE_RETRY_TIMEOUT_MS);
|
|
1431
|
+
}
|
|
1432
|
+
if (!result.supported) {
|
|
1410
1433
|
await closeBrowserAfterFailedProbe(browser);
|
|
1411
1434
|
browser = void 0;
|
|
1412
1435
|
console.warn(
|
|
1413
|
-
`[BrowserManager] HeadlessExperimental.beginFrame probe failed after ${
|
|
1436
|
+
`[BrowserManager] HeadlessExperimental.beginFrame probe failed after ${result.durationMs}ms: ${result.detail}; falling back to screenshot mode.`
|
|
1414
1437
|
);
|
|
1415
1438
|
captureMode = "screenshot";
|
|
1416
|
-
browser = await
|
|
1417
|
-
...sigintLaunchOptions(),
|
|
1418
|
-
headless: true,
|
|
1419
|
-
args: withHyperframesBrowserMarker(stripBeginFrameFlags([...fingerprint.args])),
|
|
1420
|
-
defaultViewport: null,
|
|
1421
|
-
executablePath: fingerprint.executablePath,
|
|
1422
|
-
env,
|
|
1423
|
-
timeout: fingerprint.browserTimeoutMs,
|
|
1424
|
-
protocolTimeout: fingerprint.protocolTimeoutMs
|
|
1425
|
-
});
|
|
1439
|
+
browser = await launch(stripBeginFrameFlags([...fingerprint.args]));
|
|
1426
1440
|
}
|
|
1427
1441
|
}
|
|
1428
1442
|
return { browser, captureMode };
|
|
@@ -7885,7 +7899,7 @@ async function discardWarmupCapture(session, frameIndex = 0, time = 0, innerCapt
|
|
|
7885
7899
|
async function closeCaptureSession(session) {
|
|
7886
7900
|
if (session.chromeMemory) {
|
|
7887
7901
|
session.chromeMemory.stop();
|
|
7888
|
-
await session.chromeMemory.sampleOnce();
|
|
7902
|
+
await waitForCloseWithTimeout(session.chromeMemory.sampleOnce());
|
|
7889
7903
|
}
|
|
7890
7904
|
if (session.page && !session.pageReleased) {
|
|
7891
7905
|
const blur = await describePageMotionBlurAtEnd(session.page);
|