Interface Transformer.Listener
-
- Enclosing class:
- Transformer
public static interface Transformer.Listener
A listener for the transformation events.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
onFallbackApplied(MediaItem inputMediaItem, TransformationRequest originalTransformationRequest, TransformationRequest fallbackTransformationRequest)
Called when fallback to an alternativeTransformationRequest
is necessary to comply with muxer or device constraints.default void
onTransformationCompleted(MediaItem inputMediaItem)
Deprecated.default void
onTransformationCompleted(MediaItem inputMediaItem, TransformationResult transformationResult)
Called when the transformation is completed successfully.default void
onTransformationError(MediaItem inputMediaItem, TransformationException exception)
Called if an exception occurs during the transformation.default void
onTransformationError(MediaItem inputMediaItem, Exception exception)
Deprecated.
-
-
-
Method Detail
-
onTransformationCompleted
@Deprecated default void onTransformationCompleted(MediaItem inputMediaItem)
Deprecated.
-
onTransformationCompleted
default void onTransformationCompleted(MediaItem inputMediaItem, TransformationResult transformationResult)
Called when the transformation is completed successfully.- Parameters:
inputMediaItem
- TheMediaItem
for which the transformation is completed.transformationResult
- TheTransformationResult
of the transformation.
-
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
- TheMediaItem
for which the exception occurs.exception
- TheTransformationException
describing the exception.
-
onFallbackApplied
default void onFallbackApplied(MediaItem inputMediaItem, TransformationRequest originalTransformationRequest, TransformationRequest fallbackTransformationRequest)
Called when fallback to an alternativeTransformationRequest
is necessary to comply with muxer or device constraints.- Parameters:
inputMediaItem
- TheMediaItem
for which the transformation is requested.originalTransformationRequest
- The unsupportedTransformationRequest
used when buildingTransformer
.fallbackTransformationRequest
- The alternativeTransformationRequest
, with supportedTransformationRequest.audioMimeType
,TransformationRequest.videoMimeType
,TransformationRequest.outputHeight
, andTransformationRequest.enableRequestSdrToneMapping
values set.
-
-