MediaCodec.CryptoInfo.Set 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定子樣本數量、清除/加密大小、金鑰、IV 和 mode 欄位 MediaCodec.CryptoInfo 。
[Android.Runtime.Register("set", "(I[I[I[B[BI)V", "")]
public void Set(int newNumSubSamples, int[] newNumBytesOfClearData, int[] newNumBytesOfEncryptedData, byte[] newKey, byte[] newIV, Android.Media.MediaCodecCryptoMode newMode);
[<Android.Runtime.Register("set", "(I[I[I[B[BI)V", "")>]
member this.Set : int * int[] * int[] * byte[] * byte[] * Android.Media.MediaCodecCryptoMode -> unit
參數
- newNumSubSamples
- Int32
儲存在緩衝區的子樣本數。
- newNumBytesOfClearData
- Int32[]
子樣本的前清位元組計數。
- newNumBytesOfEncryptedData
- Int32[]
後面加密位元組計算子樣本。
- newKey
- Byte[]
緩衝區的內容金鑰識別碼。
- newIV
- Byte[]
緩衝區的加密初始化向量。
- newMode
- MediaCodecCryptoMode
加密模式程式碼用來儲存子樣本元資料。
- 屬性
備註
設定子樣本數量、清除/加密大小、金鑰、IV 和 mode 欄位 MediaCodec.CryptoInfo 。
Java 文件 android.media.MediaCodec.CryptoInfo.set(int, int[], int[], byte[], byte[], int)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。