konstantin-paulus c1bc3f0085 Update package.json and README for consistency and clarity
Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
2026-07-20 15:53:30 +02:00

949 B

Media source resolution

src (on <video>, <image>, <audio>) accepts:

  • Global path: e.g. "/Movies/video.mp4", resolved against the user's OS.
  • Remote URL: e.g. "https://my.videoarchive.com/audio/clip.wav", registered as a remote asset.
  • Asset id: e.g. "gbHJ", an imported asset (discover ids with dapi asset ls or dapi asset tree).
  • AssetRef: the value returned by a generate.* declaration (see generate.md). The node is inserted immediately as a placeholder and its paint is attached once the asset has generated.

In dapi node patch, src takes a path, URL, or asset id; generate.* declarations are JSX-only.

To read a source's raw bytes inside an effect (rather than mount it as a node), pass the same input to useFile, which resolves it to a File.