Android Guides | Samples

Android.Media.MediaCodecList Class

Allows you to enumerate available codecs, each specified as a MediaCodecInfo object, find a codec supporting a given format and query the capabilities of a given codec.

See Also: MediaCodecList

Syntax

[Android.Runtime.Register("android/media/MediaCodecList", DoNotGenerateAcw=true)]
public sealed class MediaCodecList : Object

Remarks

Allows you to enumerate available codecs, each specified as a MediaCodecInfo object, find a codec supporting a given format and query the capabilities of a given codec.

See MediaCodecInfo for sample usage.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16

The members of Android.Media.MediaCodecList are listed below.

See Also: Object

Public Constructors

Create a list of media-codecs of a specific kind.

Public Properties

[read-only]
static
CodecCountInt32. Count the number of available (regular) codecs.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

FindDecoderForFormat(MediaFormat) : String
Find a decoder supporting a given MediaFormat in the list of media-codecs.
FindEncoderForFormat(MediaFormat) : String
Find an encoder supporting a given MediaFormat in the list of media-codecs.
static
GetCodecInfoAt(Int32) : MediaCodecInfo
Return the MediaCodecInfo object for the codec at the given index in the regular list.
GetCodecInfos() : MediaCodecInfo[]
Returns the list of MediaCodecInfo objects for the list of media-codecs.