@wistia/render-pipeline-client
v1.0.0
Published
client-side tools for working with the render-pipeline API
Downloads
2
Readme
render-pipeline-client
Installation in other applications
Add it to your application's package.json.
With yarn:
yarn add render-pipeline-client
With npm:
npm install render-pipeline-client
Use the client:
import { clip, video, renderVideo } from 'render-pipeline-client';
const exampleFn = async () => {
const myVid = video({ uri: ".../hi.mp4" });
// Times are expected in microsecond integers.
// That's Math.round(timeInSeconds * 1_000_000).
const clippedVid = clip(myVid, { start: 10_000000, end: 30_000_000 });
// TODO: update rendering so it makes more sense.
const renderedVid = await renderVideo(clippedVid, ...);
console.log('rendered', renderedVid);
};
See the tests or playground for more examples.
Local Setup
We assume you'll have already gone through wistia-setup.
asdf install
yarn install
Auto-build and manual testing
This will auto-compile any changes you make. You can test them manually at https://render-pipeline-client.wistia.io/test/manual/.
./run