共用方式為


MediaRecorder.SetVideoEncodingProfileLevel 方法

定義

設定錄製所需的視訊編碼設定檔和層級。

[Android.Runtime.Register("setVideoEncodingProfileLevel", "(II)V", "GetSetVideoEncodingProfileLevel_IIHandler", ApiSince=26)]
public virtual void SetVideoEncodingProfileLevel (Android.Media.MediaCodecProfileType profile, int level);
[<Android.Runtime.Register("setVideoEncodingProfileLevel", "(II)V", "GetSetVideoEncodingProfileLevel_IIHandler", ApiSince=26)>]
abstract member SetVideoEncodingProfileLevel : Android.Media.MediaCodecProfileType * int -> unit
override this.SetVideoEncodingProfileLevel : Android.Media.MediaCodecProfileType * int -> unit

參數

profile
MediaCodecProfileType

在 中 MediaCodecInfo.CodecProfileLevel 宣告。

level
Int32

在 中 MediaCodecInfo.CodecProfileLevel 宣告。

屬性

備註

設定錄製所需的視訊編碼設定檔和層級。 設定檔和層級對於 所 #setVideoEncoder 設定的視訊編碼器必須有效。 這個方法可以在 之前或之後 #setVideoEncoder 呼叫,但必須在 之前 #prepare 呼叫。 prepare() 可能會對 參數執行額外的檢查,以確保指定的設定檔和層級適用,有時因為編解碼器上限而捨棄傳遞的設定檔或層級,或確保視訊錄製可以根據平臺的功能順利進行。 <br > Application 也可以使用 MediaCodecInfo.CodecCapabilities#profileLevels 來查詢對應格式之設定檔和層級的適用組合。 請注意,此 MediaRecorder 實例實際使用的編解碼器可能不支援要求的設定檔/層級。

android.media.MediaRecorder.setVideoEncodingProfileLevel(int, int) JAVA 檔。

此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。

適用於