node-taglib-sharp / Exports / AsfStreamPropertiesObject
This class provides a representation of an ASF properties object which can be read from and written to disk.
-
↳
AsfStreamPropertiesObject
- codec
- errorCorrectionData
- errorCorrectionType
- flags
- guid
- objectType
- originalSize
- streamNumber
- streamType
- timeOffsetMilliseconds
- typeSpecificData
• get
codec(): ICodec
Gets the codec information contained in the current instance.
• get
errorCorrectionData(): ByteVector
Gets the error correction data contained in the current instance.
• get
errorCorrectionType(): UuidWrapper
Gets the error correction type GUID of the current instance.
• get
flags(): number
Gets the flags that apply to the current instance.
Remarks
The flags
field a 16-bit, double word, defined as follows:
* LSB
* Stream number - 7 bits
* Reserved - 8 bits
* Encrypted content flag - 1 bit
number
• get
guid(): UuidWrapper
Gets the GUID that identifies the current instance.
BaseObject.guid
• get
objectType(): AsfObjectType
Gets the type of the object for easy comparison.
BaseObject.objectType
• get
originalSize(): number
Gets the original size of the current instance.
number
BaseObject.originalSize
• get
streamNumber(): number
Gets the stream number for the current instance. Zero is invalid.
number
• get
streamType(): UuidWrapper
Gets the stream type GUID of the current instance.
• get
timeOffsetMilliseconds(): number
Gets the time offset at which the stream described by the current instance begins.
number
• get
typeSpecificData(): ByteVector
Gets the type specific data contained in the current instance.
Remarks
The parsed version of this data is available in codec.
▸ Protected
initializeFromFile(file
, position
): void
Initializes a new instance by reading the contents from a specified position in a specified file.
Name | Type | Description |
---|---|---|
file |
File |
File which contains the details of the new instance to create |
position |
number |
Position in file where the object begins |
void
AsfBaseObject.initializeFromFile
▸ Protected
initializeFromGuid(guid
): void
Initializes a new instance with a specified GUID.
Name | Type | Description |
---|---|---|
guid |
UuidWrapper |
GUID to use for the new instance. |
void
AsfBaseObject.initializeFromGuid
▸ render(): ByteVector
Renders the current instance as a raw ASF object.
▸ Protected
renderInternal(data
): ByteVector
Renders the current instance as a raw ASF object containing the specified data.
Remarks
Child classes implementing () should render their contents and then send the data through this method to produce the final output.
Name | Type | Description |
---|---|---|
data |
ByteVector |
Data to store in the rendered version of the current instance. |
▸ Static
fromFile(file
, position
): AsfStreamPropertiesObject
Constructs and initializes a new instance by reading contents from a specified position in the provided file.
Name | Type | Description |
---|---|---|
file |
File |
File from which the contents of the new instance will be read |
position |
number |
Index into the file where the stream properties object begins |