node-taglib-sharp / Exports / AsfFilePropertiesObject
Extends BaseObject to provide a representation of an ASF file properties object. The file properties object defines the global characteristics of the combined digital media streams found within the Data object.
-
↳
AsfFilePropertiesObject
- creationDate
- dataPacketsCount
- fileId
- fileSize
- flags
- guid
- maximumBitrate
- maximumDataPacketSize
- minimumDataPacketSize
- objectType
- originalSize
- playDurationMilliseconds
- prerollMilliseconds
- sendDurationMilliseconds
• get
creationDate(): Date
Gets the creation date of the file described by the current instance.
Date
• get
dataPacketsCount(): bigint
Gets the number of packets in the data section of the file represented by the current instance.
bigint
• get
fileId(): UuidWrapper
Gets the GUID for the file described by the current instance.
• get
fileSize(): bigint
Gets the total size of the file described by the current instance in bytes.
bigint
• get
flags(): number
Gets whether the file described by the current instance is broadcast or seekable.
Remarks
This attribute applies to presentation descriptors for ASF content. The value is a bitwise OR of the flags in FilePropertiesFlags. * If FilePropertiesFlags.Broadcast is set, the following properties are not valid * fileId * creationDate * dataPacketsCount * playDurationMilliseconds * sendDurationMilliseconds * maximumDataPacketSize and minimumDataPacketSize are set to the actual packet size * If FilePropertiesFlags.Seekable is set, an audio stream is present and the maximumDataPacketSize and minimumDataPacketSize are set to the same size. It can also be seekable if the file has an audio stream and a video stream with a matching simple index object.
number
• get
guid(): UuidWrapper
Gets the GUID that identifies the current instance.
BaseObject.guid
• get
maximumBitrate(): number
Gets the maximum instantaneous bit rate, in bits per second, for the file described by the current instance.
number
• get
maximumDataPacketSize(): number
Gets the maximum packet size, in bytes, for the file described by the current instance.
number
• get
minimumDataPacketSize(): number
Gets the minimum packet size, in bytes, for the file described by the current instance.
number
• 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
playDurationMilliseconds(): number
Get the time needed to play the file described by the current instance in milliseconds.
number
• get
prerollMilliseconds(): number
Gets the amount of time, in milliseconds, to buffer data before playing the file described by the current instance.
number
• get
sendDurationMilliseconds(): number
Get the time needed to send the file described by the current instance in milliseconds. A packet's "send time" is the time when the packet should be delivered over the network, it is not the presentation of the packet.
number
▸ 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
): AsfFilePropertiesObject
Constructs a new instance by reading from a file.
Name | Type | Description |
---|---|---|
file |
File |
File to read the file properties object from |
position |
number |
Offset into the file where the object begins |