Options
Menu

External module "twilio/rtc/mos"

Index

Functions

calculate

  • calculate(rtt: any, jitter: any, fractionLost: any): number | null
  • Calculate the mos score of a stats object

    Parameters

    • rtt: any
    • jitter: any
    • fractionLost: any

      The fraction of packets that have been lost. Calculated by packetsLost / totalPackets

    Returns number | null

    mos - Calculated MOS, 1.0 through roughly 4.5. Returns null when any of the input parameters are not a non-negative number.

isNonNegativeNumber

  • isNonNegativeNumber(n: any): boolean
  • Returns true if and only if the parameter passed is a number, is not NaN, is finite, and is greater than or equal to 0.

    Parameters

    • n: any

    Returns boolean

Generated using TypeDoc