Język

MediaCodecInfo.CodecCapabilities.CreateFromProfileLevel Method

Definition

Retrieve the codec capabilities for a certain mime type, profile and level.

[Android.Runtime.Register("createFromProfileLevel", "(Ljava/lang/String;II)Landroid/media/MediaCodecInfo$CodecCapabilities;", "")]
public static Android.Media.MediaCodecInfo.CodecCapabilities? CreateFromProfileLevel(string? mime, Android.Media.MediaCodecProfileLevel profile, int level);
[<Android.Runtime.Register("createFromProfileLevel", "(Ljava/lang/String;II)Landroid/media/MediaCodecInfo$CodecCapabilities;", "")>]
static member CreateFromProfileLevel : string * Android.Media.MediaCodecProfileLevel * int -> Android.Media.MediaCodecInfo.CodecCapabilities

Parameters

mime
String
level
Int32

Returns

Attributes

Remarks

Retrieve the codec capabilities for a certain mime type, profile and level. If the type, or profile-level combination is not understood by the framework, it returns null. In Build.VERSION_CODES.M, calling this method without calling any method of the MediaCodecList class beforehand results in a NullPointerException.

Android reference for android.media.MediaCodecInfo.CodecCapabilities.createFromProfileLevel.

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