Interface VisibilityObserver

Represents a visibility observer.

interface VisibilityObserver {
    ratio: number;
    thresholds: readonly number[];



ratio: number

The ratio of pixels of the player that are within the viewport.


- This value is updated every time an observed threshold is crossed. It is accurate up to the size of this observer's step.

thresholds: readonly number[]

List of thresholds which are monitored by the observer.