MediaParser.IOutputConsumer.OnSampleDataFound 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.
Called when sample data is found in the stream.
[Android.Runtime.Register("onSampleDataFound", "(ILandroid/media/MediaParser$InputReader;)V", "GetOnSampleDataFound_ILandroid_media_MediaParser_InputReader_Handler:Android.Media.MediaParser/IOutputConsumerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnSampleDataFound(int trackIndex, Android.Media.MediaParser.IInputReader inputReader);
[<Android.Runtime.Register("onSampleDataFound", "(ILandroid/media/MediaParser$InputReader;)V", "GetOnSampleDataFound_ILandroid_media_MediaParser_InputReader_Handler:Android.Media.MediaParser/IOutputConsumerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnSampleDataFound : int * Android.Media.MediaParser.IInputReader -> unit
Parameters
- trackIndex
- Int32
The index of the track to which the sample data corresponds.
- inputReader
- MediaParser.IInputReader
The InputReader from which to read the data. This value cannot be null.
- Attributes
Remarks
Called when sample data is found in the stream. If the invocation of this method returns before the entire inputReader length is consumed, the method will be called again for the implementer to read the remaining data. Implementers should surface any thrown IOException caused by reading from input.
Android reference for android.media.MediaParser.OutputConsumer.onSampleDataFound.
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.