agentroam-runtime-darwin-arm64 0.2.0-preview.81 → 0.2.0-preview.82
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/manifest.json +2 -2
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +8 -8
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/composer/route.js +1 -0
- package/runtime/.next/server/app/api/agent/composer/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- package/runtime/.next/server/app/api/engine-threads.body +1 -1
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers.body +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/session-images/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/session-views/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/commands/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/todos/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/api/workspace-changes/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +4 -4
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +34 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/chunks/5801.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +3 -3
- package/runtime/.next/server/chunks/9457.js +1 -1
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/app/web/error-828d278147a0619d.js +1 -0
- package/runtime/.next/static/chunks/app/web/layout-1127176e7e88e395.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-b0da5ef19349a66b.js → page-f008ab6dfeab7ce7.js} +1 -1
- package/runtime/.next/static/chunks/{main-68faabab5d101471.js → main-9c08f7656f9692e6.js} +1 -1
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +1 -0
- package/runtime/lib/remote-control/application/paced-video-sender.mjs +20 -1
- package/runtime/lib/remote-control/application/remote-video-session.mjs +18 -4
- package/runtime/lib/remote-control/infrastructure/native-video-encoder.mjs +15 -2
- package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +3 -1
- package/runtime/lib/remote-control/remote-authorization.mjs +2 -2
- package/runtime/lib/remote-control/remote-video-signal.mjs +2 -0
- package/runtime/lib/todo-completion-worker.mjs +45 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +129 -129
- package/runtime/node_modules/@agent/core/dist/index.js +286 -68
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +444 -127
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +75 -79
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-q4cwy1ja.mjs → core-664d5mmy.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-zn1abzvs.mjs → core-70sfhqm6.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +38 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +22 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +19 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +33 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +12 -12
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +22 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +26 -26
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +22 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +84 -83
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +4 -0
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +11 -11
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +185 -127
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +8 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +6 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +6 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +17 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +2 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +12 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +34 -18
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +3 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +3 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +5 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +19 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +4 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +22 -13
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +2 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +70 -65
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/worker.js +26 -0
- package/runtime/node_modules/mediabunny/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/aes.ts +7 -4
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +7 -0
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +19 -6
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +2 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +15 -1
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +37 -19
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +4 -0
- package/runtime/node_modules/mediabunny/src/media-sink.ts +3 -12
- package/runtime/node_modules/mediabunny/src/media-source.ts +5 -20
- package/runtime/node_modules/mediabunny/src/misc.ts +26 -5
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +5 -0
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +30 -19
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +76 -79
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/mediabunny/src/worker.ts +28 -0
- package/runtime/package-lock.json +162 -162
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-CNKanNZa.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-dXI31b0a.js → AgentManager-B8TTqJaL.js} +2 -2
- package/runtime/webapp/dist/assets/AiHubPane-Coyn3P-J.js +1 -0
- package/runtime/webapp/dist/assets/App-BGIGpBp3.js +68 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-DnzJOz5w.js +61 -0
- package/runtime/webapp/dist/assets/CalendarPage-D0oaq2_l.js +1 -0
- package/runtime/webapp/dist/assets/{CalendarView-QfbrlL9X.js → CalendarView-QXZbXnXA.js} +3 -3
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CE8OML-A.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-CV18iiBO.js +1 -0
- package/runtime/webapp/dist/assets/{CollaborationPage-B1tiqgnG.js → CollaborationPage-B2mIAc-h.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-CPY6dP8Q.js → FilePreview-BCEiERA1.js} +9 -9
- package/runtime/webapp/dist/assets/{FileTree-BBgrOian.js → FileTree-CMbs1Gj3.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BxFS-0sF.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-CVP0Q6zR.js +5 -0
- package/runtime/webapp/dist/assets/HostProjectPicker-DUUgM2Cm.js +1 -0
- package/runtime/webapp/dist/assets/{LSPServerList-B-R7HDSP.js → LSPServerList-COMVmsvb.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-CTc0iAwT.js → MCPServerList-C_juD6B4.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Dzh_miRv.js → MemoryViewer-Et2vysSN.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-DwJhkRJd.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Cqsea4X7.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BA_HQv3V.js → RemoteDesktopTabBridge-BFzNwpUn.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BvFSI9OF.js → RunningSessionsIcon-D_cOqmmk.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-DcPPoXe2.js → SessionDashboard-yjdEKypJ.js} +2 -2
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-CjoeUy-v.js → SessionDashboardBridge-Kc_1Et9r.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DmdXDQUm.js → SettingsPanel-t26XhKHP.js} +2 -2
- package/runtime/webapp/dist/assets/{SkillManager-CS_skFZj.js → SkillManager-nZU7b1sc.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BFHDRCb9.js → TaskPaneTerminal-BPaCKman.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-Dr_nY9pI.js → TerminalPane-CiIpI1Id.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-CG__S6_l.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-FEEApB15.js → abnfDiagram-VCTEODGH-DmKjGVfG.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CycwMc2c.js → arc-D6bpvBke.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BFq9JapX.js → architectureDiagram-5GKGNRK7-NEKc2BYf.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DkOJ55Ag.js → blockDiagram-I7D4REHJ-V6G00twZ.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CRvi_3RM.js → c4Diagram-7LVT6UL2-CojA33V5.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-CLwKstxM.js → calendar-days-DXE_2mLa.js} +1 -1
- package/runtime/webapp/dist/assets/channel-D66Qxmo0.js +1 -0
- package/runtime/webapp/dist/assets/{check-8EVJMrTV.js → check-UipgMBET.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-ChNxfI2x.js → chevron-down-Dvinwg2S.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-Cbkc_d70.js → chevron-right-BGU3tcLA.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-Cklzvs8u.js → chunk-2Q5K7J3B-DObpPEgk.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-NxozE5UP.js → chunk-5VM5RSS4-PaTzAg6w.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Dyb8E7YM.js → chunk-F27PBJKO-Pn4gut94.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BqbMMc1n.js → chunk-IMKFNOWR-nRaVFzK9.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-do0R2H6U.js → chunk-JWPE2WC7-CxssjKKN.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-B2HIaynf.js → chunk-POPQ4Y6H-CweDXr-B.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C_zmjkwn.js → chunk-SVP7TREG-C7T3FGE-.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Dh2bZgM1.js → chunk-TICWLB2K-Nc0H-0_V.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-CnqciVDz.js → chunk-XXDRQBXY-D_GQGF5g.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BAX0-S6b.js +1 -0
- package/runtime/webapp/dist/assets/{client-I0ZVCjOI.js → client-Bb0hpbIR.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-C8n4_KZS.js → codeSyntax-DHonp3tF.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-lVxWL5ce.js → collaboration-e_iziKU1.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-CWyT7leB.js +6 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-CulKVUkj.js → cose-bilkent-JH36ORCC-Ac_FBan4.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-C1LUI1_G.js → cynefin-OW5HDTMX-vr6c389q.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js → cynefinDiagram-5FMLGOSQ-sXmUCrp_.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DRaL0cGu.js → dagre-GXQ25YYZ-B0DmGxDv.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-D8gLHoZo.js → diagram-S7CK7UJ4-Dn-2jJ6S.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CaVU0aQT.js → diagram-UQ7AKVKN-BcasYsju.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-LFAKRvZz.js → diagram-VSXAHHWV-DCgGkc82.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-DXpxUERc.js → diagram-VX7I27RA-Cjs0Ny4i.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-vAiik55G.js → diagram-Z3DM3KII-0nyddp0v.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-MaFL7Kgb.js → ebnfDiagram-PWID7BFC-By7gCUsz.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DuEu79B3.js → erDiagram-RLTQ6QDP-DdwBp45A.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-ZVLWtslN.js → file-types-nujx8XUw.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BAQ6nP2D.js → flowDiagram-HODETNUW-DbOwRaT9.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-C48VBnPy.js → ganttDiagram-EL5Y4UJY-CG8obc7O.js} +3 -3
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js → gitGraphDiagram-WWUBYQGX-ru6aSu_g.js} +1 -1
- package/runtime/webapp/dist/assets/{history-D4E3D_aM.js → history-DaBh5_SJ.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-DQV_EEAN.js → image-plus-Cm9jq1yo.js} +1 -1
- package/runtime/webapp/dist/assets/index-BAGzBXQc.css +1 -0
- package/runtime/webapp/dist/assets/index-YrEOkxAg.js +500 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BM7P_-u_.js → infoDiagram-27XIBGKW-Crx1iSbW.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Cwd8XR-p.js → ishikawaDiagram-5VMMS53U-ClQPMEk5.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-MOgiksTh.js → journeyDiagram-3NMN7TZE-DHso2Xht.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DulC5OLL.js → kanban-definition-UXKFOSKX-D6psIAhv.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-Dku9sXQ7.js → layout-B6AVZ9v9.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-B3-dddD7.js → linear-CEZOUjlB.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-Bik5IY2r.js → list-todo-D9ChIz0f.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-C5C-IzGK.js → loader-circle-CAHZbD5s.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CHkezEEh.js → locate-fixed-2R48MVg_.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CRRXKysA.js → mermaid.core-DH0df9xk.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-CaaP-nEb.js → mindmap-definition-YA3MSWOX-QWt8leZC.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CekmYKqS.js → mobileViewport-CKvpvxYc.js} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-CiRwM3Od.js +191 -0
- package/runtime/webapp/dist/assets/{new-session-window-BfDMd-h3.css → new-session-window-DIU2v1uh.css} +1 -1
- package/runtime/webapp/dist/assets/{page-_fFyRId-.js → page-Cd9ci9uo.js} +6 -6
- package/runtime/webapp/dist/assets/{pause-BsmUCuwZ.js → pause-ddt7BLlm.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BqybPEwk.js → pegDiagram-XKGWAZYB-JNBt0nDx.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BX1H2lh2.js → pieDiagram-E7YTZNPT-g0hnDqNp.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BsEEYq8M.js → pin-BTP5lC_c.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-Btnywv1k.js → quadrantDiagram-AXDQQJYC-mLZASjSm.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-Da_TV1ER.js → railroadDiagram-O6MQD6OU-CAXNAZhB.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-5V1Aow9h.js → requirementDiagram-BXWQKSXE-BC8y1ZXE.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-BbSby0GQ.js → rotate-ccw-CHFTy38a.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-BMdX-ln4.js → rotate-cw-CFCtRFDl.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-D_OIVihV.js → sankeyDiagram-P5KCCOFB-Boi5NPjT.js} +1 -1
- package/runtime/webapp/dist/assets/{send-Cb7EWSJF.js → send-CzCncLlt.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-LKeF5Mri.js → sequenceDiagram-WJ2MYXX4-D4ccoVEB.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-BFqNDCc8.js → session-dashboard-C0KfSCDl.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-BK_qaCnb.js → session-tree-CTzXmV6R.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-C-r87aMq.js → shield-check-Da6EGdIt.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B6j7Q_MN.js → sizeCapture-INFHLROL-Cd5jIVgK.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-zhPFqHdQ.js → stateDiagram-D77RDMKH-DXlmaNwu.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dh6coc1l.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-C_FCENx1.js → swimlanes-42K2YHIH-DyhRB_e0.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BzriATjP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-C3DBXjDU.js → timeline-definition-24CTP7MA-Bkfs9Mi-.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-DjggJGbw.js → trash-2-C682LDDA.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BQCEWNQz.js → types-CfOuS-6l.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-BbTXGW7Z.js → use-session-activity-C9Cn92Hj.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CssdTIB0.js → vennDiagram-4TSXK5OY-APWT64sw.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-C58K2vVU.js → wardleyDiagram-VM6X3IG4-H7xLoxwM.js} +1 -1
- package/runtime/webapp/dist/assets/{web-B4y8vdRZ.js → web-CT8e03DV.js} +1 -1
- package/runtime/webapp/dist/assets/{web-D9rJZXHW.js → web-DG022HwJ.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CQi8bD6A.js → xychartDiagram-S5SC5T6Z-DIrxZ4UJ.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-iMMWRXJs.js → zoom-out-CRN76HNZ.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/ws-server.mjs +5 -0
- package/runtime/.next/static/chunks/app/web/error-30cea9cffce0ebc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-d8a4f4131e7f2330.js +0 -1
- package/runtime/.next/static/chunks/main-app-30a478479a347a9e.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +0 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +0 -28
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +0 -42
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +0 -20
- package/runtime/webapp/dist/assets/AIHubView-CM6ugXG3.js +0 -1
- package/runtime/webapp/dist/assets/AiHubPane-DFzC3nbd.js +0 -1
- package/runtime/webapp/dist/assets/App-mF6ELC07.js +0 -68
- package/runtime/webapp/dist/assets/BrowserLivePanel-CamAULwS.js +0 -61
- package/runtime/webapp/dist/assets/CalendarPage-BbYdGYWn.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-CWhmFQtA.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationDashboard-XL5SnFOu.js +0 -1
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BXDuKlrL.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-lnjLcd9c.js +0 -5
- package/runtime/webapp/dist/assets/HostProjectPicker-DN_vGqQb.js +0 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-zjqAUfKb.js +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-9AhztqA2.js +0 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +0 -1
- package/runtime/webapp/dist/assets/artifact-links-B0ApmgK6.js +0 -2
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +0 -1
- package/runtime/webapp/dist/assets/composer-file-routing-qSvJpT-v.js +0 -6
- package/runtime/webapp/dist/assets/download-BE31-Qm0.js +0 -6
- package/runtime/webapp/dist/assets/index-DSgLFE4Q.js +0 -489
- package/runtime/webapp/dist/assets/index-zQk0NCEB.css +0 -1
- package/runtime/webapp/dist/assets/new-session-window-Dgl7UWPR.js +0 -190
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +0 -8
- package/runtime/webapp/dist/assets/x-BYUglEo9.js +0 -6
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → _rMvYWpbWkNWrFkCQx3rK}/_ssgManifest.js +0 -0
|
@@ -1228,7 +1228,7 @@ var Mediabunny = (() => {
|
|
|
1228
1228
|
var shouldUseNativeTimers = () => {
|
|
1229
1229
|
return typeof window === "undefined";
|
|
1230
1230
|
};
|
|
1231
|
-
var
|
|
1231
|
+
var unthrottledTimerWorkerCode = () => {
|
|
1232
1232
|
const timeoutHandles = /* @__PURE__ */ new Map();
|
|
1233
1233
|
const intervalHandles = /* @__PURE__ */ new Map();
|
|
1234
1234
|
self.onmessage = (event) => {
|
|
@@ -1280,10 +1280,7 @@ var Mediabunny = (() => {
|
|
|
1280
1280
|
if (unthrottledTimerWorker) {
|
|
1281
1281
|
return unthrottledTimerWorker;
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1284
|
-
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
1285
|
-
unthrottledTimerWorker = new Worker(workerURL);
|
|
1286
|
-
URL.revokeObjectURL(workerURL);
|
|
1283
|
+
unthrottledTimerWorker = createWorker("unthrottled-timer", unthrottledTimerWorkerCode);
|
|
1287
1284
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1288
1285
|
const message = event.data;
|
|
1289
1286
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1299,6 +1296,24 @@ var Mediabunny = (() => {
|
|
|
1299
1296
|
};
|
|
1300
1297
|
return unthrottledTimerWorker;
|
|
1301
1298
|
};
|
|
1299
|
+
var workerBlobUrls = /* @__PURE__ */ new Map();
|
|
1300
|
+
var createWorker = (name, workerMain) => {
|
|
1301
|
+
const workerUrl = globalThis[Symbol.for("mediabunny:workerUrl")];
|
|
1302
|
+
if (workerUrl !== void 0 && typeof workerUrl !== "string" && !(workerUrl instanceof URL)) {
|
|
1303
|
+
throw new TypeError(
|
|
1304
|
+
"globalThis[Symbol.for('mediabunny:workerUrl')], when provided, must be a string or URL."
|
|
1305
|
+
);
|
|
1306
|
+
}
|
|
1307
|
+
if (workerUrl !== void 0) {
|
|
1308
|
+
return new Worker(workerUrl, { name });
|
|
1309
|
+
}
|
|
1310
|
+
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1311
|
+
if (!blobUrl) {
|
|
1312
|
+
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: "text/javascript" }));
|
|
1313
|
+
workerBlobUrls.set(workerMain, blobUrl);
|
|
1314
|
+
}
|
|
1315
|
+
return new Worker(blobUrl, { name });
|
|
1316
|
+
};
|
|
1302
1317
|
var setIntervalUnthrottled = (callback, delay) => {
|
|
1303
1318
|
if (shouldUseNativeTimers()) {
|
|
1304
1319
|
return { id: setInterval(callback, delay) };
|
|
@@ -2387,7 +2402,7 @@ var Mediabunny = (() => {
|
|
|
2387
2402
|
var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
|
|
2388
2403
|
|
|
2389
2404
|
// src/version.ts
|
|
2390
|
-
var VERSION = "1.66.
|
|
2405
|
+
var VERSION = "1.66.4";
|
|
2391
2406
|
var VERSIONED_NAME = `Mediabunny v${VERSION}`;
|
|
2392
2407
|
|
|
2393
2408
|
// src/codec-data.ts
|
|
@@ -9405,10 +9420,9 @@ var Mediabunny = (() => {
|
|
|
9405
9420
|
return new ReadableStream({
|
|
9406
9421
|
pull: async (controller) => {
|
|
9407
9422
|
try {
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
}
|
|
9423
|
+
const initPromise = initted ? null : Promise.resolve(getInit());
|
|
9424
|
+
void initPromise?.catch(() => {
|
|
9425
|
+
});
|
|
9412
9426
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
9413
9427
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
9414
9428
|
if (isThenable(nextSlice)) nextSlice = await nextSlice;
|
|
@@ -9422,6 +9436,10 @@ var Mediabunny = (() => {
|
|
|
9422
9436
|
const bytesToRead = sliceLength === requestedLength ? sliceLength - BLOCK_SIZE : sliceLength;
|
|
9423
9437
|
const input = readBytes(nextSlice, bytesToRead);
|
|
9424
9438
|
const output = new Uint8Array(bytesToRead);
|
|
9439
|
+
if (initPromise) {
|
|
9440
|
+
aesContext.init(await initPromise);
|
|
9441
|
+
initted = true;
|
|
9442
|
+
}
|
|
9425
9443
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
9426
9444
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
9427
9445
|
aesContext.decrypt();
|
|
@@ -9552,7 +9570,10 @@ var Mediabunny = (() => {
|
|
|
9552
9570
|
}
|
|
9553
9571
|
currentPos = startPos + boxInfo.totalSize;
|
|
9554
9572
|
}
|
|
9555
|
-
if (!foundMovieBoxes
|
|
9573
|
+
if (!foundMovieBoxes) {
|
|
9574
|
+
if (!this.input._initInput) {
|
|
9575
|
+
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9576
|
+
}
|
|
9556
9577
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9557
9578
|
}
|
|
9558
9579
|
if (lookForMfraBox) {
|
|
@@ -12157,6 +12178,10 @@ var Mediabunny = (() => {
|
|
|
12157
12178
|
if (!sampleInfo) {
|
|
12158
12179
|
return null;
|
|
12159
12180
|
}
|
|
12181
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12182
|
+
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12183
|
+
return null;
|
|
12184
|
+
}
|
|
12160
12185
|
let data;
|
|
12161
12186
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12162
12187
|
data = PLACEHOLDER_DATA;
|
|
@@ -12211,6 +12236,10 @@ var Mediabunny = (() => {
|
|
|
12211
12236
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12212
12237
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12213
12238
|
assert(fragmentSample);
|
|
12239
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12240
|
+
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12241
|
+
return null;
|
|
12242
|
+
}
|
|
12214
12243
|
let data;
|
|
12215
12244
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12216
12245
|
data = PLACEHOLDER_DATA;
|
|
@@ -13633,6 +13662,9 @@ var Mediabunny = (() => {
|
|
|
13633
13662
|
assertDefinedSize(size);
|
|
13634
13663
|
currentPos = dataStartPos + size;
|
|
13635
13664
|
}
|
|
13665
|
+
if (this.segments.length === 0) {
|
|
13666
|
+
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13667
|
+
}
|
|
13636
13668
|
})();
|
|
13637
13669
|
}
|
|
13638
13670
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17277,6 +17309,10 @@ var Mediabunny = (() => {
|
|
|
17277
17309
|
if (!rawSample) {
|
|
17278
17310
|
return null;
|
|
17279
17311
|
}
|
|
17312
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
17313
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17314
|
+
return null;
|
|
17315
|
+
}
|
|
17280
17316
|
let data;
|
|
17281
17317
|
if (options.metadataOnly) {
|
|
17282
17318
|
data = PLACEHOLDER_DATA;
|
|
@@ -19097,6 +19133,10 @@ var Mediabunny = (() => {
|
|
|
19097
19133
|
if (!rawSample) {
|
|
19098
19134
|
return null;
|
|
19099
19135
|
}
|
|
19136
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
19137
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
19138
|
+
return null;
|
|
19139
|
+
}
|
|
19100
19140
|
let data;
|
|
19101
19141
|
if (options.metadataOnly) {
|
|
19102
19142
|
data = PLACEHOLDER_DATA;
|
|
@@ -19882,6 +19922,7 @@ var Mediabunny = (() => {
|
|
|
19882
19922
|
let programMapPid = null;
|
|
19883
19923
|
let hasProgramAssociationTable = false;
|
|
19884
19924
|
let hasProgramMap = false;
|
|
19925
|
+
let initDemuxer = null;
|
|
19885
19926
|
while (true) {
|
|
19886
19927
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19887
19928
|
if (!packetHeader) {
|
|
@@ -20122,22 +20163,26 @@ var Mediabunny = (() => {
|
|
|
20122
20163
|
}
|
|
20123
20164
|
elementaryStream.firstSection = section;
|
|
20124
20165
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
20125
|
-
if (this.input._initInput) {
|
|
20126
|
-
const initDemuxer = await this.input._initInput._getDemuxer();
|
|
20127
|
-
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20128
|
-
throw new Error("Init input must match the input's format.");
|
|
20129
|
-
}
|
|
20130
|
-
await initDemuxer.readMetadata();
|
|
20131
|
-
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20132
|
-
if (matchingStream) {
|
|
20133
|
-
elementaryStream.info = matchingStream.info;
|
|
20134
|
-
elementaryStream.initialized = true;
|
|
20135
|
-
break outer;
|
|
20136
|
-
}
|
|
20137
|
-
}
|
|
20138
20166
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20139
20167
|
if (elementaryStream.info.type === "video") {
|
|
20168
|
+
let packetCount = 0;
|
|
20140
20169
|
while (true) {
|
|
20170
|
+
if (packetCount === 1 && this.input._initInput) {
|
|
20171
|
+
if (!initDemuxer) {
|
|
20172
|
+
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20173
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20174
|
+
throw new Error("Init input must match the input's format.");
|
|
20175
|
+
}
|
|
20176
|
+
await initDemuxer.readMetadata();
|
|
20177
|
+
}
|
|
20178
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20179
|
+
if (matchingStream) {
|
|
20180
|
+
elementaryStream.info = matchingStream.info;
|
|
20181
|
+
elementaryStream.initialized = true;
|
|
20182
|
+
break outer;
|
|
20183
|
+
}
|
|
20184
|
+
}
|
|
20185
|
+
packetCount++;
|
|
20141
20186
|
const contextAlias = context;
|
|
20142
20187
|
contextAlias.suppliedPacket = null;
|
|
20143
20188
|
await context.markNextPacket();
|
|
@@ -21890,7 +21935,7 @@ var Mediabunny = (() => {
|
|
|
21890
21935
|
if (!this.firstSegment) {
|
|
21891
21936
|
return [];
|
|
21892
21937
|
}
|
|
21893
|
-
const input = this.getInputForSegment(this.firstSegment);
|
|
21938
|
+
const input = this.getInputForSegment(this.firstSegment.initSegment ?? this.firstSegment);
|
|
21894
21939
|
const inputTracks = await input.getTracks();
|
|
21895
21940
|
for (const track of inputTracks) {
|
|
21896
21941
|
if (track.type === "video") {
|
|
@@ -21958,34 +22003,34 @@ var Mediabunny = (() => {
|
|
|
21958
22003
|
constructor(segmentedInput, decl, number) {
|
|
21959
22004
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
21960
22005
|
this.hydrationPromise = null;
|
|
21961
|
-
this.
|
|
21962
|
-
this.firstSegment = null;
|
|
22006
|
+
this.metadataInputTrack = null;
|
|
21963
22007
|
this.segmentedInput = segmentedInput;
|
|
21964
22008
|
this.decl = decl;
|
|
21965
22009
|
this.number = number;
|
|
21966
22010
|
}
|
|
21967
22011
|
hydrate() {
|
|
21968
22012
|
return this.hydrationPromise ??= (async () => {
|
|
21969
|
-
|
|
21970
|
-
if (!this.segmentedInput.firstSegment) {
|
|
21971
|
-
throw new Error("Missing first segment, can't retrieve track.");
|
|
21972
|
-
}
|
|
21973
|
-
let currentSegment = this.segmentedInput.firstSegment;
|
|
22013
|
+
const firstSegment = await this.getFirstSegment();
|
|
21974
22014
|
let track = null;
|
|
21975
|
-
|
|
21976
|
-
const
|
|
21977
|
-
const inputTracks = await input.getTracks();
|
|
22015
|
+
if (firstSegment.initSegment) {
|
|
22016
|
+
const inputTracks = await this.segmentedInput.getInputForSegment(firstSegment.initSegment).getTracks();
|
|
21978
22017
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21979
|
-
|
|
21980
|
-
|
|
22018
|
+
} else {
|
|
22019
|
+
let currentSegment = firstSegment;
|
|
22020
|
+
while (currentSegment) {
|
|
22021
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22022
|
+
const inputTracks = await input.getTracks();
|
|
22023
|
+
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22024
|
+
if (track) {
|
|
22025
|
+
break;
|
|
22026
|
+
}
|
|
22027
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21981
22028
|
}
|
|
21982
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21983
22029
|
}
|
|
21984
22030
|
if (!track) {
|
|
21985
22031
|
throw new Error("No matching track found in underlying media data.");
|
|
21986
22032
|
}
|
|
21987
|
-
this.
|
|
21988
|
-
this.firstSegment = currentSegment;
|
|
22033
|
+
this.metadataInputTrack = track;
|
|
21989
22034
|
})();
|
|
21990
22035
|
}
|
|
21991
22036
|
getType() {
|
|
@@ -21996,53 +22041,52 @@ var Mediabunny = (() => {
|
|
|
21996
22041
|
}
|
|
21997
22042
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
21998
22043
|
delegate(fn) {
|
|
21999
|
-
if (this.
|
|
22044
|
+
if (this.metadataInputTrack) {
|
|
22000
22045
|
return fn();
|
|
22001
22046
|
}
|
|
22002
22047
|
return this.hydrate().then(fn);
|
|
22003
22048
|
}
|
|
22004
22049
|
async getDecoderConfig() {
|
|
22005
|
-
return this.delegate(() => this.
|
|
22050
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22006
22051
|
}
|
|
22007
22052
|
getHasOnlyKeyPackets() {
|
|
22008
22053
|
return this.delegate(() => {
|
|
22009
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
22054
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.metadataInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
22010
22055
|
});
|
|
22011
22056
|
}
|
|
22012
22057
|
getPairingMask() {
|
|
22013
22058
|
return 1n;
|
|
22014
22059
|
}
|
|
22015
22060
|
getCodec() {
|
|
22016
|
-
return this.delegate(() => this.
|
|
22061
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22017
22062
|
}
|
|
22018
22063
|
getInternalCodecId() {
|
|
22019
|
-
return this.delegate(() => this.
|
|
22064
|
+
return this.delegate(() => this.metadataInputTrack._backing.getInternalCodecId());
|
|
22020
22065
|
}
|
|
22021
22066
|
getDisposition() {
|
|
22022
|
-
return this.delegate(() => this.
|
|
22067
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDisposition());
|
|
22023
22068
|
}
|
|
22024
22069
|
getLanguageCode() {
|
|
22025
|
-
return this.delegate(() => this.
|
|
22070
|
+
return this.delegate(() => this.metadataInputTrack._backing.getLanguageCode());
|
|
22026
22071
|
}
|
|
22027
22072
|
getName() {
|
|
22028
|
-
return this.delegate(() => this.
|
|
22073
|
+
return this.delegate(() => this.metadataInputTrack._backing.getName());
|
|
22029
22074
|
}
|
|
22030
22075
|
getTimeResolution() {
|
|
22031
|
-
return this.delegate(() => this.
|
|
22076
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTimeResolution());
|
|
22032
22077
|
}
|
|
22033
22078
|
async isRelativeToUnixEpoch() {
|
|
22034
|
-
await this.
|
|
22035
|
-
|
|
22036
|
-
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
22079
|
+
const firstSegment = await this.getFirstSegment();
|
|
22080
|
+
return firstSegment.unixEpochTimestamp === firstSegment.timestamp;
|
|
22037
22081
|
}
|
|
22038
22082
|
getUnixTimeForTimestamp(timestamp) {
|
|
22039
22083
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
22040
22084
|
}
|
|
22041
22085
|
getBitrate() {
|
|
22042
|
-
return this.delegate(() => this.
|
|
22086
|
+
return this.delegate(() => this.metadataInputTrack._backing.getBitrate());
|
|
22043
22087
|
}
|
|
22044
22088
|
getAverageBitrate() {
|
|
22045
|
-
return this.delegate(() => this.
|
|
22089
|
+
return this.delegate(() => this.metadataInputTrack._backing.getAverageBitrate());
|
|
22046
22090
|
}
|
|
22047
22091
|
getDurationFromMetadata(options) {
|
|
22048
22092
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -22052,9 +22096,9 @@ var Mediabunny = (() => {
|
|
|
22052
22096
|
}
|
|
22053
22097
|
async createAdjustedPacket(packet, segment, track) {
|
|
22054
22098
|
assert(packet.sequenceNumber >= 0);
|
|
22055
|
-
|
|
22099
|
+
const firstSegment = await this.getFirstSegment();
|
|
22056
22100
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
22057
|
-
const segmentTimestampRelativeToFirst = segment.timestamp -
|
|
22101
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
22058
22102
|
const modified = packet.clone({
|
|
22059
22103
|
timestamp: roundToDivisor(
|
|
22060
22104
|
packet.timestamp + mediaOffset,
|
|
@@ -22072,30 +22116,33 @@ var Mediabunny = (() => {
|
|
|
22072
22116
|
return modified;
|
|
22073
22117
|
}
|
|
22074
22118
|
async getFirstPacket(options) {
|
|
22075
|
-
await this.
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
let
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
|
|
22082
|
-
|
|
22119
|
+
const firstSegment = await this.getFirstSegment();
|
|
22120
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
22121
|
+
});
|
|
22122
|
+
let currentSegment = firstSegment;
|
|
22123
|
+
while (currentSegment) {
|
|
22124
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22125
|
+
const tracks = await input.getTracks();
|
|
22126
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22127
|
+
if (track) {
|
|
22128
|
+
const packet = await track._backing.getFirstPacket(options);
|
|
22083
22129
|
if (packet) {
|
|
22084
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
22130
|
+
return this.createAdjustedPacket(packet, currentSegment, track);
|
|
22085
22131
|
}
|
|
22086
22132
|
}
|
|
22087
22133
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
22088
22134
|
skipLiveWait: options.skipLiveWait
|
|
22089
22135
|
});
|
|
22090
|
-
if (!currentSegment) {
|
|
22091
|
-
break;
|
|
22092
|
-
}
|
|
22093
|
-
const nextInput = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22094
|
-
const nextTracks = await nextInput.getTracks();
|
|
22095
|
-
currentTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number) ?? null;
|
|
22096
22136
|
}
|
|
22097
22137
|
return null;
|
|
22098
22138
|
}
|
|
22139
|
+
async getFirstSegment() {
|
|
22140
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
22141
|
+
if (!this.segmentedInput.firstSegment) {
|
|
22142
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
22143
|
+
}
|
|
22144
|
+
return this.segmentedInput.firstSegment;
|
|
22145
|
+
}
|
|
22099
22146
|
getNextPacket(packet, options) {
|
|
22100
22147
|
return this._getNextInternal(packet, options, false);
|
|
22101
22148
|
}
|
|
@@ -22151,11 +22198,12 @@ var Mediabunny = (() => {
|
|
|
22151
22198
|
if (!currentSegment) {
|
|
22152
22199
|
return null;
|
|
22153
22200
|
}
|
|
22154
|
-
|
|
22201
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(currentSegment.discontinuityNumber).catch(() => {
|
|
22202
|
+
});
|
|
22155
22203
|
while (currentSegment) {
|
|
22156
22204
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22157
22205
|
const tracks = await input.getTracks();
|
|
22158
|
-
const track = tracks.find((t) => t.type === this.
|
|
22206
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22159
22207
|
if (!track) {
|
|
22160
22208
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22161
22209
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22195,7 +22243,7 @@ var Mediabunny = (() => {
|
|
|
22195
22243
|
if (nextSegment) {
|
|
22196
22244
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22197
22245
|
const nextTracks = await nextInput.getTracks();
|
|
22198
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22246
|
+
const nextTrack = nextTracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22199
22247
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22200
22248
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22201
22249
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22231,31 +22279,31 @@ var Mediabunny = (() => {
|
|
|
22231
22279
|
return "video";
|
|
22232
22280
|
}
|
|
22233
22281
|
getCodec() {
|
|
22234
|
-
return this.delegate(() => this.
|
|
22282
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22235
22283
|
}
|
|
22236
22284
|
getCodedWidth() {
|
|
22237
|
-
return this.delegate(() => this.
|
|
22285
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedWidth());
|
|
22238
22286
|
}
|
|
22239
22287
|
getCodedHeight() {
|
|
22240
|
-
return this.delegate(() => this.
|
|
22288
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedHeight());
|
|
22241
22289
|
}
|
|
22242
22290
|
getSquarePixelWidth() {
|
|
22243
|
-
return this.delegate(() => this.
|
|
22291
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelWidth());
|
|
22244
22292
|
}
|
|
22245
22293
|
getSquarePixelHeight() {
|
|
22246
|
-
return this.delegate(() => this.
|
|
22294
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelHeight());
|
|
22247
22295
|
}
|
|
22248
22296
|
getTransformationMatrix() {
|
|
22249
|
-
return this.delegate(() => this.
|
|
22297
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTransformationMatrix());
|
|
22250
22298
|
}
|
|
22251
22299
|
async getColorSpace() {
|
|
22252
|
-
return this.delegate(() => this.
|
|
22300
|
+
return this.delegate(() => this.metadataInputTrack._backing.getColorSpace());
|
|
22253
22301
|
}
|
|
22254
22302
|
async canBeTransparent() {
|
|
22255
|
-
return this.delegate(() => this.
|
|
22303
|
+
return this.delegate(() => this.metadataInputTrack._backing.canBeTransparent());
|
|
22256
22304
|
}
|
|
22257
22305
|
async getDecoderConfig() {
|
|
22258
|
-
return this.delegate(() => this.
|
|
22306
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22259
22307
|
}
|
|
22260
22308
|
};
|
|
22261
22309
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22263,16 +22311,16 @@ var Mediabunny = (() => {
|
|
|
22263
22311
|
return "audio";
|
|
22264
22312
|
}
|
|
22265
22313
|
getCodec() {
|
|
22266
|
-
return this.delegate(() => this.
|
|
22314
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22267
22315
|
}
|
|
22268
22316
|
getNumberOfChannels() {
|
|
22269
|
-
return this.delegate(() => this.
|
|
22317
|
+
return this.delegate(() => this.metadataInputTrack._backing.getNumberOfChannels());
|
|
22270
22318
|
}
|
|
22271
22319
|
getSampleRate() {
|
|
22272
|
-
return this.delegate(() => this.
|
|
22320
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSampleRate());
|
|
22273
22321
|
}
|
|
22274
22322
|
async getDecoderConfig() {
|
|
22275
|
-
return this.delegate(() => this.
|
|
22323
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22276
22324
|
}
|
|
22277
22325
|
};
|
|
22278
22326
|
|
|
@@ -24653,8 +24701,12 @@ var Mediabunny = (() => {
|
|
|
24653
24701
|
return cacheEntry.input;
|
|
24654
24702
|
}
|
|
24655
24703
|
let initInput = null;
|
|
24656
|
-
if (hlsSegment.initSegment
|
|
24657
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment
|
|
24704
|
+
if (hlsSegment.initSegment) {
|
|
24705
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24706
|
+
void initInput.getTracks().catch(() => {
|
|
24707
|
+
});
|
|
24708
|
+
} else if (hlsSegment.firstSegment) {
|
|
24709
|
+
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24658
24710
|
}
|
|
24659
24711
|
const formatOptions = {
|
|
24660
24712
|
...this.input._formatOptions,
|
|
@@ -24775,17 +24827,21 @@ var Mediabunny = (() => {
|
|
|
24775
24827
|
}
|
|
24776
24828
|
getFirstSegmentTimestampOffset() {
|
|
24777
24829
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24778
|
-
const firstSegment = await this.getFirstSegment();
|
|
24779
|
-
assert(firstSegment);
|
|
24780
24830
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24781
24831
|
if (this === referenceSegmentedInput) {
|
|
24782
24832
|
return 0;
|
|
24783
24833
|
}
|
|
24784
|
-
const referenceFirstSegment = await
|
|
24834
|
+
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
24835
|
+
this.getFirstSegment(),
|
|
24836
|
+
referenceSegmentedInput.getFirstSegment()
|
|
24837
|
+
]);
|
|
24838
|
+
assert(firstSegment);
|
|
24785
24839
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24786
24840
|
return 0;
|
|
24787
24841
|
}
|
|
24788
24842
|
const input = this.getInputForSegment(firstSegment);
|
|
24843
|
+
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24844
|
+
});
|
|
24789
24845
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24790
24846
|
return 0;
|
|
24791
24847
|
}
|
|
@@ -25431,14 +25487,17 @@ var Mediabunny = (() => {
|
|
|
25431
25487
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25432
25488
|
}
|
|
25433
25489
|
async getFirstPacket(options) {
|
|
25490
|
+
this.prefetchReferencePlaylist();
|
|
25434
25491
|
await this.hydrate();
|
|
25435
25492
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25436
25493
|
}
|
|
25437
25494
|
async getPacket(timestamp, options) {
|
|
25495
|
+
this.prefetchReferencePlaylist();
|
|
25438
25496
|
await this.hydrate();
|
|
25439
25497
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25440
25498
|
}
|
|
25441
25499
|
async getKeyPacket(timestamp, options) {
|
|
25500
|
+
this.prefetchReferencePlaylist();
|
|
25442
25501
|
await this.hydrate();
|
|
25443
25502
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25444
25503
|
}
|
|
@@ -25450,6 +25509,10 @@ var Mediabunny = (() => {
|
|
|
25450
25509
|
await this.hydrate();
|
|
25451
25510
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25452
25511
|
}
|
|
25512
|
+
prefetchReferencePlaylist() {
|
|
25513
|
+
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25514
|
+
});
|
|
25515
|
+
}
|
|
25453
25516
|
};
|
|
25454
25517
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25455
25518
|
constructor(internalTrack) {
|
|
@@ -27144,7 +27207,6 @@ var Mediabunny = (() => {
|
|
|
27144
27207
|
this.sampleQueue.length = 0;
|
|
27145
27208
|
}
|
|
27146
27209
|
};
|
|
27147
|
-
var mergerWorkerUrl = null;
|
|
27148
27210
|
var ColorAlphaMerger = class {
|
|
27149
27211
|
constructor() {
|
|
27150
27212
|
this.workers = [];
|
|
@@ -27154,16 +27216,9 @@ var Mediabunny = (() => {
|
|
|
27154
27216
|
}
|
|
27155
27217
|
merge(color, alpha) {
|
|
27156
27218
|
if (this.workers.length === 0) {
|
|
27157
|
-
if (!mergerWorkerUrl) {
|
|
27158
|
-
const blob = new Blob(
|
|
27159
|
-
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
27160
|
-
{ type: "application/javascript" }
|
|
27161
|
-
);
|
|
27162
|
-
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
27163
|
-
}
|
|
27164
27219
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27165
27220
|
for (let i = 0; i < poolSize; i++) {
|
|
27166
|
-
const worker2 =
|
|
27221
|
+
const worker2 = createWorker("color-alpha-merger", colorAlphaMergerWorkerCode);
|
|
27167
27222
|
worker2.addEventListener("message", (event) => {
|
|
27168
27223
|
const data = event.data;
|
|
27169
27224
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30869,7 +30924,6 @@ var Mediabunny = (() => {
|
|
|
30869
30924
|
return chunkTimestamp === 500;
|
|
30870
30925
|
})();
|
|
30871
30926
|
};
|
|
30872
|
-
var splitterWorkerUrl = null;
|
|
30873
30927
|
var ColorAlphaSplitter = class {
|
|
30874
30928
|
constructor() {
|
|
30875
30929
|
this.worker = null;
|
|
@@ -30878,14 +30932,7 @@ var Mediabunny = (() => {
|
|
|
30878
30932
|
}
|
|
30879
30933
|
split(sourceFrame) {
|
|
30880
30934
|
if (!this.worker) {
|
|
30881
|
-
|
|
30882
|
-
const blob = new Blob(
|
|
30883
|
-
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
30884
|
-
{ type: "application/javascript" }
|
|
30885
|
-
);
|
|
30886
|
-
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
30887
|
-
}
|
|
30888
|
-
this.worker = new Worker(splitterWorkerUrl);
|
|
30935
|
+
this.worker = createWorker("color-alpha-splitter", colorAlphaSplitterWorkerCode);
|
|
30889
30936
|
this.worker.addEventListener("message", (event) => {
|
|
30890
30937
|
const data = event.data;
|
|
30891
30938
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32474,12 +32521,7 @@ var Mediabunny = (() => {
|
|
|
32474
32521
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32475
32522
|
var mediaStreamTrackProcessorWorker = null;
|
|
32476
32523
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32477
|
-
|
|
32478
|
-
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32479
|
-
{ type: "application/javascript" }
|
|
32480
|
-
);
|
|
32481
|
-
const url2 = URL.createObjectURL(blob);
|
|
32482
|
-
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32524
|
+
mediaStreamTrackProcessorWorker = createWorker("media-stream-track-processor", mediaStreamTrackProcessorWorkerCode);
|
|
32483
32525
|
};
|
|
32484
32526
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32485
32527
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35543,8 +35585,8 @@ var Mediabunny = (() => {
|
|
|
35543
35585
|
var tfdt = (trackData) => {
|
|
35544
35586
|
assert(trackData.currentChunk);
|
|
35545
35587
|
return fullBox("tfdt", 1, 0, [
|
|
35546
|
-
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35547
35588
|
// Base Media Decode Time
|
|
35589
|
+
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35548
35590
|
]);
|
|
35549
35591
|
};
|
|
35550
35592
|
var trun = (trackData) => {
|
|
@@ -37512,16 +37554,27 @@ var Mediabunny = (() => {
|
|
|
37512
37554
|
trackData.timestampProcessingQueue.length = 0;
|
|
37513
37555
|
return;
|
|
37514
37556
|
}
|
|
37515
|
-
const
|
|
37557
|
+
const queue = trackData.timestampProcessingQueue;
|
|
37558
|
+
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37559
|
+
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37516
37560
|
if (this.isFragmented) {
|
|
37517
37561
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37518
37562
|
} else {
|
|
37519
37563
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37520
37564
|
}
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
37565
|
+
let groupStartTimescaleUnits;
|
|
37566
|
+
if (trackData.lastTimescaleUnits === null) {
|
|
37567
|
+
groupStartTimescaleUnits = firstTimestampInTimescale;
|
|
37568
|
+
} else {
|
|
37569
|
+
assert(trackData.lastSample);
|
|
37570
|
+
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37571
|
+
}
|
|
37572
|
+
let lastDecodeStep = 0;
|
|
37573
|
+
for (let i = 0; i < queue.length; i++) {
|
|
37574
|
+
const sample = queue[i];
|
|
37575
|
+
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37576
|
+
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37577
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37525
37578
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37526
37579
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37527
37580
|
assert(trackData.lastSample);
|
|
@@ -37530,6 +37583,7 @@ var Mediabunny = (() => {
|
|
|
37530
37583
|
assert(delta >= 0);
|
|
37531
37584
|
trackData.lastTimescaleUnits += delta;
|
|
37532
37585
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37586
|
+
lastDecodeStep = delta;
|
|
37533
37587
|
if (!this.isFragmented) {
|
|
37534
37588
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37535
37589
|
assert(lastTableEntry);
|
|
@@ -37585,11 +37639,15 @@ var Mediabunny = (() => {
|
|
|
37585
37639
|
trackData.timestampProcessingQueue.length = 0;
|
|
37586
37640
|
assert(trackData.lastSample);
|
|
37587
37641
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37588
|
-
if (nextSample
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37642
|
+
if (nextSample) {
|
|
37643
|
+
const nextTimestampInTimescale = intoTimescale(nextSample.timestamp, trackData.timescale);
|
|
37644
|
+
trackData.lastSample.timescaleUnitsToNextSample = Math.max(
|
|
37645
|
+
nextTimestampInTimescale - Math.round(trackData.lastTimescaleUnits),
|
|
37646
|
+
// With open GOPs, the last sample's decode timestamp may already lie past the next key frame. Then, it
|
|
37647
|
+
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37648
|
+
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37649
|
+
lastDecodeStep
|
|
37650
|
+
);
|
|
37593
37651
|
}
|
|
37594
37652
|
}
|
|
37595
37653
|
async registerSample(trackData, sample) {
|