@UnstableApi
class ExportResult


Information about the result of an export.

Summary

Nested types

A builder for ExportResult instances.

An input entirely or partially processed.

Constants

const Int

Trim optimization was requested, but it would not improve performance because of key frame placement.

const Int

The requested optimization would not improve performance for a reason other than the ones specified above, so it was abandoned.

const Int

Trim optimization was requested, but it would not improve performance because another transformation that requires transcoding was also requested.

const Int

The optimization failed because mp4 metadata extraction failed (possibly because the file wasn't an mp4 file).

const Int

The optimization failed because the format between the two parts of the media to be put together did not match.

const Int

No optimizations were applied since none were requested.

const Int

The optimization was successfully applied.

Public properties

String?

The name of the audio encoder used, or null if none were used.

Int

The average bitrate of the audio track data, or RATE_UNSET_INT if unset or unknown.

Int

The average bitrate of the video track data, or RATE_UNSET_INT if unset or unknown.

Int

The channel count of the audio, or LENGTH_UNSET if unset or unknown.

ColorInfo?

The ColorInfo of the video, or null if unset or unknown.

Long

The duration of the file in milliseconds, or TIME_UNSET if unset or unknown.

ExportException?

The ExportException that caused the export to fail, or null if the export was a success.

Long

The size of the file in bytes, or LENGTH_UNSET if unset or unknown.

Int

The height of the video, or LENGTH_UNSET if unset or unknown.

Int

The result of any requested optimizations.

ImmutableList<ExportResult.ProcessedInput!>!

The list of processed inputs.

Int

The sample rate of the audio, or RATE_UNSET_INT if unset or unknown.

String?

The name of the video encoder used, or null if none were used.

Int

The number of video frames.

Int

The width of the video, or LENGTH_UNSET if unset or unknown.

Constants

OPTIMIZATION_ABANDONED_KEYFRAME_PLACEMENT_OPTIMAL_FOR_TRIM

const val OPTIMIZATION_ABANDONED_KEYFRAME_PLACEMENT_OPTIMAL_FOR_TRIM = 2: Int

Trim optimization was requested, but it would not improve performance because of key frame placement. The optimization was abandoned and normal export proceeded.

The trim optimization does not improve performance when the requested startPositionUs is at a key frame, or when there are no key frames between the requested startPositionUs and endPositionUs

OPTIMIZATION_ABANDONED_OTHER

const val OPTIMIZATION_ABANDONED_OTHER = 4: Int

The requested optimization would not improve performance for a reason other than the ones specified above, so it was abandoned. Normal export proceeded.

OPTIMIZATION_ABANDONED_TRIM_AND_TRANSCODING_TRANSFORMATION_REQUESTED

const val OPTIMIZATION_ABANDONED_TRIM_AND_TRANSCODING_TRANSFORMATION_REQUESTED = 3: Int

Trim optimization was requested, but it would not improve performance because another transformation that requires transcoding was also requested. The optimization was abandoned and normal export proceeded.

OPTIMIZATION_FAILED_EXTRACTION_FAILED

const val OPTIMIZATION_FAILED_EXTRACTION_FAILED = 5: Int

The optimization failed because mp4 metadata extraction failed (possibly because the file wasn't an mp4 file). Normal export proceeded.

OPTIMIZATION_FAILED_FORMAT_MISMATCH

const val OPTIMIZATION_FAILED_FORMAT_MISMATCH = 6: Int

The optimization failed because the format between the two parts of the media to be put together did not match. Normal export proceeded.

OPTIMIZATION_NONE

const val OPTIMIZATION_NONE = 0: Int

No optimizations were applied since none were requested.

OPTIMIZATION_SUCCEEDED

const val OPTIMIZATION_SUCCEEDED = 1: Int

The optimization was successfully applied.

Public functions

buildUpon

fun buildUpon(): ExportResult.Builder!

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

audioEncoderName

val audioEncoderNameString?

The name of the audio encoder used, or null if none were used.

averageAudioBitrate

val averageAudioBitrateInt

The average bitrate of the audio track data, or RATE_UNSET_INT if unset or unknown.

averageVideoBitrate

val averageVideoBitrateInt

The average bitrate of the video track data, or RATE_UNSET_INT if unset or unknown.

channelCount

val channelCountInt

The channel count of the audio, or LENGTH_UNSET if unset or unknown.

colorInfo

val colorInfoColorInfo?

The ColorInfo of the video, or null if unset or unknown.

durationMs

val durationMsLong

The duration of the file in milliseconds, or TIME_UNSET if unset or unknown.

exportException

val exportExceptionExportException?

The ExportException that caused the export to fail, or null if the export was a success.

fileSizeBytes

val fileSizeBytesLong

The size of the file in bytes, or LENGTH_UNSET if unset or unknown.

height

val heightInt

The height of the video, or LENGTH_UNSET if unset or unknown.

optimizationResult

val optimizationResultInt

The result of any requested optimizations.

sampleRate

val sampleRateInt

The sample rate of the audio, or RATE_UNSET_INT if unset or unknown.

videoEncoderName

val videoEncoderNameString?

The name of the video encoder used, or null if none were used.

videoFrameCount

val videoFrameCountInt

The number of video frames.

width

val widthInt

The width of the video, or LENGTH_UNSET if unset or unknown.