onVideoCreated(blob [,done [,fail [,notify]]])
onVideoCreated is called if the output is set to
blob and the output video blob will be passed as the first parameter. The blob is valid until this function finishes processing which is determined using either 1 of 3 cases:
- If the function signature contains at least a done parameter and either done or fail callback is called.
- If a promise (or thenable) is returned, wait for it to be resolved or rejected.
- If the function returns something other than a promise, and doesn’t specify at least a done-callback parameter, the processing will be considered completed immediately on return.
Until the function completes processing the output file is considered as “being uploaded”. If a promise capable of progress reports is returned (i.e. where the then-function accepts a third callback), or if the notify callback is used, a numeric progress will be interpreted as an upload completion percentage and will be displayed as such on screen. After the processing is completed (as determined above) the blob can no longer be used reliably as the backing store may have been removed.