Creates a new ChapterFrame.
Unique chapter identifier as a ByteVector.
Chapter start time in milliseconds. Defaults to 0.
Chapter end time in milliseconds. Defaults to 0.
Chapter start byte offset. Defaults to 0xFFFFFFFF (unused).
Chapter end byte offset. Defaults to 0xFFFFFFFF (unused).
Gets the unique chapter identifier as a ByteVector.
Gets the list of embedded ID3v2 sub-frames attached to this chapter.
Gets the chapter end byte offset, or 0xFFFFFFFF if unused.
Sets the chapter end byte offset.
Gets the chapter end time in milliseconds.
Sets the chapter end time in milliseconds.
Gets the frame identifier from the header.
Gets the frame's header object.
Gets the payload size in bytes from the header.
Gets the chapter start byte offset, or 0xFFFFFFFF if unused.
Sets the chapter start byte offset.
Gets the chapter start time in milliseconds.
Sets the chapter start time in milliseconds.
Appends a sub-frame to the list of embedded frames for this chapter.
The Id3v2Frame to append.
ProtectedparseParses the raw CHAP frame field data, populating all chapter properties.
Decoded frame field bytes.
ID3v2 version number.
Removes the first occurrence of the given sub-frame from the embedded frame list.
The Id3v2Frame to remove.
Render the complete frame (header + fields) for the given version.
Optionalversion: numberProtectedrenderRenders the CHAP frame field data to bytes.
ID3v2 version number used to render embedded sub-frames.
A ByteVector containing the encoded CHAP field data.
Returns the element ID as a Latin1 string.
The element ID string.
Protected StaticfieldExtract the raw field data from a complete frame blob.
This handles unsynchronisation decoding, data-length indicators, and (stubbed) decompression.
StaticfromInternalCreate from raw frame data.
OptionalframeParser: (data: ByteVector, version: number) => Id3v2Frame | undefined
Chapter frame (CHAP).
Structure: elementId(null-terminated Latin1) + startTime(4, big-endian ms) + endTime(4) + startOffset(4) + endOffset(4) + embedded sub-frames.