Transformer.Listener
interface Transformer.Listener
A listener for the export events.
If the export is not cancelled, either onError or onCompleted will be called once for each export.
Summary
Public functions |
|
|---|---|
Unit |
onCompleted(composition: Composition!, exportResult: ExportResult!)Called when the export is completed successfully. |
Unit |
onError(Called if an exception occurs during the export. |
Unit |
onFallbackApplied(Called when falling back to an alternative |
Public functions
onCompleted
fun onCompleted(composition: Composition!, exportResult: ExportResult!): Unit
Called when the export is completed successfully.
| Parameters | |
|---|---|
composition: Composition! |
The |
exportResult: ExportResult! |
The |
onError
fun onError(
composition: Composition!,
exportResult: ExportResult!,
exportException: ExportException!
): Unit
Called if an exception occurs during the export.
The export output file (if any) is not deleted in this case.
| Parameters | |
|---|---|
composition: Composition! |
The |
exportResult: ExportResult! |
The |
exportException: ExportException! |
The |
onFallbackApplied
fun onFallbackApplied(
composition: Composition!,
originalTransformationRequest: TransformationRequest!,
fallbackTransformationRequest: TransformationRequest!
): Unit
Called when falling back to an alternative TransformationRequest or changing the video frames' resolution is necessary to comply with muxer or device constraints.
| Parameters | |
|---|---|
composition: Composition! |
The |
originalTransformationRequest: TransformationRequest! |
The unsupported |
fallbackTransformationRequest: TransformationRequest! |
The alternative |