@vpalmisano/webrtcperf-js
    Preparing search index...

    Function waitUtilTime

    • Waits until the time is reached.

      Parameters

      • waitUtilTime: number

        The time in seconds to wait from the start of the webrtcperf tool or the page load.

      • waitUtilTimeRate: number = 0

        An additional time to wait calculated as participant_index / waitUtilTimeRate.

      Returns Promise<void>

      A promise that resolves when the time is reached. Examples:

      await waitUtilTime(10)
      

      This will wait until 10 seconds have passed from the start.

      await waitUtilTime(10, 2)
      

      This will wait until 10 seconds have passed from the start, plus 2 seconds for each participant (Participant-000000 will wait 10 seconds, Participant-000001 will wait 12 seconds, Participant-000002 will wait 14 seconds, etc.).