export

abstract fun export(plan: ExportPlan, to: MediaSink): Flow<ExportStatus>(source)

Runs a plan.

A plan comes only from Verdict.Capable or Verdict.Degraded, including the one Verdict.Incapable.withoutUnsupported carries with the effects this device cannot run left out, so a caller always has the list of what this device will change before a render starts. Cancel by cancelling the collecting scope. Exports run one at a time across every instance in the process, on every backend, so the flow may wait before emitting ExportStatus.Started.

Return

A flow of statuses ending in ExportStatus.Finished.

Parameters

plan

The plan to run.

to

Where to write the output.


abstract fun export(composition: EditComposition, spec: ExportSpec, to: MediaSink): Flow<ExportStatus>(source)

Plans and exports in one call.

Adjustments arrive as ExportStatus.Adjusted before any progress, and an incapable device fails before any work starts, with every reason plan would have given on ExportStatus.Failure.reasons. Use plan instead to ask the user before committing.

Return

A flow of statuses ending in ExportStatus.Finished.

Parameters

composition

The edit to export.

spec

The output being asked for.

to

Where to write the output.