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.
949 B
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 withdapi asset lsordapi asset tree). AssetRef: the value returned by agenerate.*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.