igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.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

      Returns number | undefined