interface VisibilityChangedEvent {
    isVisible: boolean;
    percentVisible: number;
    timestamp: number;
    type: PlayerEvent;
}

Hierarchy (view full)

Properties

isVisible: boolean

True if the player has reached the visibility threshold defined in VisibilityConfig, false otherwise.

percentVisible: number

The percentage of the player that is currently visible in the viewport, between 0 and 100.

timestamp: number

The time at which this event was fired

Event type, e.g. 'play'