MediaCodec.CryptoInfo.SetPattern(MediaCodec+CryptoInfo+Pattern) 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 encryption pattern on a MediaCodec.CryptoInfo instance.
[Android.Runtime.Register("setPattern", "(Landroid/media/MediaCodec$CryptoInfo$Pattern;)V", "", ApiSince=24)]
public void SetPattern(Android.Media.MediaCodec.CryptoInfo.Pattern? newPattern);
[<Android.Runtime.Register("setPattern", "(Landroid/media/MediaCodec$CryptoInfo$Pattern;)V", "", ApiSince=24)>]
member this.SetPattern : Android.Media.MediaCodec.CryptoInfo.Pattern -> unit
Parameters
- newPattern
- MediaCodec.CryptoInfo.Pattern
The encryption pattern. On Android 7.0 through 10 (API levels 24 through 29), null is stored, and secure-input queuing treats it as zero encrypt and skip counts. On Android 11 (API level 30) and later, null selects a zero-count pattern. On Android 12 (API level 31) and later, the encrypted and skipped counts are copied. On Android 7.0 through 11 (API levels 24 through 30), a non-null pattern is stored by reference, so later changes made with Set(Int32, Int32) affect buffers queued afterward. A subsequent call to Set(Int32, Int32[], Int32[], Byte[], Byte[], MediaCodecCryptoMode) resets the pattern to zero.
- Attributes
Remarks
Set the encryption pattern on a MediaCodec.CryptoInfo instance. See Pattern.
Android reference for android.media.MediaCodec.CryptoInfo.setPattern.
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.