MediaCodec.CryptoInfo.Set Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.