foo-webview-sdk
    Preparing search index...

    Interface PlaybackClockOptions

    Options of PlaybackClock.

    interface PlaybackClockOptions {
        maxDeliveryDelayMs?: number;
        monotonicNow?: () => number;
        now?: () => number;
        resyncThresholdSeconds?: number;
    }
    Index
    maxDeliveryDelayMs?: number

    Oldest position update the clock accepts, in milliseconds between hostTime and arrival. Older updates, and those that look older or newer than possible because the system time was changed in between, are ignored. Defaults to 1000.

    monotonicNow?: () => number

    Monotonic clock in milliseconds; defaults to performance.now.

    now?: () => number

    Wall clock in Unix milliseconds; defaults to Date.now.

    resyncThresholdSeconds?: number

    Difference in seconds between an update and the estimate above which the update replaces the estimate (a resync change) instead of nudging it. Defaults to 0.25.