@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias JobState

    JobState: Omit<MediaJob, "jobId">

    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).

    1.0.0