Avena Webapp API - v0.0.1
    Preparing search index...

    Function liveSeekTarget

    • Decides whether playback should jump to stay live.

      Parameters

      • currentTime: number

        The video's playback position, in seconds.

      • bufferedStart: number

        Start of the buffered range, in seconds.

      • bufferedEnd: number

        End of the buffered range, in seconds.

      Returns number | null

      The position to jump to (just before the newest frame), or null to keep playing: when playback is inside the buffer and at most MAX_LAG_SECONDS behind its end.

      liveSeekTarget(10, 0, 11) // null
      liveSeekTarget(10, 0, 14) // 13.8
      liveSeekTarget(0, 2.5, 3) // 2.8 (the stream does not start at 0)