Interface MKLowLatencyAPI

interface MKLowLatencyAPI {
    getCatchupConfig(): MKLowLatencySyncConfig;
    getFallbackConfig(): MKLowLatencySyncConfig;
    getLatency(): number;
    getTargetLatency(): number;
    setCatchupConfig(config: MKLowLatencySyncConfig): void;
    setFallbackConfig(config: MKLowLatencySyncConfig): void;
    setTargetLatency(latency: number): void;
}

Methods

  • Returns the current latency in seconds.

    Returns number

  • Returns the current target latency in seconds.

    Returns number

  • Sets the target latency to be maintained during playback. Causes firing a MKPlayerEvent.TargetLatencyChanged event.

    Parameters

    • latency: number

      the target latency in seconds.

    Returns void