@UnstableApi
interface EncoderSelector


Selector of MediaCodec encoder instances.

Summary

Constants

const EncoderSelector!

Default implementation of EncoderSelector, which returns the preferred encoders for the given MIME type.

Public functions

ImmutableList<MediaCodecInfo!>!

Returns a list of encoders that can encode media in the specified mimeType, in priority order.

Constants

DEFAULT

const val DEFAULTEncoderSelector!

Default implementation of EncoderSelector, which returns the preferred encoders for the given MIME type.

The EncoderSelector selection result contains only hardware encoders if they exist, or only software encoders otherwise.

Public functions

selectEncoderInfos

fun selectEncoderInfos(mimeType: String!): ImmutableList<MediaCodecInfo!>!

Returns a list of encoders that can encode media in the specified mimeType, in priority order.

Parameters
mimeType: String!

The MIME type for which an encoder is required.

Returns
ImmutableList<MediaCodecInfo!>!

An immutable list of encoders that support the mimeType. The list may be empty.