MediaExtractor.ReadSampleDataAsync(ByteBuffer, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.