MediaCodec.QueueRequest.SetEncryptedLinearBlock Method

Definition

Set an encrypted linear block to this queue request.

[Android.Runtime.Register("setEncryptedLinearBlock", "(Landroid/media/MediaCodec$LinearBlock;IILandroid/media/MediaCodec$CryptoInfo;)Landroid/media/MediaCodec$QueueRequest;", "", ApiSince=30)]
public Android.Media.MediaCodec.QueueRequest SetEncryptedLinearBlock(Android.Media.MediaCodec.LinearBlock block, int offset, int size, Android.Media.MediaCodec.CryptoInfo cryptoInfo);
[<Android.Runtime.Register("setEncryptedLinearBlock", "(Landroid/media/MediaCodec$LinearBlock;IILandroid/media/MediaCodec$CryptoInfo;)Landroid/media/MediaCodec$QueueRequest;", "", ApiSince=30)>]
member this.SetEncryptedLinearBlock : Android.Media.MediaCodec.LinearBlock * int * int * Android.Media.MediaCodec.CryptoInfo -> Android.Media.MediaCodec.QueueRequest

Parameters

block
MediaCodec.LinearBlock

The linear block object. This value cannot be null.

offset
Int32

The byte offset into the input buffer at which the data starts.

size
Int32

The number of bytes of valid input data.

cryptoInfo
MediaCodec.CryptoInfo

Metadata describing the structure of the encrypted input sample. This value cannot be null.

Returns

this object. This value cannot be null.

Attributes

Remarks

Set an encrypted linear block to this queue request. Exactly one buffer must be set for a queue request before calling queue(). It is possible to use the same LinearBlock object for multiple queue requests. The behavior is undefined if the range of the buffer overlaps for multiple requests, or the application writes into the region being processed by the codec.

Android reference for android.media.MediaCodec.QueueRequest.setEncryptedLinearBlock.

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