Processing
All components come with built-in ability to process videos using @modfy/core.
Learn more about how Auth is handled for the core package.
The components support all the processing types from @modfy/core, learn more about them here.
Types#
There are five processing types:
disabledNo processing happens hereotherLet you control the processing and is dependant of the component itselfsyncThis uses our servers to process the video synchronouslyasyncThis uses our servers to process the video asynchronouslyclientThis uses the clients browser to process video locally.
Sync Processing#
There are two extra props you have to pass to the component when sync is enabled.
modfyThis is the instance of the modfy class from@modfy/corecallbackThis will give you the returned video, once it is finished processing. (Uint8Array)
Client Processing#
This is the exact same above except to get this fully working you need Client Side Processing
Async Processing#
There are two extra props you have to pass to the component when async is enabled.
modfyThis is the instance of the modfy class from@modfy/corewebhookThis is the webhook url where you want to get the processed video.callbackThis is an optional prop which returns{id: string, uuid: string}