Share via


MediaParser Class

Definition

Parses media container formats and extracts contained media samples and metadata.

[Android.Runtime.Register("android/media/MediaParser", ApiSince=30, DoNotGenerateAcw=true)]
public sealed class MediaParser : Java.Lang.Object
[<Android.Runtime.Register("android/media/MediaParser", ApiSince=30, DoNotGenerateAcw=true)>]
type MediaParser = class
    inherit Object
Inheritance
MediaParser
Attributes

Remarks

Java documentation for android.media.MediaParser.

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.

Fields

ParameterAdtsEnableCbrSeeking

Sets whether constant bitrate seeking should be enabled for ADTS parsing.

ParameterAmrEnableCbrSeeking

Sets whether constant bitrate seeking should be enabled for AMR.

ParameterFlacDisableId3

Sets whether the ID3 track should be disabled for FLAC.

ParameterMatroskaDisableCuesSeeking

Sets whether Matroska parsing should avoid seeking to the cues element.

ParameterMp3DisableId3

Sets whether the ID3 track should be disabled for MP3.

ParameterMp3EnableCbrSeeking

Sets whether constant bitrate seeking should be enabled for MP3.

ParameterMp3EnableIndexSeeking

Sets whether MP3 parsing should generate a time-to-byte mapping.

ParameterMp4IgnoreEditLists

Sets whether MP4 parsing should ignore edit lists.

ParameterMp4IgnoreTfdtBox

Sets whether MP4 parsing should ignore the tfdt box.

ParameterMp4TreatVideoFramesAsKeyframes

Sets whether MP4 parsing should treat all video frames as key frames.

ParameterTsAllowNonIdrAvcKeyframes

Sets whether TS should treat samples consisting of non-IDR I slices as synchronization samples (key-frames).

ParameterTsDetectAccessUnits

Sets whether TS parsing should split AVC stream into access units based on slice headers.

ParameterTsEnableHdmvDtsAudioStreams

Sets whether TS parsing should handle HDMV DTS audio streams.

ParameterTsIgnoreAacStream

Sets whether TS parsing should ignore AAC elementary streams.

ParameterTsIgnoreAvcStream

Sets whether TS parsing should ignore AVC elementary streams.

ParameterTsIgnoreSpliceInfoStream

Sets whether TS parsing should ignore splice information streams.

ParameterTsMode

Sets the operation mode for TS parsing.

ParserNameAc3

Parser for the AC-3 container format, as defined in Digital Audio Compression Standard (AC-3).

ParserNameAc4

Parser for the AC-4 container format, as defined by Dolby AC-4: Audio delivery for Next-Generation Entertainment Services.

ParserNameAdts

Parser for the ADTS container format, as defined in ISO/IEC 13818-7.

ParserNameAmr

Parser for the AMR container format, as defined in RFC 4867.

ParserNameFlac

Parser for the FLAC container format, as defined in the spec.

ParserNameFlv

Parser for the FLV container format, as defined in Adobe Flash Video File Format Specification.

ParserNameFmp4

Parser for fragmented files using the MP4 container format, as defined in ISO/IEC 14496-12.

ParserNameMatroska

Parser for the Matroska container format, as defined in the spec.

ParserNameMp3

Parser for the MP3 container format, as defined in ISO/IEC 11172-3.

ParserNameMp4

Parser for non-fragmented files using the MP4 container format, as defined in ISO/IEC 14496-12.

ParserNameOgg

Parser for the OGG container format, as defined in RFC 3533.

ParserNamePs

Parser for the PS container format, as defined in ISO/IEC 11172-1.

ParserNameTs

Parser for the TS container format, as defined in ISO/IEC 13818-1.

ParserNameUnknown

Parser name returned by #getParserName() when no parser has been selected yet.

ParserNameWav

Parser for the WAV container format, as defined in Multimedia Programming Interface and Data Specifications.

SampleFlagDecodeOnly
Obsolete.

Indicates that the sample should be decoded but not rendered.

SampleFlagEncrypted
Obsolete.

Indicates that the sample is (at least partially) encrypted.

SampleFlagHasSupplementalData
Obsolete.

Indicates that the sample has supplemental data.

SampleFlagKeyFrame
Obsolete.

Indicates that the sample holds a synchronization sample.

SampleFlagLastSample
Obsolete.

Indicates that the sample is known to contain the last media sample of the stream.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LogSessionId
ParserName

Returns the name of the backing parser implementation.

PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Advance(MediaParser+ISeekableInputReader)

Makes progress in the extraction of the input media stream, unless the end of the input has been reached.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Create(MediaParser+IOutputConsumer, String[])

Creates an instance whose backing parser will be selected by sniffing the content during the first #advance call.

CreateByName(String, MediaParser+IOutputConsumer)

Creates an instance backed by the parser with the given name.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetParserNames(MediaFormat)

Returns an immutable list with the names of the parsers that are suitable for container formats with the given MediaFormat.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Release()

Releases any acquired resources.

Seek(MediaParser+SeekPoint)

Seeks within the media container being extracted.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetParameter(String, Object)

Sets parser-specific parameters which allow customizing behavior.

SupportsParameter(String)

Returns whether the given parameterName is supported by this parser.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to