Transformer.Listener
public 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 methods |
|
|---|---|
default void |
onCompleted(Composition composition, ExportResult exportResult)Called when the export is completed successfully. |
default void |
onError(Called if an exception occurs during the export. |
default void |
onFallbackApplied(Called when falling back to an alternative |
Public methods
onCompleted
default void onCompleted(Composition composition, ExportResult exportResult)
Called when the export is completed successfully.
| Parameters | |
|---|---|
Composition composition |
The |
ExportResult exportResult |
The |
onError
default void onError(
Composition composition,
ExportResult exportResult,
ExportException exportException
)
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
default void onFallbackApplied(
Composition composition,
TransformationRequest originalTransformationRequest,
TransformationRequest fallbackTransformationRequest
)
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 |
TransformationRequest originalTransformationRequest |
The unsupported |
TransformationRequest fallbackTransformationRequest |
The alternative |