MediaCodecList.FindDecoderForFormat(MediaFormat) Method

Definition

Find a decoder supporting a given MediaFormat in the list of media-codecs.

[Android.Runtime.Register("findDecoderForFormat", "(Landroid/media/MediaFormat;)Ljava/lang/String;", "")]
public string? FindDecoderForFormat (Android.Media.MediaFormat? format);
[<Android.Runtime.Register("findDecoderForFormat", "(Landroid/media/MediaFormat;)Ljava/lang/String;", "")>]
member this.FindDecoderForFormat : Android.Media.MediaFormat -> string

Parameters

format
MediaFormat

A decoder media format with optional feature directives.

Returns

String

the name of a decoder that supports the given format and feature requests, or null if no such codec has been found.

Attributes

Exceptions

if format is not a valid media format.

if format is null.

Remarks

Java documentation for android.media.MediaCodecList.findDecoderForFormat(android.media.MediaFormat).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to