MediaCodecInfo.CodecCapabilities.CreateFromProfileLevel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The MIME type used to build the capability description.
- profile
- MediaCodecProfileLevel
The underlying integer value used as the codec profile identifier. Although the managed parameter uses the MediaCodecProfileLevel enum type, this value identifies a profile, not a level.
- level
- Int32
The numeric level identifier placed in that descriptor.
Returns
A capability description derived from the supplied MIME type and profile-and-level values, rather than a selected codec instance.
- 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.