Files
BridgeSwarm/examples/media-demo/README.md
T
Raven Scott 1bc6f445ac
CI / Build & Test (push) Successful in 10m34s
Updates
2026-08-12 17:01:57 -04:00

1.2 KiB

Media Studio — probe, transform, transcode

What this example does

Batch media tools on the default media pack (bare-media + bare-ffmpeg):

  • probe info
  • imageTransform (resize / WebP)
  • extractFrame
  • transcode with progress events

Files stay under BRIDGE_SWARM_STORAGE/cap-jobs/.

Prerequisites

Install the BridgeSwarm extension and native host. On macOS after a host update, run npm run repair:macos and fully quit the browser.

How to run

Recommended: Extension Settings → enable Examples server.

npm run examples

Open http://127.0.0.1:4173/media-demo/. Do not use file://.

Usage

  1. Drop or pick an image or video.
  2. Run Info, Transform, Extract frame, or Transcode.
  3. Progress and errors show in the log; outputs can be downloaded from the page.

Files in this directory

  • index.html — File picker and action buttons.
  • style.css — Stage layout.
  • app.jsBridgeSwarm.media.* wrappers.

APIs and concepts

  • BridgeSwarm.media.info / imageTransform / extractFrame / transcode / cancel
  • cap-chunk / cap-end / cap-error events under the NMH size limit

See Capabilities.