1.2 KiB
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)extractFrametranscodewith 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
- Drop or pick an image or video.
- Run Info, Transform, Extract frame, or Transcode.
- 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.js —
BridgeSwarm.media.*wrappers.
APIs and concepts
BridgeSwarm.media.info / imageTransform / extractFrame / transcode / cancelcap-chunk/cap-end/cap-errorevents under the NMH size limit
See Capabilities.