Android.Media.MediaExtractor Members

The members of Android.Media.MediaExtractor are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Public Fields

const
SampleFlagEncryptedMediaExtractorSampleFlags (2). The sample is (at least partially) encrypted, see also the documentation for MediaCodec.QueueSecureInputBuffer(int, System.Int32, System.Int32, System.Int32, System.Int32)
const
SampleFlagSyncMediaExtractorSampleFlags (1). The sample is a sync sample (or in Android.Media.MediaCodec's terminology it is a key frame.
const
SeekToClosestSyncMediaExtractorSeekTo (2). If possible, seek to the sync sample closest to the specified time
const
SeekToNextSyncMediaExtractorSeekTo (1). If possible, seek to a sync sample at or after the specified time
const
SeekToPreviousSyncMediaExtractorSeekTo (0). If possible, seek to a sync sample at or before the specified time

Public Properties

[read-only]
CachedDurationlong. Returns an estimate of how much data is presently cached in memory expressed in microseconds.
[read-only]
HasCacheReachedEndOfStreambool. Returns true iff we are caching data and the cache has reached the end of the data stream (for now, a future seek may of course restart the fetching of data).
[read-only]
PsshInfoIDictionary<Java.Util.UUID, Byte[]>. Get the PSSH info if present.
[read-only]
SampleFlagsMediaExtractorSampleFlags. Returns the current sample's flags.
[read-only]
SampleTimelong. Returns the current sample's presentation time in microseconds. or -1 if no more samples are available.
[read-only]
SampleTrackIndexint. Returns the track index the current sample originates from (or -1 if no more samples are available)
[read-only]
TrackCountint. Count the number of tracks found in the data source.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Advance() : bool
Advance to the next sample.
AdvanceAsync() : System.Threading.Tasks.Task<bool>
Documentation for this section has not yet been entered.
GetSampleCryptoInfo(MediaCodec.CryptoInfo) : bool
If the sample flags indicate that the current sample is at least partially encrypted, this call returns relevant information about the structure of the sample data required for decryption.
GetTrackFormat(int) : MediaFormat
Get the track format at the specified index.
ReadSampleData(Java.Nio.ByteBuffer, int) : int
Retrieve the current encoded sample and store it in the byte buffer starting at the given offset.
ReadSampleDataAsync(Java.Nio.ByteBuffer, int) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
Release()
Make sure you call this when you're done to free up any resources instead of relying on the garbage collector to do this for you at some point in the future.
SeekTo(long, MediaExtractorSeekTo)
All selected tracks seek near the requested time according to the specified mode.
SelectTrack(int)
Subsequent calls to MediaExtractor.ReadSampleData(Java.Nio.ByteBuffer, System.Int32), MediaExtractor.SampleTrackIndex and MediaExtractor.SampleTime only retrieve information for the subset of tracks selected.
SetDataSource(Java.IO.FileDescriptor)
Sets the data source (FileDescriptor) to use.
SetDataSource(string)
Sets the data source (file-path or http URL) to use.
SetDataSource(string, IDictionary<string, string>)
Documentation for this section has not yet been entered.
SetDataSource(Android.Content.Context, Android.Net.Uri, IDictionary<string, string>)
Documentation for this section has not yet been entered.
SetDataSource(Java.IO.FileDescriptor, long, long)
Sets the data source (FileDescriptor) to use.
SetDataSourceAsync(Java.IO.FileDescriptor) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
SetDataSourceAsync(string) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
SetDataSourceAsync(string, IDictionary<string, string>) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
SetDataSourceAsync(Android.Content.Context, Android.Net.Uri, IDictionary<string, string>) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
SetDataSourceAsync(Java.IO.FileDescriptor, long, long) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
UnselectTrack(int)
Subsequent calls to MediaExtractor.ReadSampleData(Java.Nio.ByteBuffer, System.Int32), MediaExtractor.SampleTrackIndex and MediaExtractor.SampleTime only retrieve information for the subset of tracks selected.