Język

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

The subsample count to store for the buffer.

newNumBytesOfClearData
Int32[]

The leading clear-byte counts for the subsamples.

newNumBytesOfEncryptedData
Int32[]

The trailing encrypted-byte counts for the subsamples.

newKey
Byte[]

The content-key identifier for the buffer.

newIV
Byte[]

The encryption initialization vector for the buffer.

newMode
MediaCodecCryptoMode

The encryption-mode code to store with the subsample metadata.

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