Share via


MediaCodec.CryptoInfo.Set Method

Definition

Set the subsample count, clear/encrypted sizes, key, IV and mode fields of a MediaCodec.CryptoInfo instance.

[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

Parameters

newNumSubSamples
Int32
newNumBytesOfClearData
Int32[]
newNumBytesOfEncryptedData
Int32[]
newKey
Byte[]
newIV
Byte[]
Attributes

Remarks

Set the subsample count, clear/encrypted sizes, key, IV and mode fields of a MediaCodec.CryptoInfo instance.

Java documentation for android.media.MediaCodec.CryptoInfo.set(int, int[], int[], byte[], byte[], int).

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