Android.Media.MediaCodec.GetInputBuffer Method
Returns a Java.Nio.Buffer.Clear, writable ByteBuffer object for a dequeued input buffer index to contain the input data.

Syntax

[Android.Runtime.Register("getInputBuffer", "(I)Ljava/nio/ByteBuffer;", "")]
public Java.Nio.ByteBuffer GetInputBuffer (int index)

Parameters

index
The index of a client-owned input buffer previously returned from a call to MediaCodec.DequeueInputBuffer(long), or received via an onInputBufferAvailable callback.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif not in the Executing state.
!:NoType:android/media/MediaCodec$CodecException;Href=../../../reference/android/media/MediaCodec.CodecException.htmlupon codec error.

Remarks

Returns a Java.Nio.Buffer.Clear, writable ByteBuffer object for a dequeued input buffer index to contain the input data. After calling this method any ByteBuffer or Image object previously returned for the same input index MUST no longer be used.

[Android Documentation]

Requirements

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