UpdatedMatroskaExtractor

Extracts data from the Matroska and WebM container formats.

Constructors

Link copied to clipboard
constructor()
constructor(flags: @UpdatedMatroskaExtractor.Flags Int)
constructor(subtitleParserFactory: SubtitleParser.Factory)

Constructs an instance.

constructor(subtitleParserFactory: SubtitleParser.Factory, flags: @UpdatedMatroskaExtractor.Flags Int)

Constructs an instance.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Flags controlling the behavior of the extractor. Possible flag values are .FLAG_DISABLE_SEEK_FOR_CUES and {#FLAG_EMIT_RAW_SUBTITLE_DATA}.

Link copied to clipboard
protected class Track

Holds data corresponding to a single track.

Functions

Link copied to clipboard
protected fun binaryElement(id: Int, contentSize: Int, input: ExtractorInput)

Called when a binary element is encountered.

Link copied to clipboard
protected fun endMasterElement(id: Int)

Called when the end of a master element is encountered.

Link copied to clipboard
protected fun floatElement(id: Int, value: Double)

Called when a float element is encountered.

Link copied to clipboard
protected fun getCurrentTrack(currentElementId: Int): UpdatedMatroskaExtractor.Track

Returns the track corresponding to the current TrackEntry element.

Link copied to clipboard

Maps an element ID to a corresponding type.

Link copied to clipboard
Link copied to clipboard
protected fun handleBlockAdditionalData(track: UpdatedMatroskaExtractor.Track, blockAdditionalId: Int, input: ExtractorInput, contentSize: Int)
Link copied to clipboard
open override fun init(output: ExtractorOutput)
Link copied to clipboard
protected fun integerElement(id: Int, value: Long)

Called when an integer element is encountered.

Link copied to clipboard
protected fun isLevel1Element(id: Int): Boolean

Checks if the given id is that of a level 1 element.

Link copied to clipboard
open override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int
Link copied to clipboard
open override fun release()
Link copied to clipboard
open override fun seek(position: Long, timeUs: Long)
Link copied to clipboard
open override fun sniff(input: ExtractorInput): Boolean
Link copied to clipboard
protected fun startMasterElement(id: Int, contentPosition: Long, contentSize: Long)

Called when the start of a master element is encountered.

Link copied to clipboard
protected fun stringElement(id: Int, value: String)

Called when a string element is encountered.