Interface MediaCodecSelector

  • @Deprecated
    public interface MediaCodecSelector
    Deprecated. is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Selector of MediaCodec instances.
    • Method Detail

      • getDecoderInfos

        List<MediaCodecInfo> getDecoderInfos​(String mimeType,
                                             boolean requiresSecureDecoder,
                                             boolean requiresTunnelingDecoder)
                                      throws MediaCodecUtil.DecoderQueryException
        Returns a list of decoders that can decode media in the specified MIME type, in priority order.
        mimeType - The MIME type for which a decoder is required.
        requiresSecureDecoder - Whether a secure decoder is required.
        requiresTunnelingDecoder - Whether a tunneling decoder is required.
        An unmodifiable list of MediaCodecInfos corresponding to decoders. May be empty.
        MediaCodecUtil.DecoderQueryException - Thrown if there was an error querying decoders.