igpapi — Instagram private API Simulator for Node.js (API reference) 4.19.0
    Preparing search index...

    Function watchedFractionOf

    • The fraction of a clip a visit watched (0–1): the watched time against the clip's own length. One formula for every swipeable screen that reports a watched fraction — the profile posts feed's view telemetry and the reels viewer's like — with the watched time rounded to whole milliseconds; a clip of unknown or zero length has no fraction rather than an invented one.

      Parameters

      • watchedMs: number
      • videoDuration: number | undefined
      • Optionaloptions: { loops?: boolean }
        • Optional Readonlyloops?: boolean

          The clip loops in front: the visit may be longer than the clip, and the fraction is not capped at 1 (the reels viewer's like: 5.798 is the reel looped about 5.8 times in front).

      Returns number | undefined