Version: 2.67.0

VisibilityObserver

THEOplayer > VisibilityObserver

VisibilityObserver interface

Represents a visibility observer.

Signature:
export interface VisibilityObserver

Properties

Property

Type

Description

ratio

number

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

thresholds

ReadonlyArray<number>

List of thresholds which are monitored by the observer.