An export job's state. status is queued, running, cancelling,
completed, failed or cancelled; once terminal, outcome is
{ destination }, { error: { code, message } } or { cancelled: true }.
facts describes what the worker produced (versions, range, streams).
In addition:
a finished clip's outcome also has start and end, the source
times of its first frame and of the end of its last frame as written: a
copy's earliest written frame (its keyframe, or the leading frames of
an open GOP) and actual end; a re-encode's start and start
plus the encoded length.
progress is { done, total } in seconds of the clip while FFmpeg
writes it (at most 4 updates a second; the SDK reads it about every
350 ms), null while unknown: before writing starts, and always for a
frame. Show an indeterminate bar then. After done reaches total the
player still checks the file before the job completes.
error.code is export-failed, or unsupported for an export the
player cannot make as asked (a stream copy it cannot make, a
videoBitrate: "source" whose source bitrate it cannot tell).
an export of parts (MediaCapture.export) also has
progress.part (from 1) and progress.parts while it runs, and
facts.join once written;
it can also end with source-missing or source-changed (since
1.7.8).
An export job's state.
statusisqueued,running,cancelling,completed,failedorcancelled; once terminal,outcomeis{ destination },{ error: { code, message } }or{ cancelled: true }.factsdescribes what the worker produced (versions, range, streams).In addition:
outcomealso hasstartandend, the source times of its first frame and of the end of its last frame as written: a copy's earliest written frame (its keyframe, or the leading frames of an open GOP) and actual end; a re-encode's start and start plus the encoded length.progressis{ done, total }in seconds of the clip while FFmpeg writes it (at most 4 updates a second; the SDK reads it about every 350 ms),nullwhile unknown: before writing starts, and always for a frame. Show an indeterminate bar then. Afterdonereachestotalthe player still checks the file before the job completes.error.codeisexport-failed, orunsupportedfor an export the player cannot make as asked (a stream copy it cannot make, avideoBitrate: "source"whose source bitrate it cannot tell).progress.part(from 1) andprogress.partswhile it runs, andfacts.joinonce written; it can also end withsource-missingorsource-changed(since 1.7.8).