Android.Media.MediaCodec.QueueSecureInputBuffer Method
Similar to MediaCodec.QueueInputBuffer(int, System.Int32, System.Int32, System.Int32, System.Int32) but submits a buffer that is potentially encrypted.

Syntax

[Android.Runtime.Register("queueSecureInputBuffer", "(IILandroid/media/MediaCodec$CryptoInfo;JI)V", "")]
public void QueueSecureInputBuffer (int index, int offset, MediaCodec.CryptoInfo info, long presentationTimeUs, [Android.Runtime.GeneratedEnum] MediaCodecBufferFlags flags)

Parameters

index
The index of a client-owned input buffer previously returned in a call to MediaCodec.DequeueInputBuffer(long).
offset
The byte offset into the input buffer at which the data starts.
info
Metadata required to facilitate decryption, the object can be reused immediately after this call returns.
presentationTimeUs
The presentation timestamp in microseconds for this buffer. This is normally the media time at which this buffer should be presented (rendered).
flags
A bitmask of flags MediaCodec.BufferFlagCodecConfig and MediaCodec.BufferFlagEndOfStream. While not prohibited, most codecs do not use the MediaCodec.BufferFlagKeyFrame flag for input buffers.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif not in the Executing state.
!:NoType:android/media/MediaCodec$CodecException;Href=../../../reference/android/media/MediaCodec.CodecException.htmlupon codec error.
!:NoType:android/media/MediaCodec$CryptoException;Href=../../../reference/android/media/MediaCodec.CryptoException.htmlif an error occurs while attempting to decrypt the buffer. An error code associated with the exception helps identify the reason for the failure.

Remarks

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16