Class ShadowMediaCodecList


  • @Implements(value=android.media.MediaCodecList.class,
                minSdk=21)
    public class ShadowMediaCodecList
    extends java.lang.Object
    Implementation of MediaCodecList.

    Custom MediaCodecInfo can be created using MediaCodecInfoBuilder and added to the list of codecs via addCodec(android.media.MediaCodecInfo).

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addCodec​(android.media.MediaCodecInfo mediaCodecInfo)
      Add a MediaCodecInfo to the list of MediaCodecInfos.
      protected static android.media.MediaCodecInfo getNewCodecInfoAt​(int index)  
      protected static int native_getCodecCount()  
      static void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowMediaCodecList

        public ShadowMediaCodecList()
    • Method Detail

      • addCodec

        public static void addCodec​(android.media.MediaCodecInfo mediaCodecInfo)
        Add a MediaCodecInfo to the list of MediaCodecInfos.
        Parameters:
        mediaCodecInfo - MediaCodecInfo describing the codec. Use MediaCodecInfoBuilder to create an instance of it.
      • reset

        @Resetter
        public static void reset()
      • native_getCodecCount

        @Implementation
        protected static int native_getCodecCount()
      • getNewCodecInfoAt

        @Implementation
        protected static android.media.MediaCodecInfo getNewCodecInfoAt​(int index)