eligius
    Preparing search index...

    Interface ISeekable

    Interface for position sources that support seeking to arbitrary positions.

    Not all position sources are seekable. For example:

    • Seekable: RAF, video, scroll (programmatic), step-based
    • Not seekable: mouse position, external WebSocket, live streams
    if (isSeekable(source)) {
    const actualPosition = await source.seek(30.5);
    console.log(`Seeked to: ${actualPosition}`);
    }
    interface ISeekable {
        seek(position: number): Promise<number>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Seek to a specific position.

      Parameters

      • position: number

        Target position in seconds (or source-specific units)

      Returns Promise<number>

      Actual position after seek (may differ from requested if clamped)