Stay organized with collections Save and categorize content based on your preferences.

TransformationResult.Builder

class TransformationResult.Builder


A builder for TransformationResult instances.

Summary

Public constructors

Public functions

TransformationResult!
TransformationResult.Builder!

Sets the average audio bitrate.

TransformationResult.Builder!

Sets the average video bitrate.

TransformationResult.Builder!

Sets the duration of the video in milliseconds.

TransformationResult.Builder!

Sets the file size in bytes.

TransformationResult.Builder!

Sets the number of video frames.

Public constructors

Builder

Builder()

Public functions

build

fun build(): TransformationResult!

setAverageAudioBitrate

@CanIgnoreReturnValue
fun setAverageAudioBitrate(averageAudioBitrate: Int): TransformationResult.Builder!

Sets the average audio bitrate.

Input must be positive or RATE_UNSET_INT.

setAverageVideoBitrate

@CanIgnoreReturnValue
fun setAverageVideoBitrate(averageVideoBitrate: Int): TransformationResult.Builder!

Sets the average video bitrate.

Input must be positive or RATE_UNSET_INT.

setDurationMs

@CanIgnoreReturnValue
fun setDurationMs(durationMs: Long): TransformationResult.Builder!

Sets the duration of the video in milliseconds.

Input must be positive or TIME_UNSET.

setFileSizeBytes

@CanIgnoreReturnValue
fun setFileSizeBytes(fileSizeBytes: Long): TransformationResult.Builder!

Sets the file size in bytes.

Input must be positive or LENGTH_UNSET.

setVideoFrameCount

@CanIgnoreReturnValue
fun setVideoFrameCount(videoFrameCount: Int): TransformationResult.Builder!

Sets the number of video frames.

Input must be positive or 0.