TransformationRequest.Builder
public final class TransformationRequest.Builder
A builder for TransformationRequest instances.
Summary
Public constructors |
|---|
Builder()Creates a new instance with default values. |
Public methods |
|
|---|---|
TransformationRequest |
build()Builds a |
TransformationRequest.Builder |
@CanIgnoreReturnValueSets the audio MIME type of the output. |
TransformationRequest.Builder |
@CanIgnoreReturnValueSets the |
TransformationRequest.Builder |
@CanIgnoreReturnValueSets the video MIME type of the output. |
Public constructors
Builder
public Builder()
Creates a new instance with default values.
Use buildUpon to obtain a builder representing an existing TransformationRequest.
Public methods
setAudioMimeType
@CanIgnoreReturnValue
public TransformationRequest.Builder setAudioMimeType(@Nullable String audioMimeType)
Sets the audio MIME type of the output.
The default value is null which corresponds to using the same MIME type as the input. Supported MIME types are:
| Returns | |
|---|---|
TransformationRequest.Builder |
This builder. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
If the |
setHdrMode
@CanIgnoreReturnValue
public TransformationRequest.Builder setHdrMode(@Composition.HdrMode int hdrMode)
Sets the Composition.HdrMode for HDR video input.
The default value is HDR_MODE_KEEP_HDR.
| Parameters | |
|---|---|
@Composition.HdrMode int hdrMode |
The |
| Returns | |
|---|---|
TransformationRequest.Builder |
This builder. |
setVideoMimeType
@CanIgnoreReturnValue
public TransformationRequest.Builder setVideoMimeType(@Nullable String videoMimeType)
Sets the video MIME type of the output.
The default value is null which corresponds to using the same MIME type as the input. Supported MIME types are:
VIDEO_H263VIDEO_H264VIDEO_H265from API level 24VIDEO_MP4V
| Returns | |
|---|---|
TransformationRequest.Builder |
This builder. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
If the |