THEOplayer > Visibility
The visibility API.Signature:
export interface Visibility
The ratio of pixels of the player that are within the viewport.
Whether the Visibility.ratio of visible pixels is exceeded.
The threshold that the ratio must exceed for the player to be visible.
Add a visibility observer to monitor the player.
Remove a visibility observer.
The observer will stop monitoring player visibility, and will no longer trigger its callback.