語言

MediaCodecInfo.CodecCapabilities.CreateFromProfileLevel 方法

定義

取得特定默劇類型、輪廓和音量的編解碼器功能。

[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

參數

mime
String
level
Int32

傳回

屬性

備註

取得特定默劇類型、輪廓和音量的編解碼器功能。 若框架無法理解該類型或配置層級的組合,則回傳為空。 Build.VERSION_CODES。M,若未事先呼叫 MediaCodecList 類別中的任何方法,呼叫此方法會產生 NullPointerException。

Android 參考資料。android.media.MediaCodecInfo.CodecCapabilities.createFromProfileLevel

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於