Compartilhar via


MediaCodec.GetInputBuffers Method

Definition

Caution

deprecated

Retrieve the set of input buffers.

[Android.Runtime.Register("getInputBuffers", "()[Ljava/nio/ByteBuffer;", "")]
[System.Obsolete("deprecated")]
public Java.Nio.ByteBuffer[] GetInputBuffers ();
[<Android.Runtime.Register("getInputBuffers", "()[Ljava/nio/ByteBuffer;", "")>]
[<System.Obsolete("deprecated")>]
member this.GetInputBuffers : unit -> Java.Nio.ByteBuffer[]

Returns

Attributes

Exceptions

if not in the Executing state, or codec is configured in asynchronous mode.

upon codec error.

Remarks

Retrieve the set of input buffers. Call this after start() returns. After calling this method, any ByteBuffers previously returned by an earlier call to this method MUST no longer be used.

This member is deprecated. Use the new #getInputBuffer method instead each time an input buffer is dequeued.

<b>Note:</b> As of API 21, dequeued input buffers are automatically java.nio.Buffer#clear cleared.

<em>Do not use this method if using an input surface.</em>

Java documentation for android.media.MediaCodec.getInputBuffers().

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