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

    Interface DataTrackUserTimestampExtension

    interface DataTrackUserTimestampExtension {
        toBinary(): Uint8Array<ArrayBufferLike> & {
            __throws?: 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 Uint8Array<ArrayBufferLike> & { __throws?: 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