Constructor
new EbmlElement(id, dataViewnon-null)
Creates an EbmlElement.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | The ID. |
dataView |
DataView | The DataView. |
- Source:
Members
-
(private, non-null) dataView_ :DataView
-
Type:
- DataView
- Source:
-
id :number
-
Type:
- number
- Source:
Methods
-
createParser() → (non-null) {shaka.util.EbmlParser}
-
Interpret the element's data as a list of sub-elements.
- Source:
Throws:
Returns:
A parser over the sub-elements. -
getFloat() → {number}
-
Interpret the element's data as a floating point number (32 bits or 64 bits). 80-bit floating point numbers are not supported.
- Source:
Throws:
Returns:
- Type
- number
-
getOffset() → {number}
-
Gets the element's offset from the beginning of the buffer.
- Source:
Returns:
- Type
- number
-
getUint() → {number}
-
Interpret the element's data as an unsigned integer.
- Source:
Throws:
Returns:
- Type
- number