docs/doc/reference/com/google/android/exoplayer2/extractor/mkv/EbmlProcessor.html
Package com.google.android.exoplayer2.extractor.mkv
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceEbmlProcessor
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Defines EBML element IDs/types and processes events.
Nested Classes | Modifier and Type | Interface | Description |
| --- | --- | --- |
| static interface | EbmlProcessor.ElementType |
Deprecated.
EBML element types. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static int | ELEMENT_TYPE_BINARY |
Deprecated.
Type for binary elements.
|
| static int | ELEMENT_TYPE_FLOAT |
Deprecated.
Type for IEEE floating point value elements of either 4 or 8 bytes.
|
| static int | ELEMENT_TYPE_MASTER |
Deprecated.
Type for elements that contain child elements.
|
| static int | ELEMENT_TYPE_STRING |
Deprecated.
Type for string elements.
|
| static int | ELEMENT_TYPE_UNKNOWN |
Deprecated.
Type for unknown elements.
|
| static int | ELEMENT_TYPE_UNSIGNED_INT |
Deprecated.
Type for integer value elements of up to 8 bytes. |
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | binaryElement(int id, int contentsSize, ExtractorInput input) |
Deprecated.
Called when a binary element is encountered.
|
| void | endMasterElement(int id) |
Deprecated.
Called when the end of a master element is encountered.
|
| void | floatElement(int id, double value) |
Deprecated.
Called when a float element is encountered.
|
| @com.google.android.exoplayer2.extractor.mkv.EbmlProcessor.ElementType int | getElementType(int id) |
Deprecated.
Maps an element ID to a corresponding type.
|
| void | integerElement(int id, long value) |
Deprecated.
Called when an integer element is encountered.
|
| boolean | isLevel1Element(int id) |
Deprecated.
Checks if the given id is that of a level 1 element.
|
| void | startMasterElement(int id, long contentPosition, long contentSize) |
Deprecated.
Called when the start of a master element is encountered.
|
| void | stringElement(int id, String value) |
Deprecated.
Called when a string element is encountered. |
-
static final int ELEMENT_TYPE_UNKNOWN
Deprecated.
Type for unknown elements. See Also:Constant Field Values
-
static final int ELEMENT_TYPE_MASTER
Deprecated.
Type for elements that contain child elements. See Also:Constant Field Values
-
static final int ELEMENT_TYPE_UNSIGNED_INT
Deprecated.
Type for integer value elements of up to 8 bytes. See Also:Constant Field Values
-
static final int ELEMENT_TYPE_STRING
Deprecated.
Type for string elements. See Also:Constant Field Values
-
static final int ELEMENT_TYPE_BINARY
Deprecated.
Type for binary elements. See Also:Constant Field Values
-
static final int ELEMENT_TYPE_FLOAT
Deprecated.
Type for IEEE floating point value elements of either 4 or 8 bytes. See Also:Constant Field Values
-
@com.google.android.exoplayer2.extractor.mkv.EbmlProcessor.ElementType int getElementType(int id)
Deprecated.
Maps an element ID to a corresponding type.
If ELEMENT_TYPE_UNKNOWN is returned then the element is skipped. Note that all children of a skipped element are also skipped.
Parameters:id - The element ID to map.Returns:One of ELEMENT_TYPE_UNKNOWN, ELEMENT_TYPE_MASTER, ELEMENT_TYPE_UNSIGNED_INT, ELEMENT_TYPE_STRING, ELEMENT_TYPE_BINARY and ELEMENT_TYPE_FLOAT.
-
boolean isLevel1Element(int id)
Deprecated.
Checks if the given id is that of a level 1 element.
Parameters:id - The element ID.Returns:Whether the given id is that of a level 1 element.
-
void startMasterElement(int id,
long contentPosition,
long contentSize)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Called when the start of a master element is encountered.
Following events should be considered as taking place within this element until a matching call to endMasterElement(int) is made.
Note that it is possible for another master element of the same element ID to be nested within itself.
Parameters:id - The element ID.contentPosition - The position of the start of the element's content in the stream.contentSize - The size of the element's content in bytes.Throws:ParserException - If a parsing error occurs.
-
void endMasterElement(int id)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Called when the end of a master element is encountered.
Parameters:id - The element ID.Throws:ParserException - If a parsing error occurs.
-
void integerElement(int id,
long value)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Called when an integer element is encountered.
Parameters:id - The element ID.value - The integer value that the element contains.Throws:ParserException - If a parsing error occurs.
-
void floatElement(int id,
double value)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Called when a float element is encountered.
Parameters:id - The element ID.value - The float value that the element containsThrows:ParserException - If a parsing error occurs.
-
void stringElement(int id,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")value)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Called when a string element is encountered.
Parameters:id - The element ID.value - The string value that the element contains.Throws:ParserException - If a parsing error occurs.
-
void binaryElement(int id,
int contentsSize,[ExtractorInput](../ExtractorInput.html "interface in com.google.android.exoplayer2.extractor")input)
throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
Deprecated.
Called when a binary element is encountered.
The element header (containing the element ID and content size) will already have been read. Implementations are required to consume the whole remainder of the element, which is contentSize bytes in length, before returning. Implementations are permitted to fail (by throwing an exception) having partially consumed the data, however if they do this, they must consume the remainder of the content when called again.
Parameters:id - The element ID.contentsSize - The element's content size.input - The ExtractorInput from which data should be read.Throws:ParserException - If a parsing error occurs.IOException - If an error occurs reading from the input.