/**@class android.media.MediaCodecList @extends java.lang.Object Allows you to enumerate available codecs, each specified as a {@link android.media.MediaCodecInfo} object, find a codec supporting a given format and query the capabilities of a given codec. <p>See {@link android.media.MediaCodecInfo} for sample usage. */ var MediaCodecList = { /** Use in {@link #MediaCodecList} to enumerate only codecs that are suitable for regular (buffer-to-buffer) decoding or encoding. <em>NOTE:</em> These are the codecs that are returned prior to API 21, using the now deprecated static methods. */ REGULAR_CODECS : "0", /** Use in {@link #MediaCodecList} to enumerate all codecs, even ones that are not suitable for regular (buffer-to-buffer) decoding or encoding. These include codecs, for example, that only work with special input or output surfaces, such as secure-only or tunneled-only codecs. @see MediaCodecInfo.CodecCapabilities#isFormatSupported @see MediaCodecInfo.CodecCapabilities#FEATURE_SecurePlayback @see MediaCodecInfo.CodecCapabilities#FEATURE_TunneledPlayback */ ALL_CODECS : "1", /**Count the number of available (regular) codecs. @deprecated Use {@link #getCodecInfos} instead. @see #REGULAR_CODECS */ getCodecCount : function( ) {}, /**Return the {@link android.media.MediaCodecInfo} object for the codec at the given {@code index} in the regular list. @deprecated Use {@link #getCodecInfos} instead. @see #REGULAR_CODECS */ getCodecInfoAt : function( ) {}, /** @hide */ getInfoFor : function( ) {}, /**Returns the list of {@link android.media.MediaCodecInfo} objects for the list of media-codecs. */ getCodecInfos : function( ) {}, /**Find a decoder supporting a given {@link android.media.MediaFormat} in the list of media-codecs. <p class=note> <strong>Note:</strong> On {@link android.os.Build.VERSION_CODES#LOLLIPOP}, {@code format} must not contain a {@linkplain android.media.MediaFormat#KEY_FRAME_RATE frame rate}. Use <code class=prettyprint>format.setString(MediaFormat.KEY_FRAME_RATE, null)</code> to clear any existing frame rate setting in the format. @param {Object {MediaFormat}} format A decoder media format with optional feature directives. @param format A decoder media format with optional feature directives. @throws IllegalArgumentException if format is not a valid media format. @throws NullPointerException if format is null. @return {String} the name of a decoder that supports the given format and feature requests, or {@code null} if no such codec has been found. */ findDecoderForFormat : function( ) {}, /**Find an encoder supporting a given {@link android.media.MediaFormat} in the list of media-codecs. <p class=note> <strong>Note:</strong> On {@link android.os.Build.VERSION_CODES#LOLLIPOP}, {@code format} must not contain a {@linkplain android.media.MediaFormat#KEY_FRAME_RATE frame rate}. Use <code class=prettyprint>format.setString(MediaFormat.KEY_FRAME_RATE, null)</code> to clear any existing frame rate setting in the format. @param {Object {MediaFormat}} format An encoder media format with optional feature directives. @param format An encoder media format with optional feature directives. @throws IllegalArgumentException if format is not a valid media format. @throws NullPointerException if format is null. @return {String} the name of an encoder that supports the given format and feature requests, or {@code null} if no such codec has been found. */ findEncoderForFormat : function( ) {}, };