Språk

MediaExtractor.ReadSampleDataAsync(ByteBuffer, Int32) Method

Definition

Reads the current encoded sample on a background task.

public System.Threading.Tasks.Task<int> ReadSampleDataAsync(Java.Nio.ByteBuffer byteBuf, int offset);
member this.ReadSampleDataAsync : Java.Nio.ByteBuffer * int -> System.Threading.Tasks.Task<int>

Parameters

byteBuf
ByteBuffer

The byte buffer that receives the encoded sample data.

offset
Int32

The byte offset at which to write the sample in the destination storage.

Returns

A task yielding the byte count read, or -1 at the end of the stream.

Remarks

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