Interface EncoderSelector


  • @Deprecated
    public interface EncoderSelector
    Deprecated.
    com.google.android.exoplayer2 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 encoder instances.
    • Field Detail

      • DEFAULT

        static final EncoderSelector DEFAULT
        Deprecated.
        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.

    • Method Detail

      • selectEncoderInfos

        ImmutableList<MediaCodecInfo> selectEncoderInfos​(String mimeType)
        Deprecated.
        Returns a list of encoders that can encode media in the specified mimeType, in priority order.
        Parameters:
        mimeType - The MIME type for which an encoder is required.
        Returns:
        An immutable list of encoders that support the mimeType. The list may be empty.