taglib-ts
    Preparing search index...

    Represents a single attribute value in an ASF tag.

    An attribute can be one of several typed values (AsfAttributeType) and may be associated with a particular stream or language index when stored in the Metadata or Metadata Library objects.

    Index

    Constructors

    Accessors

    • get dataSize(): number

      Size in bytes of the encoded value, excluding the attribute header (name, type, and length fields).

      Returns number

    • get language(): number

      Language list index for Metadata Library objects; 0 for all others.

      Returns number

    • set language(value: number): void

      Parameters

      • value: number

        Language list index.

      Returns void

    • get stream(): number

      Stream number for Metadata / Metadata Library objects; 0 for Extended Content Description.

      Returns number

    • set stream(value: number): void

      Parameters

      • value: number

        Stream number.

      Returns void

    Methods

    • Parse an attribute from an ASF file.

      Parameters

      • file: File
      • kind: number = 0

        0 = extended content descriptor, 1 = metadata, 2 = metadata library

      Returns Promise<string>

      the attribute name

    • Serialize this attribute to bytes for inclusion in an ASF file.

      Parameters

      • name: string

        The attribute name to write.

      • kind: number = 0

        Object kind: 0 = Extended Content Descriptor, 1 = Metadata, 2 = Metadata Library.

      Returns ByteVector

      The serialized bytes.

    • Returns 1 if the boolean value is true, otherwise 0.

      Returns number

    • Returns the Unicode string value, or "" for non-string attributes.

      Returns string

    • Returns the numeric value truncated to an unsigned 32-bit integer.

      Returns number

    • Returns the full unsigned 64-bit integer value as a BigInt.

      Returns bigint

    • Returns the numeric value truncated to an unsigned 16-bit integer.

      Returns number