Android.Media.MediaCodec.GetOutputBuffer Method
Returns a read-only ByteBuffer for a dequeued output buffer index.

Syntax

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

Parameters

index
The index of a client-owned output buffer previously returned from a call to MediaCodec.DequeueOutputBuffer(.BufferInfo, System.Int64), or received via an onOutputBufferAvailable 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 read-only ByteBuffer for a dequeued output buffer index. The position and limit of the returned buffer are set to the valid output data. After calling this method, any ByteBuffer or Image object previously returned for the same output 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