taglib-ts
    Preparing search index...

    Factory that creates appropriate ID3v2 frame types from raw data.

    The singleton instance is accessible via Id3v2FrameFactory.instance. Its defaultTextEncoding property controls which text encoding is used for all newly created ID3v2 text frames — equivalent to C++ TagLib's FrameFactory::setDefaultTextEncoding().

    Index

    Constructors

    Accessors

    Methods

    • Create a frame from data at the given offset.

      Parameters

      • data: ByteVector

        The tag body data (all frame data).

      • tagHeader: Id3v2Header

        The ID3v2 tag header.

      • offset: number = 0

        Byte offset into data where the frame starts (default 0).

      Returns { frame: Id3v2Frame | null; size: number }

      An object with the parsed frame (or null if padding/invalid) and the total number of bytes consumed (frame header + frame data).