agentroam-runtime-darwin-arm64 0.2.0-preview.81 → 0.2.0-preview.83
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 +26 -25
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +10 -10
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/react-loadable-manifest.json +4 -4
- 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 +39 -38
- 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/middleware-react-loadable-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/20.2eb9bc3a5b4d410b.js +1 -0
- package/runtime/.next/static/chunks/325-0818ba5a4060a0e8.js +1 -0
- package/runtime/.next/static/chunks/34.c7dbf7ffc8914be9.js +1 -0
- package/runtime/.next/static/chunks/686.7b5c444243fcf29a.js +1 -0
- 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-8adf166584b0088e.js +1 -0
- 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/.next/static/chunks/{webpack-f51a057f833e73eb.js → webpack-040c7a20dd455025.js} +1 -1
- package/runtime/.next/static/css/645d4c94ea111811.css +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/lib/tunnel-control.mjs +1 -1
- 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 +295 -70
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +498 -150
- 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 +225 -136
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +10 -10
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +11 -11
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +225 -136
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +225 -136
- 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 +62 -12
- 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 +74 -14
- 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/metadata.ts +1 -0
- 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-HV2FIroL.js +1 -0
- package/runtime/webapp/dist/assets/{AgentManager-dXI31b0a.js → AgentManager-C4zPGI-Y.js} +2 -2
- package/runtime/webapp/dist/assets/AiHubPane-CEjQjdqT.js +1 -0
- package/runtime/webapp/dist/assets/App-CS2wVlfV.js +68 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-BwtEM-IV.js +61 -0
- package/runtime/webapp/dist/assets/{CalendarPage-BbYdGYWn.js → CalendarPage-DY8pZK7d.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarView-QfbrlL9X.js → CalendarView-CuBzp-g8.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-CWhmFQtA.js → CollaborationCreateDialog-DsXkxAd1.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-XL5SnFOu.js → CollaborationDashboard-CvE5vaOh.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-B1tiqgnG.js → CollaborationPage-Cjeo60S0.js} +2 -2
- package/runtime/webapp/dist/assets/{FilePreview-CPY6dP8Q.js → FilePreview-CyXKv1Cu.js} +9 -9
- package/runtime/webapp/dist/assets/{FileTree-BBgrOian.js → FileTree-DNI9VhEp.js} +2 -2
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-DRluuYWn.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-CKlzxza_.js +5 -0
- package/runtime/webapp/dist/assets/{HostProjectPicker-DN_vGqQb.js → HostProjectPicker-CjlxN2ct.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-B-R7HDSP.js → LSPServerList-BbAS_sm-.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-CTc0iAwT.js → MCPServerList-DkVUlKEJ.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Dzh_miRv.js → MemoryViewer-Ywl80xth.js} +1 -1
- package/runtime/webapp/dist/assets/NewSessionWindow-B4H26X5c.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-B4q2I23i.js +1 -0
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BA_HQv3V.js → RemoteDesktopTabBridge-B_cCKi7K.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BvFSI9OF.js → RunningSessionsIcon-Cz8_524L.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-DcPPoXe2.js → SessionDashboard-DXPSvNsY.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-CjoeUy-v.js → SessionDashboardBridge-7BjKdfN8.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DmdXDQUm.js → SettingsPanel-C78O9_ho.js} +2 -2
- package/runtime/webapp/dist/assets/{SkillManager-CS_skFZj.js → SkillManager-BdkBUxhH.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-BFHDRCb9.js → TaskPaneTerminal-B2WKBysj.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-Dr_nY9pI.js → TerminalPane-CxGcN85G.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-CdzjZR2O.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-FEEApB15.js → abnfDiagram-VCTEODGH-DFIXyU71.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CycwMc2c.js → arc-CLpaLEla.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-BFq9JapX.js → architectureDiagram-5GKGNRK7-Df8T0lx0.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DkOJ55Ag.js → blockDiagram-I7D4REHJ-jCoyPZhV.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-CRvi_3RM.js → c4Diagram-7LVT6UL2-DsZuTCuo.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-CLwKstxM.js → calendar-days-BIRmYMrW.js} +1 -1
- package/runtime/webapp/dist/assets/channel-0IyV-PVi.js +1 -0
- package/runtime/webapp/dist/assets/{check-8EVJMrTV.js → check-DCU8YHqr.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-ChNxfI2x.js → chevron-down-BUEiUZA7.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-Cbkc_d70.js → chevron-right-B_ITnckH.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-Cklzvs8u.js → chunk-2Q5K7J3B-BEZp3wuG.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-NxozE5UP.js → chunk-5VM5RSS4-BGGDhFwD.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-Dyb8E7YM.js → chunk-F27PBJKO-Mqzm4ODE.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BqbMMc1n.js → chunk-IMKFNOWR-DtnGgUQJ.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-do0R2H6U.js → chunk-JWPE2WC7-By3kXE4y.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-B2HIaynf.js → chunk-POPQ4Y6H-BTHuMHN1.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-C_zmjkwn.js → chunk-SVP7TREG-BeWH1pvB.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-Dh2bZgM1.js → chunk-TICWLB2K-oiekJTZh.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-CnqciVDz.js → chunk-XXDRQBXY-B7CKqUBs.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-Dm5zwUmQ.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-Dm5zwUmQ.js +1 -0
- package/runtime/webapp/dist/assets/{client-I0ZVCjOI.js → client-BpqlZTm2.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-C8n4_KZS.js → codeSyntax-GjP28nDI.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-lVxWL5ce.js → collaboration-CYS2Soeh.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-DHdpFYk8.js +6 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-CulKVUkj.js → cose-bilkent-JH36ORCC-BmhhO76e.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-C1LUI1_G.js → cynefin-OW5HDTMX-BesIxLGS.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js → cynefinDiagram-5FMLGOSQ-DdF6XhwX.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DRaL0cGu.js → dagre-GXQ25YYZ-CxUfRr5w.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-D8gLHoZo.js → diagram-S7CK7UJ4-zSD7nygh.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-CaVU0aQT.js → diagram-UQ7AKVKN-CgirUu7t.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-LFAKRvZz.js → diagram-VSXAHHWV-CkI9kDpP.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-DXpxUERc.js → diagram-VX7I27RA-ZfbGJBGR.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-vAiik55G.js → diagram-Z3DM3KII-CA44IJP4.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-MaFL7Kgb.js → ebnfDiagram-PWID7BFC-CVwSxyot.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-DuEu79B3.js → erDiagram-RLTQ6QDP-DwjlVHEs.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-ZVLWtslN.js → file-types-Dj25tuty.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BAQ6nP2D.js → flowDiagram-HODETNUW-CEt0pwA8.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-C48VBnPy.js → ganttDiagram-EL5Y4UJY-CNsj7gWS.js} +3 -3
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js → gitGraphDiagram-WWUBYQGX-ERbll1_Q.js} +1 -1
- package/runtime/webapp/dist/assets/{history-D4E3D_aM.js → history-DTS97eAH.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-DQV_EEAN.js → image-plus-BmlwMe18.js} +1 -1
- package/runtime/webapp/dist/assets/index-C30NoLsn.js +500 -0
- package/runtime/webapp/dist/assets/index-COFV-DUC.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BM7P_-u_.js → infoDiagram-27XIBGKW-BiMEmJW5.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Cwd8XR-p.js → ishikawaDiagram-5VMMS53U-CPlJXmF2.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-MOgiksTh.js → journeyDiagram-3NMN7TZE-DJJ-qvlw.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DulC5OLL.js → kanban-definition-UXKFOSKX-PHmavvDJ.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-Dku9sXQ7.js → layout-DH5OfcVL.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-B3-dddD7.js → linear-DQek-QDQ.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-Bik5IY2r.js → list-todo-DULblcsU.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CHkezEEh.js → locate-fixed-B3zScPI-.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CRRXKysA.js → mermaid.core-D6eHnLLU.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-CaaP-nEb.js → mindmap-definition-YA3MSWOX-D0TkZusX.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-CekmYKqS.js → mobileViewport-BhIxH-zP.js} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BfDMd-h3.css → new-session-window-DIU2v1uh.css} +1 -1
- package/runtime/webapp/dist/assets/new-session-window-bxVA-U3Y.js +191 -0
- package/runtime/webapp/dist/assets/page-DyPXAvyj.js +86 -0
- package/runtime/webapp/dist/assets/{pause-BsmUCuwZ.js → pause-C793N3J1.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BqybPEwk.js → pegDiagram-XKGWAZYB-DMIjPBzH.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BX1H2lh2.js → pieDiagram-E7YTZNPT-DctF47JZ.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-BsEEYq8M.js → pin-BLVakDSL.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-Btnywv1k.js → quadrantDiagram-AXDQQJYC-JnwbWWwT.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-Da_TV1ER.js → railroadDiagram-O6MQD6OU-DcpHMNVP.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-5V1Aow9h.js → requirementDiagram-BXWQKSXE-C-fRbIOI.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-BbSby0GQ.js → rotate-ccw-CyZK_Om1.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-BMdX-ln4.js → rotate-cw-ChAt9mcI.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-D_OIVihV.js → sankeyDiagram-P5KCCOFB-Sb34Y9Ep.js} +1 -1
- package/runtime/webapp/dist/assets/{send-Cb7EWSJF.js → send-DlrISC4K.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-LKeF5Mri.js → sequenceDiagram-WJ2MYXX4-BeHoOpkJ.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-BFqNDCc8.js → session-dashboard-D1JY1ka0.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-BK_qaCnb.js → session-tree-Q-jABJNB.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-C-r87aMq.js → shield-check-Bzd1i1OQ.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B6j7Q_MN.js → sizeCapture-INFHLROL-DspvE2eQ.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-zhPFqHdQ.js → stateDiagram-D77RDMKH-oBIvmRy9.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DXD2F0in.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-C_FCENx1.js → swimlanes-42K2YHIH-CAdrbVmI.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CXpNu-5Z.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-C3DBXjDU.js → timeline-definition-24CTP7MA-BtWjc4KI.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-DjggJGbw.js → trash-2-DwFoTvHX.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BQCEWNQz.js → types-COzZsLPY.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-BbTXGW7Z.js → use-session-activity-BRhj0V5U.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CssdTIB0.js → vennDiagram-4TSXK5OY-Be4H6PYr.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-C58K2vVU.js → wardleyDiagram-VM6X3IG4-COVxCAu8.js} +1 -1
- package/runtime/webapp/dist/assets/{web-B4y8vdRZ.js → web-BdMHTzmo.js} +1 -1
- package/runtime/webapp/dist/assets/{web-D9rJZXHW.js → web-Qg6ZVe1T.js} +1 -1
- package/runtime/webapp/dist/assets/{x-BYUglEo9.js → x-CoIXF2eL.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CQi8bD6A.js → xychartDiagram-S5SC5T6Z-J_S9eMK9.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-iMMWRXJs.js → zoom-out-C10hb0zX.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/ws-server.mjs +5 -0
- package/runtime/.next/static/chunks/106.b2050e53421795af.js +0 -1
- package/runtime/.next/static/chunks/20.7bd5212774091396.js +0 -1
- package/runtime/.next/static/chunks/34.40a88b70750502fb.js +0 -1
- package/runtime/.next/static/chunks/753-90c7dd1ba08be9be.js +0 -1
- 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/app/web/page-b0da5ef19349a66b.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/FileWorkspaceDrawer-BXDuKlrL.js +0 -1
- package/runtime/webapp/dist/assets/FlowStudioPane-lnjLcd9c.js +0 -5
- 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/loader-circle-C5C-IzGK.js +0 -6
- package/runtime/webapp/dist/assets/new-session-window-Dgl7UWPR.js +0 -190
- package/runtime/webapp/dist/assets/page-_fFyRId-.js +0 -86
- 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/.next/static/{5rv6PMhU7yq1sI1ClFWRU → XwGGZtJQeU5VoGqV-1dyI}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{5rv6PMhU7yq1sI1ClFWRU → XwGGZtJQeU5VoGqV-1dyI}/_ssgManifest.js +0 -0
- /package/runtime/.next/static/chunks/{183-dbd3e343da4ba103.js → 183-5019797f0b42210b.js} +0 -0
- /package/runtime/.next/static/chunks/{3cc391f0-4ff886cecc4d6d79.js → 3cc391f0-6cd083946ece156d.js} +0 -0
- /package/runtime/.next/static/chunks/app/_not-found/{page-c0fc9b6684d4f0ca.js → page-cffe4d626dcef5fd.js} +0 -0
|
@@ -1231,7 +1231,7 @@ var Mediabunny = (() => {
|
|
|
1231
1231
|
var shouldUseNativeTimers = () => {
|
|
1232
1232
|
return typeof window === "undefined";
|
|
1233
1233
|
};
|
|
1234
|
-
var
|
|
1234
|
+
var unthrottledTimerWorkerCode = () => {
|
|
1235
1235
|
const timeoutHandles = /* @__PURE__ */ new Map();
|
|
1236
1236
|
const intervalHandles = /* @__PURE__ */ new Map();
|
|
1237
1237
|
self.onmessage = (event) => {
|
|
@@ -1283,10 +1283,7 @@ var Mediabunny = (() => {
|
|
|
1283
1283
|
if (unthrottledTimerWorker) {
|
|
1284
1284
|
return unthrottledTimerWorker;
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1287
|
-
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
1288
|
-
unthrottledTimerWorker = new Worker(workerURL);
|
|
1289
|
-
URL.revokeObjectURL(workerURL);
|
|
1286
|
+
unthrottledTimerWorker = createWorker("unthrottled-timer", unthrottledTimerWorkerCode);
|
|
1290
1287
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1291
1288
|
const message = event.data;
|
|
1292
1289
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1302,6 +1299,24 @@ var Mediabunny = (() => {
|
|
|
1302
1299
|
};
|
|
1303
1300
|
return unthrottledTimerWorker;
|
|
1304
1301
|
};
|
|
1302
|
+
var workerBlobUrls = /* @__PURE__ */ new Map();
|
|
1303
|
+
var createWorker = (name, workerMain) => {
|
|
1304
|
+
const workerUrl = globalThis[Symbol.for("mediabunny:workerUrl")];
|
|
1305
|
+
if (workerUrl !== void 0 && typeof workerUrl !== "string" && !(workerUrl instanceof URL)) {
|
|
1306
|
+
throw new TypeError(
|
|
1307
|
+
"globalThis[Symbol.for('mediabunny:workerUrl')], when provided, must be a string or URL."
|
|
1308
|
+
);
|
|
1309
|
+
}
|
|
1310
|
+
if (workerUrl !== void 0) {
|
|
1311
|
+
return new Worker(workerUrl, { name });
|
|
1312
|
+
}
|
|
1313
|
+
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1314
|
+
if (!blobUrl) {
|
|
1315
|
+
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: "text/javascript" }));
|
|
1316
|
+
workerBlobUrls.set(workerMain, blobUrl);
|
|
1317
|
+
}
|
|
1318
|
+
return new Worker(blobUrl, { name });
|
|
1319
|
+
};
|
|
1305
1320
|
var setIntervalUnthrottled = (callback, delay) => {
|
|
1306
1321
|
if (shouldUseNativeTimers()) {
|
|
1307
1322
|
return { id: setInterval(callback, delay) };
|
|
@@ -2390,7 +2405,7 @@ var Mediabunny = (() => {
|
|
|
2390
2405
|
var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
|
|
2391
2406
|
|
|
2392
2407
|
// src/version.ts
|
|
2393
|
-
var VERSION = "1.66.
|
|
2408
|
+
var VERSION = "1.66.5";
|
|
2394
2409
|
var VERSIONED_NAME = `Mediabunny v${VERSION}`;
|
|
2395
2410
|
|
|
2396
2411
|
// src/codec-data.ts
|
|
@@ -9408,10 +9423,9 @@ var Mediabunny = (() => {
|
|
|
9408
9423
|
return new ReadableStream({
|
|
9409
9424
|
pull: async (controller) => {
|
|
9410
9425
|
try {
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
}
|
|
9426
|
+
const initPromise = initted ? null : Promise.resolve(getInit());
|
|
9427
|
+
void initPromise?.catch(() => {
|
|
9428
|
+
});
|
|
9415
9429
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
9416
9430
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
9417
9431
|
if (isThenable(nextSlice)) nextSlice = await nextSlice;
|
|
@@ -9425,6 +9439,10 @@ var Mediabunny = (() => {
|
|
|
9425
9439
|
const bytesToRead = sliceLength === requestedLength ? sliceLength - BLOCK_SIZE : sliceLength;
|
|
9426
9440
|
const input = readBytes(nextSlice, bytesToRead);
|
|
9427
9441
|
const output = new Uint8Array(bytesToRead);
|
|
9442
|
+
if (initPromise) {
|
|
9443
|
+
aesContext.init(await initPromise);
|
|
9444
|
+
initted = true;
|
|
9445
|
+
}
|
|
9428
9446
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
9429
9447
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
9430
9448
|
aesContext.decrypt();
|
|
@@ -9535,9 +9553,17 @@ var Mediabunny = (() => {
|
|
|
9535
9553
|
if (this.movieTimescale === -1) {
|
|
9536
9554
|
throw new Error("Invalid moov box: missing mvhd box.");
|
|
9537
9555
|
}
|
|
9556
|
+
const iTunSmpb = this.metadataTags.raw?.["iTunSMPB"];
|
|
9538
9557
|
for (const track of this.tracks) {
|
|
9558
|
+
if (typeof iTunSmpb === "string" && track.info?.type === "audio" && track.info.codec === "aac" && track.timestampOffset === 0) {
|
|
9559
|
+
const priming = Number.parseInt(iTunSmpb.trim().split(/\s+/)[1] ?? "", 16);
|
|
9560
|
+
if (priming > 0) {
|
|
9561
|
+
const primingInSeconds = priming / track.info.sampleRate;
|
|
9562
|
+
track.timestampOffset = Math.round(primingInSeconds * track.timescale);
|
|
9563
|
+
}
|
|
9564
|
+
}
|
|
9539
9565
|
const previousSegmentDurationsInSeconds = track.editListPreviousSegmentDurations / this.movieTimescale;
|
|
9540
|
-
track.
|
|
9566
|
+
track.timestampOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
|
|
9541
9567
|
}
|
|
9542
9568
|
lookForMfraBox = this.isFragmented && this.reader.fileSize !== null && this.reader.fileSize > startPos + boxInfo.totalSize;
|
|
9543
9569
|
foundMovieBoxes = true;
|
|
@@ -9555,7 +9581,10 @@ var Mediabunny = (() => {
|
|
|
9555
9581
|
}
|
|
9556
9582
|
currentPos = startPos + boxInfo.totalSize;
|
|
9557
9583
|
}
|
|
9558
|
-
if (!foundMovieBoxes
|
|
9584
|
+
if (!foundMovieBoxes) {
|
|
9585
|
+
if (!this.input._initInput) {
|
|
9586
|
+
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9587
|
+
}
|
|
9559
9588
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9560
9589
|
}
|
|
9561
9590
|
if (lookForMfraBox) {
|
|
@@ -9628,7 +9657,7 @@ var Mediabunny = (() => {
|
|
|
9628
9657
|
fragmentLookupTable: [],
|
|
9629
9658
|
fragmentPositionCache: [],
|
|
9630
9659
|
editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
|
|
9631
|
-
|
|
9660
|
+
timestampOffset: foreignTrack.timestampOffset,
|
|
9632
9661
|
encryptionInfo: foreignTrack.encryptionInfo,
|
|
9633
9662
|
encryptionAuxInfo: null,
|
|
9634
9663
|
frmaCodecString: null,
|
|
@@ -10005,7 +10034,7 @@ var Mediabunny = (() => {
|
|
|
10005
10034
|
fragmentLookupTable: [],
|
|
10006
10035
|
fragmentPositionCache: [],
|
|
10007
10036
|
editListPreviousSegmentDurations: 0,
|
|
10008
|
-
|
|
10037
|
+
timestampOffset: 0,
|
|
10009
10038
|
encryptionInfo: null,
|
|
10010
10039
|
encryptionAuxInfo: null,
|
|
10011
10040
|
frmaCodecString: null,
|
|
@@ -10090,7 +10119,7 @@ var Mediabunny = (() => {
|
|
|
10090
10119
|
break;
|
|
10091
10120
|
}
|
|
10092
10121
|
track.editListPreviousSegmentDurations = previousSegmentDurations;
|
|
10093
|
-
track.
|
|
10122
|
+
track.timestampOffset = mediaTime;
|
|
10094
10123
|
relevantEntryFound = true;
|
|
10095
10124
|
}
|
|
10096
10125
|
}
|
|
@@ -11695,7 +11724,30 @@ var Mediabunny = (() => {
|
|
|
11695
11724
|
if (this.currentMetadataKeys.has(nameAsNumber)) {
|
|
11696
11725
|
metadataKey = this.currentMetadataKeys.get(nameAsNumber);
|
|
11697
11726
|
}
|
|
11698
|
-
|
|
11727
|
+
let data = null;
|
|
11728
|
+
if (metadataKey === "----") {
|
|
11729
|
+
let name = null;
|
|
11730
|
+
const freeformSlice = slice2.slice(slice2.filePos, boxInfo2.contentSize);
|
|
11731
|
+
const childIterator = this.iterateContiguousBoxes(freeformSlice);
|
|
11732
|
+
for (const { boxInfo: childBoxInfo, slice: childSlice } of childIterator) {
|
|
11733
|
+
if (childBoxInfo.name === "name" && name === null) {
|
|
11734
|
+
if (childBoxInfo.contentSize < 4) {
|
|
11735
|
+
throw new Error("Invalid 'name' box: too small.");
|
|
11736
|
+
}
|
|
11737
|
+
childSlice.skip(4);
|
|
11738
|
+
name = textDecoder.decode(readBytes(childSlice, childBoxInfo.contentSize - 4));
|
|
11739
|
+
} else if (childBoxInfo.name === "data" && data === null) {
|
|
11740
|
+
childSlice.filePos -= childBoxInfo.headerSize;
|
|
11741
|
+
data = readDataBox(childSlice);
|
|
11742
|
+
}
|
|
11743
|
+
}
|
|
11744
|
+
if (name === null) {
|
|
11745
|
+
continue;
|
|
11746
|
+
}
|
|
11747
|
+
metadataKey = name;
|
|
11748
|
+
} else {
|
|
11749
|
+
data = readDataBox(slice2);
|
|
11750
|
+
}
|
|
11699
11751
|
this.metadataTags.raw ??= {};
|
|
11700
11752
|
this.metadataTags.raw[metadataKey] ??= data;
|
|
11701
11753
|
switch (metadataKey) {
|
|
@@ -11964,7 +12016,7 @@ var Mediabunny = (() => {
|
|
|
11964
12016
|
return this.fetchFirstFragmentedPacket(false, options);
|
|
11965
12017
|
}
|
|
11966
12018
|
mapTimestampIntoTimescale(timestamp) {
|
|
11967
|
-
return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.
|
|
12019
|
+
return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.timestampOffset;
|
|
11968
12020
|
}
|
|
11969
12021
|
async getPacket(timestamp, options) {
|
|
11970
12022
|
const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
|
|
@@ -12160,6 +12212,10 @@ var Mediabunny = (() => {
|
|
|
12160
12212
|
if (!sampleInfo) {
|
|
12161
12213
|
return null;
|
|
12162
12214
|
}
|
|
12215
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12216
|
+
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12217
|
+
return null;
|
|
12218
|
+
}
|
|
12163
12219
|
let data;
|
|
12164
12220
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12165
12221
|
data = PLACEHOLDER_DATA;
|
|
@@ -12191,7 +12247,7 @@ var Mediabunny = (() => {
|
|
|
12191
12247
|
}
|
|
12192
12248
|
}
|
|
12193
12249
|
}
|
|
12194
|
-
const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.
|
|
12250
|
+
const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12195
12251
|
const duration = sampleInfo.duration / this.internalTrack.timescale;
|
|
12196
12252
|
const packet = new EncodedPacket(
|
|
12197
12253
|
data,
|
|
@@ -12214,6 +12270,10 @@ var Mediabunny = (() => {
|
|
|
12214
12270
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12215
12271
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12216
12272
|
assert(fragmentSample);
|
|
12273
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12274
|
+
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12275
|
+
return null;
|
|
12276
|
+
}
|
|
12217
12277
|
let data;
|
|
12218
12278
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12219
12279
|
data = PLACEHOLDER_DATA;
|
|
@@ -12234,7 +12294,7 @@ var Mediabunny = (() => {
|
|
|
12234
12294
|
}
|
|
12235
12295
|
}
|
|
12236
12296
|
}
|
|
12237
|
-
const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.
|
|
12297
|
+
const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12238
12298
|
const duration = fragmentSample.duration / this.internalTrack.timescale;
|
|
12239
12299
|
const packet = new EncodedPacket(
|
|
12240
12300
|
data,
|
|
@@ -12351,7 +12411,7 @@ var Mediabunny = (() => {
|
|
|
12351
12411
|
size: samplePacket.data.byteLength,
|
|
12352
12412
|
blockCount: 6
|
|
12353
12413
|
}];
|
|
12354
|
-
const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.
|
|
12414
|
+
const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12355
12415
|
let match = null;
|
|
12356
12416
|
let previousPacket = null;
|
|
12357
12417
|
let blocksBefore = 0;
|
|
@@ -13636,6 +13696,9 @@ var Mediabunny = (() => {
|
|
|
13636
13696
|
assertDefinedSize(size);
|
|
13637
13697
|
currentPos = dataStartPos + size;
|
|
13638
13698
|
}
|
|
13699
|
+
if (this.segments.length === 0) {
|
|
13700
|
+
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13701
|
+
}
|
|
13639
13702
|
})();
|
|
13640
13703
|
}
|
|
13641
13704
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17280,6 +17343,10 @@ var Mediabunny = (() => {
|
|
|
17280
17343
|
if (!rawSample) {
|
|
17281
17344
|
return null;
|
|
17282
17345
|
}
|
|
17346
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
17347
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17348
|
+
return null;
|
|
17349
|
+
}
|
|
17283
17350
|
let data;
|
|
17284
17351
|
if (options.metadataOnly) {
|
|
17285
17352
|
data = PLACEHOLDER_DATA;
|
|
@@ -19100,6 +19167,10 @@ var Mediabunny = (() => {
|
|
|
19100
19167
|
if (!rawSample) {
|
|
19101
19168
|
return null;
|
|
19102
19169
|
}
|
|
19170
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
19171
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
19172
|
+
return null;
|
|
19173
|
+
}
|
|
19103
19174
|
let data;
|
|
19104
19175
|
if (options.metadataOnly) {
|
|
19105
19176
|
data = PLACEHOLDER_DATA;
|
|
@@ -19885,6 +19956,7 @@ var Mediabunny = (() => {
|
|
|
19885
19956
|
let programMapPid = null;
|
|
19886
19957
|
let hasProgramAssociationTable = false;
|
|
19887
19958
|
let hasProgramMap = false;
|
|
19959
|
+
let initDemuxer = null;
|
|
19888
19960
|
while (true) {
|
|
19889
19961
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19890
19962
|
if (!packetHeader) {
|
|
@@ -20125,22 +20197,26 @@ var Mediabunny = (() => {
|
|
|
20125
20197
|
}
|
|
20126
20198
|
elementaryStream.firstSection = section;
|
|
20127
20199
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
20128
|
-
if (this.input._initInput) {
|
|
20129
|
-
const initDemuxer = await this.input._initInput._getDemuxer();
|
|
20130
|
-
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20131
|
-
throw new Error("Init input must match the input's format.");
|
|
20132
|
-
}
|
|
20133
|
-
await initDemuxer.readMetadata();
|
|
20134
|
-
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20135
|
-
if (matchingStream) {
|
|
20136
|
-
elementaryStream.info = matchingStream.info;
|
|
20137
|
-
elementaryStream.initialized = true;
|
|
20138
|
-
break outer;
|
|
20139
|
-
}
|
|
20140
|
-
}
|
|
20141
20200
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20142
20201
|
if (elementaryStream.info.type === "video") {
|
|
20202
|
+
let packetCount = 0;
|
|
20143
20203
|
while (true) {
|
|
20204
|
+
if (packetCount === 1 && this.input._initInput) {
|
|
20205
|
+
if (!initDemuxer) {
|
|
20206
|
+
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20207
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20208
|
+
throw new Error("Init input must match the input's format.");
|
|
20209
|
+
}
|
|
20210
|
+
await initDemuxer.readMetadata();
|
|
20211
|
+
}
|
|
20212
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20213
|
+
if (matchingStream) {
|
|
20214
|
+
elementaryStream.info = matchingStream.info;
|
|
20215
|
+
elementaryStream.initialized = true;
|
|
20216
|
+
break outer;
|
|
20217
|
+
}
|
|
20218
|
+
}
|
|
20219
|
+
packetCount++;
|
|
20144
20220
|
const contextAlias = context;
|
|
20145
20221
|
contextAlias.suppliedPacket = null;
|
|
20146
20222
|
await context.markNextPacket();
|
|
@@ -21893,7 +21969,7 @@ var Mediabunny = (() => {
|
|
|
21893
21969
|
if (!this.firstSegment) {
|
|
21894
21970
|
return [];
|
|
21895
21971
|
}
|
|
21896
|
-
const input = this.getInputForSegment(this.firstSegment);
|
|
21972
|
+
const input = this.getInputForSegment(this.firstSegment.initSegment ?? this.firstSegment);
|
|
21897
21973
|
const inputTracks = await input.getTracks();
|
|
21898
21974
|
for (const track of inputTracks) {
|
|
21899
21975
|
if (track.type === "video") {
|
|
@@ -21961,34 +22037,34 @@ var Mediabunny = (() => {
|
|
|
21961
22037
|
constructor(segmentedInput, decl, number) {
|
|
21962
22038
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
21963
22039
|
this.hydrationPromise = null;
|
|
21964
|
-
this.
|
|
21965
|
-
this.firstSegment = null;
|
|
22040
|
+
this.metadataInputTrack = null;
|
|
21966
22041
|
this.segmentedInput = segmentedInput;
|
|
21967
22042
|
this.decl = decl;
|
|
21968
22043
|
this.number = number;
|
|
21969
22044
|
}
|
|
21970
22045
|
hydrate() {
|
|
21971
22046
|
return this.hydrationPromise ??= (async () => {
|
|
21972
|
-
|
|
21973
|
-
if (!this.segmentedInput.firstSegment) {
|
|
21974
|
-
throw new Error("Missing first segment, can't retrieve track.");
|
|
21975
|
-
}
|
|
21976
|
-
let currentSegment = this.segmentedInput.firstSegment;
|
|
22047
|
+
const firstSegment = await this.getFirstSegment();
|
|
21977
22048
|
let track = null;
|
|
21978
|
-
|
|
21979
|
-
const
|
|
21980
|
-
const inputTracks = await input.getTracks();
|
|
22049
|
+
if (firstSegment.initSegment) {
|
|
22050
|
+
const inputTracks = await this.segmentedInput.getInputForSegment(firstSegment.initSegment).getTracks();
|
|
21981
22051
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21982
|
-
|
|
21983
|
-
|
|
22052
|
+
} else {
|
|
22053
|
+
let currentSegment = firstSegment;
|
|
22054
|
+
while (currentSegment) {
|
|
22055
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22056
|
+
const inputTracks = await input.getTracks();
|
|
22057
|
+
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22058
|
+
if (track) {
|
|
22059
|
+
break;
|
|
22060
|
+
}
|
|
22061
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21984
22062
|
}
|
|
21985
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21986
22063
|
}
|
|
21987
22064
|
if (!track) {
|
|
21988
22065
|
throw new Error("No matching track found in underlying media data.");
|
|
21989
22066
|
}
|
|
21990
|
-
this.
|
|
21991
|
-
this.firstSegment = currentSegment;
|
|
22067
|
+
this.metadataInputTrack = track;
|
|
21992
22068
|
})();
|
|
21993
22069
|
}
|
|
21994
22070
|
getType() {
|
|
@@ -21999,53 +22075,52 @@ var Mediabunny = (() => {
|
|
|
21999
22075
|
}
|
|
22000
22076
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
22001
22077
|
delegate(fn) {
|
|
22002
|
-
if (this.
|
|
22078
|
+
if (this.metadataInputTrack) {
|
|
22003
22079
|
return fn();
|
|
22004
22080
|
}
|
|
22005
22081
|
return this.hydrate().then(fn);
|
|
22006
22082
|
}
|
|
22007
22083
|
async getDecoderConfig() {
|
|
22008
|
-
return this.delegate(() => this.
|
|
22084
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22009
22085
|
}
|
|
22010
22086
|
getHasOnlyKeyPackets() {
|
|
22011
22087
|
return this.delegate(() => {
|
|
22012
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
22088
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.metadataInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
22013
22089
|
});
|
|
22014
22090
|
}
|
|
22015
22091
|
getPairingMask() {
|
|
22016
22092
|
return 1n;
|
|
22017
22093
|
}
|
|
22018
22094
|
getCodec() {
|
|
22019
|
-
return this.delegate(() => this.
|
|
22095
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22020
22096
|
}
|
|
22021
22097
|
getInternalCodecId() {
|
|
22022
|
-
return this.delegate(() => this.
|
|
22098
|
+
return this.delegate(() => this.metadataInputTrack._backing.getInternalCodecId());
|
|
22023
22099
|
}
|
|
22024
22100
|
getDisposition() {
|
|
22025
|
-
return this.delegate(() => this.
|
|
22101
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDisposition());
|
|
22026
22102
|
}
|
|
22027
22103
|
getLanguageCode() {
|
|
22028
|
-
return this.delegate(() => this.
|
|
22104
|
+
return this.delegate(() => this.metadataInputTrack._backing.getLanguageCode());
|
|
22029
22105
|
}
|
|
22030
22106
|
getName() {
|
|
22031
|
-
return this.delegate(() => this.
|
|
22107
|
+
return this.delegate(() => this.metadataInputTrack._backing.getName());
|
|
22032
22108
|
}
|
|
22033
22109
|
getTimeResolution() {
|
|
22034
|
-
return this.delegate(() => this.
|
|
22110
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTimeResolution());
|
|
22035
22111
|
}
|
|
22036
22112
|
async isRelativeToUnixEpoch() {
|
|
22037
|
-
await this.
|
|
22038
|
-
|
|
22039
|
-
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
22113
|
+
const firstSegment = await this.getFirstSegment();
|
|
22114
|
+
return firstSegment.unixEpochTimestamp === firstSegment.timestamp;
|
|
22040
22115
|
}
|
|
22041
22116
|
getUnixTimeForTimestamp(timestamp) {
|
|
22042
22117
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
22043
22118
|
}
|
|
22044
22119
|
getBitrate() {
|
|
22045
|
-
return this.delegate(() => this.
|
|
22120
|
+
return this.delegate(() => this.metadataInputTrack._backing.getBitrate());
|
|
22046
22121
|
}
|
|
22047
22122
|
getAverageBitrate() {
|
|
22048
|
-
return this.delegate(() => this.
|
|
22123
|
+
return this.delegate(() => this.metadataInputTrack._backing.getAverageBitrate());
|
|
22049
22124
|
}
|
|
22050
22125
|
getDurationFromMetadata(options) {
|
|
22051
22126
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -22055,9 +22130,9 @@ var Mediabunny = (() => {
|
|
|
22055
22130
|
}
|
|
22056
22131
|
async createAdjustedPacket(packet, segment, track) {
|
|
22057
22132
|
assert(packet.sequenceNumber >= 0);
|
|
22058
|
-
|
|
22133
|
+
const firstSegment = await this.getFirstSegment();
|
|
22059
22134
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
22060
|
-
const segmentTimestampRelativeToFirst = segment.timestamp -
|
|
22135
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
22061
22136
|
const modified = packet.clone({
|
|
22062
22137
|
timestamp: roundToDivisor(
|
|
22063
22138
|
packet.timestamp + mediaOffset,
|
|
@@ -22075,30 +22150,33 @@ var Mediabunny = (() => {
|
|
|
22075
22150
|
return modified;
|
|
22076
22151
|
}
|
|
22077
22152
|
async getFirstPacket(options) {
|
|
22078
|
-
await this.
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
let
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22153
|
+
const firstSegment = await this.getFirstSegment();
|
|
22154
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
22155
|
+
});
|
|
22156
|
+
let currentSegment = firstSegment;
|
|
22157
|
+
while (currentSegment) {
|
|
22158
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22159
|
+
const tracks = await input.getTracks();
|
|
22160
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22161
|
+
if (track) {
|
|
22162
|
+
const packet = await track._backing.getFirstPacket(options);
|
|
22086
22163
|
if (packet) {
|
|
22087
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
22164
|
+
return this.createAdjustedPacket(packet, currentSegment, track);
|
|
22088
22165
|
}
|
|
22089
22166
|
}
|
|
22090
22167
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
22091
22168
|
skipLiveWait: options.skipLiveWait
|
|
22092
22169
|
});
|
|
22093
|
-
if (!currentSegment) {
|
|
22094
|
-
break;
|
|
22095
|
-
}
|
|
22096
|
-
const nextInput = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22097
|
-
const nextTracks = await nextInput.getTracks();
|
|
22098
|
-
currentTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number) ?? null;
|
|
22099
22170
|
}
|
|
22100
22171
|
return null;
|
|
22101
22172
|
}
|
|
22173
|
+
async getFirstSegment() {
|
|
22174
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
22175
|
+
if (!this.segmentedInput.firstSegment) {
|
|
22176
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
22177
|
+
}
|
|
22178
|
+
return this.segmentedInput.firstSegment;
|
|
22179
|
+
}
|
|
22102
22180
|
getNextPacket(packet, options) {
|
|
22103
22181
|
return this._getNextInternal(packet, options, false);
|
|
22104
22182
|
}
|
|
@@ -22154,11 +22232,12 @@ var Mediabunny = (() => {
|
|
|
22154
22232
|
if (!currentSegment) {
|
|
22155
22233
|
return null;
|
|
22156
22234
|
}
|
|
22157
|
-
|
|
22235
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(currentSegment.discontinuityNumber).catch(() => {
|
|
22236
|
+
});
|
|
22158
22237
|
while (currentSegment) {
|
|
22159
22238
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22160
22239
|
const tracks = await input.getTracks();
|
|
22161
|
-
const track = tracks.find((t) => t.type === this.
|
|
22240
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22162
22241
|
if (!track) {
|
|
22163
22242
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22164
22243
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22198,7 +22277,7 @@ var Mediabunny = (() => {
|
|
|
22198
22277
|
if (nextSegment) {
|
|
22199
22278
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22200
22279
|
const nextTracks = await nextInput.getTracks();
|
|
22201
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22280
|
+
const nextTrack = nextTracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22202
22281
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22203
22282
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22204
22283
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22234,31 +22313,31 @@ var Mediabunny = (() => {
|
|
|
22234
22313
|
return "video";
|
|
22235
22314
|
}
|
|
22236
22315
|
getCodec() {
|
|
22237
|
-
return this.delegate(() => this.
|
|
22316
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22238
22317
|
}
|
|
22239
22318
|
getCodedWidth() {
|
|
22240
|
-
return this.delegate(() => this.
|
|
22319
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedWidth());
|
|
22241
22320
|
}
|
|
22242
22321
|
getCodedHeight() {
|
|
22243
|
-
return this.delegate(() => this.
|
|
22322
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedHeight());
|
|
22244
22323
|
}
|
|
22245
22324
|
getSquarePixelWidth() {
|
|
22246
|
-
return this.delegate(() => this.
|
|
22325
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelWidth());
|
|
22247
22326
|
}
|
|
22248
22327
|
getSquarePixelHeight() {
|
|
22249
|
-
return this.delegate(() => this.
|
|
22328
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelHeight());
|
|
22250
22329
|
}
|
|
22251
22330
|
getTransformationMatrix() {
|
|
22252
|
-
return this.delegate(() => this.
|
|
22331
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTransformationMatrix());
|
|
22253
22332
|
}
|
|
22254
22333
|
async getColorSpace() {
|
|
22255
|
-
return this.delegate(() => this.
|
|
22334
|
+
return this.delegate(() => this.metadataInputTrack._backing.getColorSpace());
|
|
22256
22335
|
}
|
|
22257
22336
|
async canBeTransparent() {
|
|
22258
|
-
return this.delegate(() => this.
|
|
22337
|
+
return this.delegate(() => this.metadataInputTrack._backing.canBeTransparent());
|
|
22259
22338
|
}
|
|
22260
22339
|
async getDecoderConfig() {
|
|
22261
|
-
return this.delegate(() => this.
|
|
22340
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22262
22341
|
}
|
|
22263
22342
|
};
|
|
22264
22343
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22266,16 +22345,16 @@ var Mediabunny = (() => {
|
|
|
22266
22345
|
return "audio";
|
|
22267
22346
|
}
|
|
22268
22347
|
getCodec() {
|
|
22269
|
-
return this.delegate(() => this.
|
|
22348
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22270
22349
|
}
|
|
22271
22350
|
getNumberOfChannels() {
|
|
22272
|
-
return this.delegate(() => this.
|
|
22351
|
+
return this.delegate(() => this.metadataInputTrack._backing.getNumberOfChannels());
|
|
22273
22352
|
}
|
|
22274
22353
|
getSampleRate() {
|
|
22275
|
-
return this.delegate(() => this.
|
|
22354
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSampleRate());
|
|
22276
22355
|
}
|
|
22277
22356
|
async getDecoderConfig() {
|
|
22278
|
-
return this.delegate(() => this.
|
|
22357
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22279
22358
|
}
|
|
22280
22359
|
};
|
|
22281
22360
|
|
|
@@ -24650,8 +24729,12 @@ var Mediabunny = (() => {
|
|
|
24650
24729
|
return cacheEntry.input;
|
|
24651
24730
|
}
|
|
24652
24731
|
let initInput = null;
|
|
24653
|
-
if (hlsSegment.initSegment
|
|
24654
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment
|
|
24732
|
+
if (hlsSegment.initSegment) {
|
|
24733
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24734
|
+
void initInput.getTracks().catch(() => {
|
|
24735
|
+
});
|
|
24736
|
+
} else if (hlsSegment.firstSegment) {
|
|
24737
|
+
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24655
24738
|
}
|
|
24656
24739
|
const formatOptions = {
|
|
24657
24740
|
...this.input._formatOptions,
|
|
@@ -24772,17 +24855,21 @@ var Mediabunny = (() => {
|
|
|
24772
24855
|
}
|
|
24773
24856
|
getFirstSegmentTimestampOffset() {
|
|
24774
24857
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24775
|
-
const firstSegment = await this.getFirstSegment();
|
|
24776
|
-
assert(firstSegment);
|
|
24777
24858
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24778
24859
|
if (this === referenceSegmentedInput) {
|
|
24779
24860
|
return 0;
|
|
24780
24861
|
}
|
|
24781
|
-
const referenceFirstSegment = await
|
|
24862
|
+
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
24863
|
+
this.getFirstSegment(),
|
|
24864
|
+
referenceSegmentedInput.getFirstSegment()
|
|
24865
|
+
]);
|
|
24866
|
+
assert(firstSegment);
|
|
24782
24867
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24783
24868
|
return 0;
|
|
24784
24869
|
}
|
|
24785
24870
|
const input = this.getInputForSegment(firstSegment);
|
|
24871
|
+
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24872
|
+
});
|
|
24786
24873
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24787
24874
|
return 0;
|
|
24788
24875
|
}
|
|
@@ -25428,14 +25515,17 @@ var Mediabunny = (() => {
|
|
|
25428
25515
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25429
25516
|
}
|
|
25430
25517
|
async getFirstPacket(options) {
|
|
25518
|
+
this.prefetchReferencePlaylist();
|
|
25431
25519
|
await this.hydrate();
|
|
25432
25520
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25433
25521
|
}
|
|
25434
25522
|
async getPacket(timestamp, options) {
|
|
25523
|
+
this.prefetchReferencePlaylist();
|
|
25435
25524
|
await this.hydrate();
|
|
25436
25525
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25437
25526
|
}
|
|
25438
25527
|
async getKeyPacket(timestamp, options) {
|
|
25528
|
+
this.prefetchReferencePlaylist();
|
|
25439
25529
|
await this.hydrate();
|
|
25440
25530
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25441
25531
|
}
|
|
@@ -25447,6 +25537,10 @@ var Mediabunny = (() => {
|
|
|
25447
25537
|
await this.hydrate();
|
|
25448
25538
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25449
25539
|
}
|
|
25540
|
+
prefetchReferencePlaylist() {
|
|
25541
|
+
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25542
|
+
});
|
|
25543
|
+
}
|
|
25450
25544
|
};
|
|
25451
25545
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25452
25546
|
constructor(internalTrack) {
|
|
@@ -27141,7 +27235,6 @@ var Mediabunny = (() => {
|
|
|
27141
27235
|
this.sampleQueue.length = 0;
|
|
27142
27236
|
}
|
|
27143
27237
|
};
|
|
27144
|
-
var mergerWorkerUrl = null;
|
|
27145
27238
|
var ColorAlphaMerger = class {
|
|
27146
27239
|
constructor() {
|
|
27147
27240
|
this.workers = [];
|
|
@@ -27151,16 +27244,9 @@ var Mediabunny = (() => {
|
|
|
27151
27244
|
}
|
|
27152
27245
|
merge(color, alpha) {
|
|
27153
27246
|
if (this.workers.length === 0) {
|
|
27154
|
-
if (!mergerWorkerUrl) {
|
|
27155
|
-
const blob = new Blob(
|
|
27156
|
-
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
27157
|
-
{ type: "application/javascript" }
|
|
27158
|
-
);
|
|
27159
|
-
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
27160
|
-
}
|
|
27161
27247
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27162
27248
|
for (let i = 0; i < poolSize; i++) {
|
|
27163
|
-
const worker2 =
|
|
27249
|
+
const worker2 = createWorker("color-alpha-merger", colorAlphaMergerWorkerCode);
|
|
27164
27250
|
worker2.addEventListener("message", (event) => {
|
|
27165
27251
|
const data = event.data;
|
|
27166
27252
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30866,7 +30952,6 @@ var Mediabunny = (() => {
|
|
|
30866
30952
|
return chunkTimestamp === 500;
|
|
30867
30953
|
})();
|
|
30868
30954
|
};
|
|
30869
|
-
var splitterWorkerUrl = null;
|
|
30870
30955
|
var ColorAlphaSplitter = class {
|
|
30871
30956
|
constructor() {
|
|
30872
30957
|
this.worker = null;
|
|
@@ -30875,14 +30960,7 @@ var Mediabunny = (() => {
|
|
|
30875
30960
|
}
|
|
30876
30961
|
split(sourceFrame) {
|
|
30877
30962
|
if (!this.worker) {
|
|
30878
|
-
|
|
30879
|
-
const blob = new Blob(
|
|
30880
|
-
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
30881
|
-
{ type: "application/javascript" }
|
|
30882
|
-
);
|
|
30883
|
-
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
30884
|
-
}
|
|
30885
|
-
this.worker = new Worker(splitterWorkerUrl);
|
|
30963
|
+
this.worker = createWorker("color-alpha-splitter", colorAlphaSplitterWorkerCode);
|
|
30886
30964
|
this.worker.addEventListener("message", (event) => {
|
|
30887
30965
|
const data = event.data;
|
|
30888
30966
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32471,12 +32549,7 @@ var Mediabunny = (() => {
|
|
|
32471
32549
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32472
32550
|
var mediaStreamTrackProcessorWorker = null;
|
|
32473
32551
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32474
|
-
|
|
32475
|
-
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32476
|
-
{ type: "application/javascript" }
|
|
32477
|
-
);
|
|
32478
|
-
const url2 = URL.createObjectURL(blob);
|
|
32479
|
-
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32552
|
+
mediaStreamTrackProcessorWorker = createWorker("media-stream-track-processor", mediaStreamTrackProcessorWorkerCode);
|
|
32480
32553
|
};
|
|
32481
32554
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32482
32555
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35540,8 +35613,8 @@ var Mediabunny = (() => {
|
|
|
35540
35613
|
var tfdt = (trackData) => {
|
|
35541
35614
|
assert(trackData.currentChunk);
|
|
35542
35615
|
return fullBox("tfdt", 1, 0, [
|
|
35543
|
-
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35544
35616
|
// Base Media Decode Time
|
|
35617
|
+
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35545
35618
|
]);
|
|
35546
35619
|
};
|
|
35547
35620
|
var trun = (trackData) => {
|
|
@@ -37510,16 +37583,27 @@ var Mediabunny = (() => {
|
|
|
37510
37583
|
trackData.timestampProcessingQueue.length = 0;
|
|
37511
37584
|
return;
|
|
37512
37585
|
}
|
|
37513
|
-
const
|
|
37586
|
+
const queue = trackData.timestampProcessingQueue;
|
|
37587
|
+
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37588
|
+
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37514
37589
|
if (this.isFragmented) {
|
|
37515
37590
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37516
37591
|
} else {
|
|
37517
37592
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37518
37593
|
}
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37594
|
+
let groupStartTimescaleUnits;
|
|
37595
|
+
if (trackData.lastTimescaleUnits === null) {
|
|
37596
|
+
groupStartTimescaleUnits = firstTimestampInTimescale;
|
|
37597
|
+
} else {
|
|
37598
|
+
assert(trackData.lastSample);
|
|
37599
|
+
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37600
|
+
}
|
|
37601
|
+
let lastDecodeStep = 0;
|
|
37602
|
+
for (let i = 0; i < queue.length; i++) {
|
|
37603
|
+
const sample = queue[i];
|
|
37604
|
+
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37605
|
+
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37606
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37523
37607
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37524
37608
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37525
37609
|
assert(trackData.lastSample);
|
|
@@ -37528,6 +37612,7 @@ var Mediabunny = (() => {
|
|
|
37528
37612
|
assert(delta >= 0);
|
|
37529
37613
|
trackData.lastTimescaleUnits += delta;
|
|
37530
37614
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37615
|
+
lastDecodeStep = delta;
|
|
37531
37616
|
if (!this.isFragmented) {
|
|
37532
37617
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37533
37618
|
assert(lastTableEntry);
|
|
@@ -37583,11 +37668,15 @@ var Mediabunny = (() => {
|
|
|
37583
37668
|
trackData.timestampProcessingQueue.length = 0;
|
|
37584
37669
|
assert(trackData.lastSample);
|
|
37585
37670
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37586
|
-
if (nextSample
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37671
|
+
if (nextSample) {
|
|
37672
|
+
const nextTimestampInTimescale = intoTimescale(nextSample.timestamp, trackData.timescale);
|
|
37673
|
+
trackData.lastSample.timescaleUnitsToNextSample = Math.max(
|
|
37674
|
+
nextTimestampInTimescale - Math.round(trackData.lastTimescaleUnits),
|
|
37675
|
+
// With open GOPs, the last sample's decode timestamp may already lie past the next key frame. Then, it
|
|
37676
|
+
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37677
|
+
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37678
|
+
lastDecodeStep
|
|
37679
|
+
);
|
|
37591
37680
|
}
|
|
37592
37681
|
}
|
|
37593
37682
|
async registerSample(trackData, sample) {
|