Transforms are ways to combine and compose multiple Operations.
First, let's initialize a transform. You'll need a:
An array of input files
A webhook url
All transforms are processed asynchronously
Now that we have a transform, we can start adding our desired operations.
We do this by calling
transform.add() and supplying a function which takes an array of input files, and returns
a new instance of an operation.
The array of input files contains the output video of the last operation.
The function has an argument of type AcceptedFiles and expects a return of type
OperationClass here is the parent class of all operations, so any valid operation is accepted
Once you've added all your operations, we can now start executing the transform 😎
When processing is completed you will get a webhook response, check Async Processing to learn how to deal with the webhook