public interface MediaCodecSelector
MediaCodec
instances.Modifier and Type | Field and Description |
---|---|
static MediaCodecSelector |
DEFAULT
Default implementation of
MediaCodecSelector . |
Modifier and Type | Method and Description |
---|---|
DecoderInfo |
getDecoderInfo(String mimeType,
boolean requiresSecureDecoder)
Selects a decoder to instantiate for a given mime type.
|
DecoderInfo |
getPassthroughDecoderInfo()
Selects a decoder to instantiate for audio passthrough.
|
static final MediaCodecSelector DEFAULT
MediaCodecSelector
.DecoderInfo getDecoderInfo(String mimeType, boolean requiresSecureDecoder) throws MediaCodecUtil.DecoderQueryException
mimeType
- The mime type for which a decoder is required.requiresSecureDecoder
- Whether a secure decoder is required.DecoderInfo
describing the decoder, or null if no suitable decoder exists.MediaCodecUtil.DecoderQueryException
- Thrown if there was an error querying decoders.DecoderInfo getPassthroughDecoderInfo() throws MediaCodecUtil.DecoderQueryException
DecoderInfo
describing the decoder, or null if no suitable decoder exists.MediaCodecUtil.DecoderQueryException
- Thrown if there was an error querying decoders.