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

    Interface ReelsViewerReelState

    What acting on one reel needs: the media, where it sits in the viewer, its clip's length and the viewer's chaining context its like and comments echo (the host's state). Public because the item handle's declaration names it; it is the item's state, not an entry point — a caller reaches a reel's actions through the handle, never this type.

    interface ReelsViewerReelState {
        chaining: {
            chainingPosition?: string | number;
            chainingSeedMediaId?: string;
            chainingSessionId?: string;
            clientPosition?: string | number;
            mediaPctWatched?: string | number;
            rankingSessionId?: string;
            storyRankingToken?: string;
        };
        mediaId: string;
        mediaPk: string;
        mediaType: number;
        position: number;
        startPosition: number;
        videoDuration: number
        | undefined;
    }
    Index

    Properties

    chaining: {
        chainingPosition?: string | number;
        chainingSeedMediaId?: string;
        chainingSessionId?: string;
        clientPosition?: string | number;
        mediaPctWatched?: string | number;
        rankingSessionId?: string;
        storyRankingToken?: string;
    }

    Type Declaration

    • Optional ReadonlychainingPosition?: string | number

      Zero-based position in the chaining session.

    • Optional ReadonlychainingSeedMediaId?: string

      Seed media id of the chaining session (chaining_seed_media_id), in the form the caller holds it.

    • Optional ReadonlychainingSessionId?: string

      Opaque chaining-session id.

    • Optional ReadonlyclientPosition?: string | number

      Client position in the viewer.

    • Optional ReadonlymediaPctWatched?: string | number

      Percentage of the clip watched before the like (0–100), the app's measurement.

    • Optional ReadonlyrankingSessionId?: string

      Ranking session id.

    • Optional ReadonlystoryRankingToken?: string

      The reel's story ranking token.

    mediaId: string
    mediaPk: string
    mediaType: number
    position: number

    The reel's position in the viewer (its index in the tab's list, or in the page it came from).

    startPosition: number

    The position of the viewer's first reel: the chaining session begins there, at position 0.

    videoDuration: number | undefined

    The clip's length in seconds, when the answer named it — what the watched percentage divides by.