LiveKit JS Client SDK - v2.17.1
    Preparing search index...

    Interface DataTrackUserTimestampExtension

    interface DataTrackUserTimestampExtension {
        toBinary(): Throws<
            Uint8Array<ArrayBufferLike>,
            DataTrackSerializeErrorAll,
        >;
        toBinaryInto(dataView: DataView): Throws<number, never>;
        toBinaryLengthBytes(): number;
        toJSON(): { lengthBytes: number; tag: number; timestamp: bigint };
    }

    Hierarchy

    • DataTrackExtension
      • DataTrackUserTimestampExtension
    Index

    Methods

    • Encodes the instance as binary and returns the data as a Uint8Array.

      Returns Throws<Uint8Array<ArrayBufferLike>, DataTrackSerializeErrorAll>

    • Given a DataView, serialize the instance inside and return the number of bytes written.

      Parameters

      • dataView: DataView

      Returns Throws<number, never>

    • Returns the expected length of the serialized output in bytes

      Returns number