docs/doc/reference/com/google/android/exoplayer2/transformer/TransformationRequest.Builder.html
Package com.google.android.exoplayer2.transformer
Enclosing class:TransformationRequest
public static final classTransformationRequest.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A builder for TransformationRequest instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder() |
Creates a new instance with default values.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| TransformationRequest | build() |
Builds a TransformationRequest instance.
|
| TransformationRequest.Builder | experimental_setEnableHdrEditing(boolean enableHdrEditing) |
Deprecated.
This method is now a no-op if false, and sets setHdrMode(HDR_MODE_KEEP_HDR) if true.
|
| TransformationRequest.Builder | setAudioMimeType(String audioMimeType) |
Sets the audio MIME type of the output.
|
| TransformationRequest.Builder | setEnableRequestSdrToneMapping(boolean enableRequestSdrToneMapping) |
Deprecated.
This method is now a no-op if false, and sets setHdrMode(HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC) if true.
|
| TransformationRequest.Builder | setHdrMode(@com.google.android.exoplayer2.transformer.TransformationRequest.HdrMode int hdrMode) |
Sets the TransformationRequest.HdrMode for HDR video input.
|
| TransformationRequest.Builder | setVideoMimeType(String videoMimeType) |
Sets the video MIME type of the output.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Builder()
Creates a new instance with default values.
Use TransformationRequest.buildUpon() to obtain a builder representing an existing TransformationRequest.
-
@CanIgnoreReturnValue
public[TransformationRequest.Builder](TransformationRequest.Builder.html "class in com.google.android.exoplayer2.transformer")setVideoMimeType(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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:
- [`MimeTypes.VIDEO_H263`](../util/MimeTypes.html#VIDEO_H263)
- [`MimeTypes.VIDEO_H264`](../util/MimeTypes.html#VIDEO_H264)
- [`MimeTypes.VIDEO_H265`](../util/MimeTypes.html#VIDEO_H265) from API level 24
- [`MimeTypes.VIDEO_MP4V`](../util/MimeTypes.html#VIDEO_MP4V)
Parameters:videoMimeType - The MIME type of the video samples in the output.Returns:This builder.Throws:IllegalArgumentException - If the videoMimeType is non-null but not a video MIME type.
-
@CanIgnoreReturnValue
public[TransformationRequest.Builder](TransformationRequest.Builder.html "class in com.google.android.exoplayer2.transformer")setAudioMimeType(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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:
- [`MimeTypes.AUDIO_AAC`](../util/MimeTypes.html#AUDIO_AAC)
- [`MimeTypes.AUDIO_AMR_NB`](../util/MimeTypes.html#AUDIO_AMR_NB)
- [`MimeTypes.AUDIO_AMR_WB`](../util/MimeTypes.html#AUDIO_AMR_WB)
Parameters:audioMimeType - The MIME type of the audio samples in the output.Returns:This builder.Throws:IllegalArgumentException - If the audioMimeType is non-null but not an audio MIME type.
-
@CanIgnoreReturnValue
public[TransformationRequest.Builder](TransformationRequest.Builder.html "class in com.google.android.exoplayer2.transformer")setHdrMode(@com.google.android.exoplayer2.transformer.TransformationRequest.HdrMode int hdrMode)
Sets the TransformationRequest.HdrMode for HDR video input.
The default value is TransformationRequest.HDR_MODE_KEEP_HDR.
Parameters:hdrMode - The TransformationRequest.HdrMode used.Returns:This builder.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")@CanIgnoreReturnValue
public[TransformationRequest.Builder](TransformationRequest.Builder.html "class in com.google.android.exoplayer2.transformer")setEnableRequestSdrToneMapping(boolean enableRequestSdrToneMapping)
Deprecated.
This method is now a no-op if false, and sets setHdrMode(HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC) if true. Use setHdrMode(@com.google.android.exoplayer2.transformer.TransformationRequest.HdrMode int) with TransformationRequest.HDR_MODE_TONE_MAP_HDR_TO_SDR_USING_MEDIACODEC instead.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")@CanIgnoreReturnValue
public[TransformationRequest.Builder](TransformationRequest.Builder.html "class in com.google.android.exoplayer2.transformer")experimental_setEnableHdrEditing(boolean enableHdrEditing)
Deprecated.
This method is now a no-op if false, and sets setHdrMode(HDR_MODE_KEEP_HDR) if true. experimental_setEnableHdrEditing(true) is now the default behavior. Use setHdrMode(@com.google.android.exoplayer2.transformer.TransformationRequest.HdrMode int) with link TransformationRequest.HDR_MODE_KEEP_HDR instead.
-
public[TransformationRequest](TransformationRequest.html "class in com.google.android.exoplayer2.transformer")build()
Builds a TransformationRequest instance.