- index
- The index of a client-owned output buffer previously returned from a call to MediaCodec.DequeueOutputBuffer(.BufferInfo, System.Int64).
- renderTimestampNs
- The timestamp to associate with this buffer when it is sent to the Surface.
Type Reason Java.Lang.IllegalStateException if not in the Executing state. !:NoType:android/media/MediaCodec$CodecException;Href=../../../reference/android/media/MediaCodec.CodecException.html upon codec error.
If you are done with a buffer, use this call to update its surface timestamp and return it to the codec to render it on the output surface. If you have not specified an output surface when configuring this video codec, this call will simply return the buffer to the codec.
The timestamp may have special meaning depending on the destination surface.
SurfaceView specifics |
---|
If you render your buffer on a Android.Views.SurfaceView,
you can use the timestamp to render the buffer at a specific time (at the
VSYNC at or after the buffer timestamp). For this to work, the timestamp
needs to be reasonably close to the current Java.Lang.JavaSystem.NanoTime.
Currently, this is set as within one (1) second. A few notes:
|