Interface Transformer.Listener
-
- Enclosing class:
- Transformer
public static interface Transformer.ListenerA listener for the transformation events.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidonFallbackApplied(MediaItem inputMediaItem, TransformationRequest originalTransformationRequest, TransformationRequest fallbackTransformationRequest)Called when fallback to an alternativeTransformationRequestis necessary to comply with muxer or device constraints.default voidonTransformationCompleted(MediaItem inputMediaItem)Called when the transformation is completed successfully.default voidonTransformationError(MediaItem inputMediaItem, TransformationException exception)Called if an exception occurs during the transformation.default voidonTransformationError(MediaItem inputMediaItem, Exception exception)Deprecated.
-
-
-
Method Detail
-
onTransformationCompleted
default void onTransformationCompleted(MediaItem inputMediaItem)
Called when the transformation is completed successfully.- Parameters:
inputMediaItem- TheMediaItemfor which the transformation is completed.
-
onTransformationError
@Deprecated default void onTransformationError(MediaItem inputMediaItem, Exception exception)
Deprecated.
-
onTransformationError
default void onTransformationError(MediaItem inputMediaItem, TransformationException exception)
Called if an exception occurs during the transformation.- Parameters:
inputMediaItem- TheMediaItemfor which the exception occurs.exception- TheTransformationExceptiondescribing the exception.
-
onFallbackApplied
default void onFallbackApplied(MediaItem inputMediaItem, TransformationRequest originalTransformationRequest, TransformationRequest fallbackTransformationRequest)
Called when fallback to an alternativeTransformationRequestis necessary to comply with muxer or device constraints.- Parameters:
inputMediaItem- TheMediaItemfor which the transformation is requested.originalTransformationRequest- The unsupportedTransformationRequestused when buildingTransformer.fallbackTransformationRequest- The alternativeTransformationRequest.
-
-