EncoderSelector
@UnstableApi
interface EncoderSelector
Selector of MediaCodec encoder instances.
Summary
Constants |
|
|---|---|
const EncoderSelector! |
Default implementation of |
Public functions |
|
|---|---|
ImmutableList<MediaCodecInfo!>! |
selectEncoderInfos(mimeType: String!)Returns a list of encoders that can encode media in the specified |
Constants
DEFAULT
const val DEFAULT: EncoderSelector!
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.
| Returns | |
|---|---|
ImmutableList<MediaCodecInfo!>! |
An immutable list of |