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
|
@@ -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.5";
|
|
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();
|
|
@@ -9532,9 +9550,17 @@ var Mediabunny = (() => {
|
|
|
9532
9550
|
if (this.movieTimescale === -1) {
|
|
9533
9551
|
throw new Error("Invalid moov box: missing mvhd box.");
|
|
9534
9552
|
}
|
|
9553
|
+
const iTunSmpb = this.metadataTags.raw?.["iTunSMPB"];
|
|
9535
9554
|
for (const track of this.tracks) {
|
|
9555
|
+
if (typeof iTunSmpb === "string" && track.info?.type === "audio" && track.info.codec === "aac" && track.timestampOffset === 0) {
|
|
9556
|
+
const priming = Number.parseInt(iTunSmpb.trim().split(/\s+/)[1] ?? "", 16);
|
|
9557
|
+
if (priming > 0) {
|
|
9558
|
+
const primingInSeconds = priming / track.info.sampleRate;
|
|
9559
|
+
track.timestampOffset = Math.round(primingInSeconds * track.timescale);
|
|
9560
|
+
}
|
|
9561
|
+
}
|
|
9536
9562
|
const previousSegmentDurationsInSeconds = track.editListPreviousSegmentDurations / this.movieTimescale;
|
|
9537
|
-
track.
|
|
9563
|
+
track.timestampOffset -= Math.round(previousSegmentDurationsInSeconds * track.timescale);
|
|
9538
9564
|
}
|
|
9539
9565
|
lookForMfraBox = this.isFragmented && this.reader.fileSize !== null && this.reader.fileSize > startPos + boxInfo.totalSize;
|
|
9540
9566
|
foundMovieBoxes = true;
|
|
@@ -9552,7 +9578,10 @@ var Mediabunny = (() => {
|
|
|
9552
9578
|
}
|
|
9553
9579
|
currentPos = startPos + boxInfo.totalSize;
|
|
9554
9580
|
}
|
|
9555
|
-
if (!foundMovieBoxes
|
|
9581
|
+
if (!foundMovieBoxes) {
|
|
9582
|
+
if (!this.input._initInput) {
|
|
9583
|
+
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9584
|
+
}
|
|
9556
9585
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9557
9586
|
}
|
|
9558
9587
|
if (lookForMfraBox) {
|
|
@@ -9625,7 +9654,7 @@ var Mediabunny = (() => {
|
|
|
9625
9654
|
fragmentLookupTable: [],
|
|
9626
9655
|
fragmentPositionCache: [],
|
|
9627
9656
|
editListPreviousSegmentDurations: foreignTrack.editListPreviousSegmentDurations,
|
|
9628
|
-
|
|
9657
|
+
timestampOffset: foreignTrack.timestampOffset,
|
|
9629
9658
|
encryptionInfo: foreignTrack.encryptionInfo,
|
|
9630
9659
|
encryptionAuxInfo: null,
|
|
9631
9660
|
frmaCodecString: null,
|
|
@@ -10002,7 +10031,7 @@ var Mediabunny = (() => {
|
|
|
10002
10031
|
fragmentLookupTable: [],
|
|
10003
10032
|
fragmentPositionCache: [],
|
|
10004
10033
|
editListPreviousSegmentDurations: 0,
|
|
10005
|
-
|
|
10034
|
+
timestampOffset: 0,
|
|
10006
10035
|
encryptionInfo: null,
|
|
10007
10036
|
encryptionAuxInfo: null,
|
|
10008
10037
|
frmaCodecString: null,
|
|
@@ -10087,7 +10116,7 @@ var Mediabunny = (() => {
|
|
|
10087
10116
|
break;
|
|
10088
10117
|
}
|
|
10089
10118
|
track.editListPreviousSegmentDurations = previousSegmentDurations;
|
|
10090
|
-
track.
|
|
10119
|
+
track.timestampOffset = mediaTime;
|
|
10091
10120
|
relevantEntryFound = true;
|
|
10092
10121
|
}
|
|
10093
10122
|
}
|
|
@@ -11692,7 +11721,30 @@ var Mediabunny = (() => {
|
|
|
11692
11721
|
if (this.currentMetadataKeys.has(nameAsNumber)) {
|
|
11693
11722
|
metadataKey = this.currentMetadataKeys.get(nameAsNumber);
|
|
11694
11723
|
}
|
|
11695
|
-
|
|
11724
|
+
let data = null;
|
|
11725
|
+
if (metadataKey === "----") {
|
|
11726
|
+
let name = null;
|
|
11727
|
+
const freeformSlice = slice2.slice(slice2.filePos, boxInfo2.contentSize);
|
|
11728
|
+
const childIterator = this.iterateContiguousBoxes(freeformSlice);
|
|
11729
|
+
for (const { boxInfo: childBoxInfo, slice: childSlice } of childIterator) {
|
|
11730
|
+
if (childBoxInfo.name === "name" && name === null) {
|
|
11731
|
+
if (childBoxInfo.contentSize < 4) {
|
|
11732
|
+
throw new Error("Invalid 'name' box: too small.");
|
|
11733
|
+
}
|
|
11734
|
+
childSlice.skip(4);
|
|
11735
|
+
name = textDecoder.decode(readBytes(childSlice, childBoxInfo.contentSize - 4));
|
|
11736
|
+
} else if (childBoxInfo.name === "data" && data === null) {
|
|
11737
|
+
childSlice.filePos -= childBoxInfo.headerSize;
|
|
11738
|
+
data = readDataBox(childSlice);
|
|
11739
|
+
}
|
|
11740
|
+
}
|
|
11741
|
+
if (name === null) {
|
|
11742
|
+
continue;
|
|
11743
|
+
}
|
|
11744
|
+
metadataKey = name;
|
|
11745
|
+
} else {
|
|
11746
|
+
data = readDataBox(slice2);
|
|
11747
|
+
}
|
|
11696
11748
|
this.metadataTags.raw ??= {};
|
|
11697
11749
|
this.metadataTags.raw[metadataKey] ??= data;
|
|
11698
11750
|
switch (metadataKey) {
|
|
@@ -11961,7 +12013,7 @@ var Mediabunny = (() => {
|
|
|
11961
12013
|
return this.fetchFirstFragmentedPacket(false, options);
|
|
11962
12014
|
}
|
|
11963
12015
|
mapTimestampIntoTimescale(timestamp) {
|
|
11964
|
-
return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.
|
|
12016
|
+
return roundIfAlmostInteger(timestamp * this.internalTrack.timescale) + this.internalTrack.timestampOffset;
|
|
11965
12017
|
}
|
|
11966
12018
|
async getPacket(timestamp, options) {
|
|
11967
12019
|
const timestampInTimescale = this.mapTimestampIntoTimescale(timestamp);
|
|
@@ -12157,6 +12209,10 @@ var Mediabunny = (() => {
|
|
|
12157
12209
|
if (!sampleInfo) {
|
|
12158
12210
|
return null;
|
|
12159
12211
|
}
|
|
12212
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12213
|
+
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12214
|
+
return null;
|
|
12215
|
+
}
|
|
12160
12216
|
let data;
|
|
12161
12217
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12162
12218
|
data = PLACEHOLDER_DATA;
|
|
@@ -12188,7 +12244,7 @@ var Mediabunny = (() => {
|
|
|
12188
12244
|
}
|
|
12189
12245
|
}
|
|
12190
12246
|
}
|
|
12191
|
-
const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.
|
|
12247
|
+
const timestamp = (sampleInfo.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12192
12248
|
const duration = sampleInfo.duration / this.internalTrack.timescale;
|
|
12193
12249
|
const packet = new EncodedPacket(
|
|
12194
12250
|
data,
|
|
@@ -12211,6 +12267,10 @@ var Mediabunny = (() => {
|
|
|
12211
12267
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12212
12268
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12213
12269
|
assert(fragmentSample);
|
|
12270
|
+
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12271
|
+
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12272
|
+
return null;
|
|
12273
|
+
}
|
|
12214
12274
|
let data;
|
|
12215
12275
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12216
12276
|
data = PLACEHOLDER_DATA;
|
|
@@ -12231,7 +12291,7 @@ var Mediabunny = (() => {
|
|
|
12231
12291
|
}
|
|
12232
12292
|
}
|
|
12233
12293
|
}
|
|
12234
|
-
const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.
|
|
12294
|
+
const timestamp = (fragmentSample.presentationTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12235
12295
|
const duration = fragmentSample.duration / this.internalTrack.timescale;
|
|
12236
12296
|
const packet = new EncodedPacket(
|
|
12237
12297
|
data,
|
|
@@ -12348,7 +12408,7 @@ var Mediabunny = (() => {
|
|
|
12348
12408
|
size: samplePacket.data.byteLength,
|
|
12349
12409
|
blockCount: 6
|
|
12350
12410
|
}];
|
|
12351
|
-
const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.
|
|
12411
|
+
const searchTimestampInSeconds = (searchTimestamp - this.internalTrack.timestampOffset) / this.internalTrack.timescale;
|
|
12352
12412
|
let match = null;
|
|
12353
12413
|
let previousPacket = null;
|
|
12354
12414
|
let blocksBefore = 0;
|
|
@@ -13633,6 +13693,9 @@ var Mediabunny = (() => {
|
|
|
13633
13693
|
assertDefinedSize(size);
|
|
13634
13694
|
currentPos = dataStartPos + size;
|
|
13635
13695
|
}
|
|
13696
|
+
if (this.segments.length === 0) {
|
|
13697
|
+
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13698
|
+
}
|
|
13636
13699
|
})();
|
|
13637
13700
|
}
|
|
13638
13701
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17277,6 +17340,10 @@ var Mediabunny = (() => {
|
|
|
17277
17340
|
if (!rawSample) {
|
|
17278
17341
|
return null;
|
|
17279
17342
|
}
|
|
17343
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
17344
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17345
|
+
return null;
|
|
17346
|
+
}
|
|
17280
17347
|
let data;
|
|
17281
17348
|
if (options.metadataOnly) {
|
|
17282
17349
|
data = PLACEHOLDER_DATA;
|
|
@@ -19097,6 +19164,10 @@ var Mediabunny = (() => {
|
|
|
19097
19164
|
if (!rawSample) {
|
|
19098
19165
|
return null;
|
|
19099
19166
|
}
|
|
19167
|
+
const fileSize = this.demuxer.reader.fileSize;
|
|
19168
|
+
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
19169
|
+
return null;
|
|
19170
|
+
}
|
|
19100
19171
|
let data;
|
|
19101
19172
|
if (options.metadataOnly) {
|
|
19102
19173
|
data = PLACEHOLDER_DATA;
|
|
@@ -19882,6 +19953,7 @@ var Mediabunny = (() => {
|
|
|
19882
19953
|
let programMapPid = null;
|
|
19883
19954
|
let hasProgramAssociationTable = false;
|
|
19884
19955
|
let hasProgramMap = false;
|
|
19956
|
+
let initDemuxer = null;
|
|
19885
19957
|
while (true) {
|
|
19886
19958
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19887
19959
|
if (!packetHeader) {
|
|
@@ -20122,22 +20194,26 @@ var Mediabunny = (() => {
|
|
|
20122
20194
|
}
|
|
20123
20195
|
elementaryStream.firstSection = section;
|
|
20124
20196
|
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
20197
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20139
20198
|
if (elementaryStream.info.type === "video") {
|
|
20199
|
+
let packetCount = 0;
|
|
20140
20200
|
while (true) {
|
|
20201
|
+
if (packetCount === 1 && this.input._initInput) {
|
|
20202
|
+
if (!initDemuxer) {
|
|
20203
|
+
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20204
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20205
|
+
throw new Error("Init input must match the input's format.");
|
|
20206
|
+
}
|
|
20207
|
+
await initDemuxer.readMetadata();
|
|
20208
|
+
}
|
|
20209
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20210
|
+
if (matchingStream) {
|
|
20211
|
+
elementaryStream.info = matchingStream.info;
|
|
20212
|
+
elementaryStream.initialized = true;
|
|
20213
|
+
break outer;
|
|
20214
|
+
}
|
|
20215
|
+
}
|
|
20216
|
+
packetCount++;
|
|
20141
20217
|
const contextAlias = context;
|
|
20142
20218
|
contextAlias.suppliedPacket = null;
|
|
20143
20219
|
await context.markNextPacket();
|
|
@@ -21890,7 +21966,7 @@ var Mediabunny = (() => {
|
|
|
21890
21966
|
if (!this.firstSegment) {
|
|
21891
21967
|
return [];
|
|
21892
21968
|
}
|
|
21893
|
-
const input = this.getInputForSegment(this.firstSegment);
|
|
21969
|
+
const input = this.getInputForSegment(this.firstSegment.initSegment ?? this.firstSegment);
|
|
21894
21970
|
const inputTracks = await input.getTracks();
|
|
21895
21971
|
for (const track of inputTracks) {
|
|
21896
21972
|
if (track.type === "video") {
|
|
@@ -21958,34 +22034,34 @@ var Mediabunny = (() => {
|
|
|
21958
22034
|
constructor(segmentedInput, decl, number) {
|
|
21959
22035
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
21960
22036
|
this.hydrationPromise = null;
|
|
21961
|
-
this.
|
|
21962
|
-
this.firstSegment = null;
|
|
22037
|
+
this.metadataInputTrack = null;
|
|
21963
22038
|
this.segmentedInput = segmentedInput;
|
|
21964
22039
|
this.decl = decl;
|
|
21965
22040
|
this.number = number;
|
|
21966
22041
|
}
|
|
21967
22042
|
hydrate() {
|
|
21968
22043
|
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;
|
|
22044
|
+
const firstSegment = await this.getFirstSegment();
|
|
21974
22045
|
let track = null;
|
|
21975
|
-
|
|
21976
|
-
const
|
|
21977
|
-
const inputTracks = await input.getTracks();
|
|
22046
|
+
if (firstSegment.initSegment) {
|
|
22047
|
+
const inputTracks = await this.segmentedInput.getInputForSegment(firstSegment.initSegment).getTracks();
|
|
21978
22048
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
21979
|
-
|
|
21980
|
-
|
|
22049
|
+
} else {
|
|
22050
|
+
let currentSegment = firstSegment;
|
|
22051
|
+
while (currentSegment) {
|
|
22052
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22053
|
+
const inputTracks = await input.getTracks();
|
|
22054
|
+
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22055
|
+
if (track) {
|
|
22056
|
+
break;
|
|
22057
|
+
}
|
|
22058
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21981
22059
|
}
|
|
21982
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21983
22060
|
}
|
|
21984
22061
|
if (!track) {
|
|
21985
22062
|
throw new Error("No matching track found in underlying media data.");
|
|
21986
22063
|
}
|
|
21987
|
-
this.
|
|
21988
|
-
this.firstSegment = currentSegment;
|
|
22064
|
+
this.metadataInputTrack = track;
|
|
21989
22065
|
})();
|
|
21990
22066
|
}
|
|
21991
22067
|
getType() {
|
|
@@ -21996,53 +22072,52 @@ var Mediabunny = (() => {
|
|
|
21996
22072
|
}
|
|
21997
22073
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
21998
22074
|
delegate(fn) {
|
|
21999
|
-
if (this.
|
|
22075
|
+
if (this.metadataInputTrack) {
|
|
22000
22076
|
return fn();
|
|
22001
22077
|
}
|
|
22002
22078
|
return this.hydrate().then(fn);
|
|
22003
22079
|
}
|
|
22004
22080
|
async getDecoderConfig() {
|
|
22005
|
-
return this.delegate(() => this.
|
|
22081
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22006
22082
|
}
|
|
22007
22083
|
getHasOnlyKeyPackets() {
|
|
22008
22084
|
return this.delegate(() => {
|
|
22009
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
22085
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.metadataInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
22010
22086
|
});
|
|
22011
22087
|
}
|
|
22012
22088
|
getPairingMask() {
|
|
22013
22089
|
return 1n;
|
|
22014
22090
|
}
|
|
22015
22091
|
getCodec() {
|
|
22016
|
-
return this.delegate(() => this.
|
|
22092
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22017
22093
|
}
|
|
22018
22094
|
getInternalCodecId() {
|
|
22019
|
-
return this.delegate(() => this.
|
|
22095
|
+
return this.delegate(() => this.metadataInputTrack._backing.getInternalCodecId());
|
|
22020
22096
|
}
|
|
22021
22097
|
getDisposition() {
|
|
22022
|
-
return this.delegate(() => this.
|
|
22098
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDisposition());
|
|
22023
22099
|
}
|
|
22024
22100
|
getLanguageCode() {
|
|
22025
|
-
return this.delegate(() => this.
|
|
22101
|
+
return this.delegate(() => this.metadataInputTrack._backing.getLanguageCode());
|
|
22026
22102
|
}
|
|
22027
22103
|
getName() {
|
|
22028
|
-
return this.delegate(() => this.
|
|
22104
|
+
return this.delegate(() => this.metadataInputTrack._backing.getName());
|
|
22029
22105
|
}
|
|
22030
22106
|
getTimeResolution() {
|
|
22031
|
-
return this.delegate(() => this.
|
|
22107
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTimeResolution());
|
|
22032
22108
|
}
|
|
22033
22109
|
async isRelativeToUnixEpoch() {
|
|
22034
|
-
await this.
|
|
22035
|
-
|
|
22036
|
-
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
22110
|
+
const firstSegment = await this.getFirstSegment();
|
|
22111
|
+
return firstSegment.unixEpochTimestamp === firstSegment.timestamp;
|
|
22037
22112
|
}
|
|
22038
22113
|
getUnixTimeForTimestamp(timestamp) {
|
|
22039
22114
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
22040
22115
|
}
|
|
22041
22116
|
getBitrate() {
|
|
22042
|
-
return this.delegate(() => this.
|
|
22117
|
+
return this.delegate(() => this.metadataInputTrack._backing.getBitrate());
|
|
22043
22118
|
}
|
|
22044
22119
|
getAverageBitrate() {
|
|
22045
|
-
return this.delegate(() => this.
|
|
22120
|
+
return this.delegate(() => this.metadataInputTrack._backing.getAverageBitrate());
|
|
22046
22121
|
}
|
|
22047
22122
|
getDurationFromMetadata(options) {
|
|
22048
22123
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -22052,9 +22127,9 @@ var Mediabunny = (() => {
|
|
|
22052
22127
|
}
|
|
22053
22128
|
async createAdjustedPacket(packet, segment, track) {
|
|
22054
22129
|
assert(packet.sequenceNumber >= 0);
|
|
22055
|
-
|
|
22130
|
+
const firstSegment = await this.getFirstSegment();
|
|
22056
22131
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
22057
|
-
const segmentTimestampRelativeToFirst = segment.timestamp -
|
|
22132
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
22058
22133
|
const modified = packet.clone({
|
|
22059
22134
|
timestamp: roundToDivisor(
|
|
22060
22135
|
packet.timestamp + mediaOffset,
|
|
@@ -22072,30 +22147,33 @@ var Mediabunny = (() => {
|
|
|
22072
22147
|
return modified;
|
|
22073
22148
|
}
|
|
22074
22149
|
async getFirstPacket(options) {
|
|
22075
|
-
await this.
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
let
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
|
|
22082
|
-
|
|
22150
|
+
const firstSegment = await this.getFirstSegment();
|
|
22151
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
22152
|
+
});
|
|
22153
|
+
let currentSegment = firstSegment;
|
|
22154
|
+
while (currentSegment) {
|
|
22155
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22156
|
+
const tracks = await input.getTracks();
|
|
22157
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22158
|
+
if (track) {
|
|
22159
|
+
const packet = await track._backing.getFirstPacket(options);
|
|
22083
22160
|
if (packet) {
|
|
22084
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
22161
|
+
return this.createAdjustedPacket(packet, currentSegment, track);
|
|
22085
22162
|
}
|
|
22086
22163
|
}
|
|
22087
22164
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
22088
22165
|
skipLiveWait: options.skipLiveWait
|
|
22089
22166
|
});
|
|
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
22167
|
}
|
|
22097
22168
|
return null;
|
|
22098
22169
|
}
|
|
22170
|
+
async getFirstSegment() {
|
|
22171
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
22172
|
+
if (!this.segmentedInput.firstSegment) {
|
|
22173
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
22174
|
+
}
|
|
22175
|
+
return this.segmentedInput.firstSegment;
|
|
22176
|
+
}
|
|
22099
22177
|
getNextPacket(packet, options) {
|
|
22100
22178
|
return this._getNextInternal(packet, options, false);
|
|
22101
22179
|
}
|
|
@@ -22151,11 +22229,12 @@ var Mediabunny = (() => {
|
|
|
22151
22229
|
if (!currentSegment) {
|
|
22152
22230
|
return null;
|
|
22153
22231
|
}
|
|
22154
|
-
|
|
22232
|
+
void this.segmentedInput.getMediaOffsetForDiscontinuity(currentSegment.discontinuityNumber).catch(() => {
|
|
22233
|
+
});
|
|
22155
22234
|
while (currentSegment) {
|
|
22156
22235
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22157
22236
|
const tracks = await input.getTracks();
|
|
22158
|
-
const track = tracks.find((t) => t.type === this.
|
|
22237
|
+
const track = tracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22159
22238
|
if (!track) {
|
|
22160
22239
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22161
22240
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22195,7 +22274,7 @@ var Mediabunny = (() => {
|
|
|
22195
22274
|
if (nextSegment) {
|
|
22196
22275
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22197
22276
|
const nextTracks = await nextInput.getTracks();
|
|
22198
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22277
|
+
const nextTrack = nextTracks.find((t) => t.type === this.decl.type && t.number === this.number);
|
|
22199
22278
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22200
22279
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22201
22280
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22231,31 +22310,31 @@ var Mediabunny = (() => {
|
|
|
22231
22310
|
return "video";
|
|
22232
22311
|
}
|
|
22233
22312
|
getCodec() {
|
|
22234
|
-
return this.delegate(() => this.
|
|
22313
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22235
22314
|
}
|
|
22236
22315
|
getCodedWidth() {
|
|
22237
|
-
return this.delegate(() => this.
|
|
22316
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedWidth());
|
|
22238
22317
|
}
|
|
22239
22318
|
getCodedHeight() {
|
|
22240
|
-
return this.delegate(() => this.
|
|
22319
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodedHeight());
|
|
22241
22320
|
}
|
|
22242
22321
|
getSquarePixelWidth() {
|
|
22243
|
-
return this.delegate(() => this.
|
|
22322
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelWidth());
|
|
22244
22323
|
}
|
|
22245
22324
|
getSquarePixelHeight() {
|
|
22246
|
-
return this.delegate(() => this.
|
|
22325
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSquarePixelHeight());
|
|
22247
22326
|
}
|
|
22248
22327
|
getTransformationMatrix() {
|
|
22249
|
-
return this.delegate(() => this.
|
|
22328
|
+
return this.delegate(() => this.metadataInputTrack._backing.getTransformationMatrix());
|
|
22250
22329
|
}
|
|
22251
22330
|
async getColorSpace() {
|
|
22252
|
-
return this.delegate(() => this.
|
|
22331
|
+
return this.delegate(() => this.metadataInputTrack._backing.getColorSpace());
|
|
22253
22332
|
}
|
|
22254
22333
|
async canBeTransparent() {
|
|
22255
|
-
return this.delegate(() => this.
|
|
22334
|
+
return this.delegate(() => this.metadataInputTrack._backing.canBeTransparent());
|
|
22256
22335
|
}
|
|
22257
22336
|
async getDecoderConfig() {
|
|
22258
|
-
return this.delegate(() => this.
|
|
22337
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22259
22338
|
}
|
|
22260
22339
|
};
|
|
22261
22340
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22263,16 +22342,16 @@ var Mediabunny = (() => {
|
|
|
22263
22342
|
return "audio";
|
|
22264
22343
|
}
|
|
22265
22344
|
getCodec() {
|
|
22266
|
-
return this.delegate(() => this.
|
|
22345
|
+
return this.delegate(() => this.metadataInputTrack._backing.getCodec());
|
|
22267
22346
|
}
|
|
22268
22347
|
getNumberOfChannels() {
|
|
22269
|
-
return this.delegate(() => this.
|
|
22348
|
+
return this.delegate(() => this.metadataInputTrack._backing.getNumberOfChannels());
|
|
22270
22349
|
}
|
|
22271
22350
|
getSampleRate() {
|
|
22272
|
-
return this.delegate(() => this.
|
|
22351
|
+
return this.delegate(() => this.metadataInputTrack._backing.getSampleRate());
|
|
22273
22352
|
}
|
|
22274
22353
|
async getDecoderConfig() {
|
|
22275
|
-
return this.delegate(() => this.
|
|
22354
|
+
return this.delegate(() => this.metadataInputTrack._backing.getDecoderConfig());
|
|
22276
22355
|
}
|
|
22277
22356
|
};
|
|
22278
22357
|
|
|
@@ -24653,8 +24732,12 @@ var Mediabunny = (() => {
|
|
|
24653
24732
|
return cacheEntry.input;
|
|
24654
24733
|
}
|
|
24655
24734
|
let initInput = null;
|
|
24656
|
-
if (hlsSegment.initSegment
|
|
24657
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment
|
|
24735
|
+
if (hlsSegment.initSegment) {
|
|
24736
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24737
|
+
void initInput.getTracks().catch(() => {
|
|
24738
|
+
});
|
|
24739
|
+
} else if (hlsSegment.firstSegment) {
|
|
24740
|
+
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24658
24741
|
}
|
|
24659
24742
|
const formatOptions = {
|
|
24660
24743
|
...this.input._formatOptions,
|
|
@@ -24775,17 +24858,21 @@ var Mediabunny = (() => {
|
|
|
24775
24858
|
}
|
|
24776
24859
|
getFirstSegmentTimestampOffset() {
|
|
24777
24860
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24778
|
-
const firstSegment = await this.getFirstSegment();
|
|
24779
|
-
assert(firstSegment);
|
|
24780
24861
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24781
24862
|
if (this === referenceSegmentedInput) {
|
|
24782
24863
|
return 0;
|
|
24783
24864
|
}
|
|
24784
|
-
const referenceFirstSegment = await
|
|
24865
|
+
const [firstSegment, referenceFirstSegment] = await Promise.all([
|
|
24866
|
+
this.getFirstSegment(),
|
|
24867
|
+
referenceSegmentedInput.getFirstSegment()
|
|
24868
|
+
]);
|
|
24869
|
+
assert(firstSegment);
|
|
24785
24870
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24786
24871
|
return 0;
|
|
24787
24872
|
}
|
|
24788
24873
|
const input = this.getInputForSegment(firstSegment);
|
|
24874
|
+
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24875
|
+
});
|
|
24789
24876
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24790
24877
|
return 0;
|
|
24791
24878
|
}
|
|
@@ -25431,14 +25518,17 @@ var Mediabunny = (() => {
|
|
|
25431
25518
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25432
25519
|
}
|
|
25433
25520
|
async getFirstPacket(options) {
|
|
25521
|
+
this.prefetchReferencePlaylist();
|
|
25434
25522
|
await this.hydrate();
|
|
25435
25523
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25436
25524
|
}
|
|
25437
25525
|
async getPacket(timestamp, options) {
|
|
25526
|
+
this.prefetchReferencePlaylist();
|
|
25438
25527
|
await this.hydrate();
|
|
25439
25528
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25440
25529
|
}
|
|
25441
25530
|
async getKeyPacket(timestamp, options) {
|
|
25531
|
+
this.prefetchReferencePlaylist();
|
|
25442
25532
|
await this.hydrate();
|
|
25443
25533
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25444
25534
|
}
|
|
@@ -25450,6 +25540,10 @@ var Mediabunny = (() => {
|
|
|
25450
25540
|
await this.hydrate();
|
|
25451
25541
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25452
25542
|
}
|
|
25543
|
+
prefetchReferencePlaylist() {
|
|
25544
|
+
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25545
|
+
});
|
|
25546
|
+
}
|
|
25453
25547
|
};
|
|
25454
25548
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25455
25549
|
constructor(internalTrack) {
|
|
@@ -27144,7 +27238,6 @@ var Mediabunny = (() => {
|
|
|
27144
27238
|
this.sampleQueue.length = 0;
|
|
27145
27239
|
}
|
|
27146
27240
|
};
|
|
27147
|
-
var mergerWorkerUrl = null;
|
|
27148
27241
|
var ColorAlphaMerger = class {
|
|
27149
27242
|
constructor() {
|
|
27150
27243
|
this.workers = [];
|
|
@@ -27154,16 +27247,9 @@ var Mediabunny = (() => {
|
|
|
27154
27247
|
}
|
|
27155
27248
|
merge(color, alpha) {
|
|
27156
27249
|
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
27250
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27165
27251
|
for (let i = 0; i < poolSize; i++) {
|
|
27166
|
-
const worker2 =
|
|
27252
|
+
const worker2 = createWorker("color-alpha-merger", colorAlphaMergerWorkerCode);
|
|
27167
27253
|
worker2.addEventListener("message", (event) => {
|
|
27168
27254
|
const data = event.data;
|
|
27169
27255
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30869,7 +30955,6 @@ var Mediabunny = (() => {
|
|
|
30869
30955
|
return chunkTimestamp === 500;
|
|
30870
30956
|
})();
|
|
30871
30957
|
};
|
|
30872
|
-
var splitterWorkerUrl = null;
|
|
30873
30958
|
var ColorAlphaSplitter = class {
|
|
30874
30959
|
constructor() {
|
|
30875
30960
|
this.worker = null;
|
|
@@ -30878,14 +30963,7 @@ var Mediabunny = (() => {
|
|
|
30878
30963
|
}
|
|
30879
30964
|
split(sourceFrame) {
|
|
30880
30965
|
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);
|
|
30966
|
+
this.worker = createWorker("color-alpha-splitter", colorAlphaSplitterWorkerCode);
|
|
30889
30967
|
this.worker.addEventListener("message", (event) => {
|
|
30890
30968
|
const data = event.data;
|
|
30891
30969
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32474,12 +32552,7 @@ var Mediabunny = (() => {
|
|
|
32474
32552
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32475
32553
|
var mediaStreamTrackProcessorWorker = null;
|
|
32476
32554
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32477
|
-
|
|
32478
|
-
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32479
|
-
{ type: "application/javascript" }
|
|
32480
|
-
);
|
|
32481
|
-
const url2 = URL.createObjectURL(blob);
|
|
32482
|
-
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32555
|
+
mediaStreamTrackProcessorWorker = createWorker("media-stream-track-processor", mediaStreamTrackProcessorWorkerCode);
|
|
32483
32556
|
};
|
|
32484
32557
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32485
32558
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35543,8 +35616,8 @@ var Mediabunny = (() => {
|
|
|
35543
35616
|
var tfdt = (trackData) => {
|
|
35544
35617
|
assert(trackData.currentChunk);
|
|
35545
35618
|
return fullBox("tfdt", 1, 0, [
|
|
35546
|
-
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35547
35619
|
// Base Media Decode Time
|
|
35620
|
+
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35548
35621
|
]);
|
|
35549
35622
|
};
|
|
35550
35623
|
var trun = (trackData) => {
|
|
@@ -37512,16 +37585,27 @@ var Mediabunny = (() => {
|
|
|
37512
37585
|
trackData.timestampProcessingQueue.length = 0;
|
|
37513
37586
|
return;
|
|
37514
37587
|
}
|
|
37515
|
-
const
|
|
37588
|
+
const queue = trackData.timestampProcessingQueue;
|
|
37589
|
+
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37590
|
+
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37516
37591
|
if (this.isFragmented) {
|
|
37517
37592
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37518
37593
|
} else {
|
|
37519
37594
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37520
37595
|
}
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
37596
|
+
let groupStartTimescaleUnits;
|
|
37597
|
+
if (trackData.lastTimescaleUnits === null) {
|
|
37598
|
+
groupStartTimescaleUnits = firstTimestampInTimescale;
|
|
37599
|
+
} else {
|
|
37600
|
+
assert(trackData.lastSample);
|
|
37601
|
+
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37602
|
+
}
|
|
37603
|
+
let lastDecodeStep = 0;
|
|
37604
|
+
for (let i = 0; i < queue.length; i++) {
|
|
37605
|
+
const sample = queue[i];
|
|
37606
|
+
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37607
|
+
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37608
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37525
37609
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37526
37610
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37527
37611
|
assert(trackData.lastSample);
|
|
@@ -37530,6 +37614,7 @@ var Mediabunny = (() => {
|
|
|
37530
37614
|
assert(delta >= 0);
|
|
37531
37615
|
trackData.lastTimescaleUnits += delta;
|
|
37532
37616
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37617
|
+
lastDecodeStep = delta;
|
|
37533
37618
|
if (!this.isFragmented) {
|
|
37534
37619
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37535
37620
|
assert(lastTableEntry);
|
|
@@ -37585,11 +37670,15 @@ var Mediabunny = (() => {
|
|
|
37585
37670
|
trackData.timestampProcessingQueue.length = 0;
|
|
37586
37671
|
assert(trackData.lastSample);
|
|
37587
37672
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37588
|
-
if (nextSample
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37673
|
+
if (nextSample) {
|
|
37674
|
+
const nextTimestampInTimescale = intoTimescale(nextSample.timestamp, trackData.timescale);
|
|
37675
|
+
trackData.lastSample.timescaleUnitsToNextSample = Math.max(
|
|
37676
|
+
nextTimestampInTimescale - Math.round(trackData.lastTimescaleUnits),
|
|
37677
|
+
// With open GOPs, the last sample's decode timestamp may already lie past the next key frame. Then, it
|
|
37678
|
+
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37679
|
+
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37680
|
+
lastDecodeStep
|
|
37681
|
+
);
|
|
37593
37682
|
}
|
|
37594
37683
|
}
|
|
37595
37684
|
async registerSample(trackData, sample) {
|