Share via


MediaCodec.DequeueOutputBuffer(MediaCodec+BufferInfo, Int64) Method

Definition

Dequeue an output buffer, block at most "timeoutUs" microseconds.

[Android.Runtime.Register("dequeueOutputBuffer", "(Landroid/media/MediaCodec$BufferInfo;J)I", "")]
public int DequeueOutputBuffer (Android.Media.MediaCodec.BufferInfo info, long timeoutUs);
[<Android.Runtime.Register("dequeueOutputBuffer", "(Landroid/media/MediaCodec$BufferInfo;J)I", "")>]
member this.DequeueOutputBuffer : Android.Media.MediaCodec.BufferInfo * int64 -> int

Parameters

info
MediaCodec.BufferInfo

Will be filled with buffer meta data.

timeoutUs
Int64

The timeout in microseconds, a negative timeout indicates "infinite".

Returns

Attributes

Exceptions

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

upon codec error.

Remarks

Java documentation for android.media.MediaCodec.dequeueOutputBuffer(android.media.BufferInfo, long).

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