How to track the visibility of the player


In the PRO you can get the precent of the real player visibility for the user at the moment Plugins / API / Track the visibility

JS API request

player.api("visibility");

In response the player will send the percentage of visibility.

You can also track to the event visibility

function PlayerjsEvents(x,y,z){
   if(x=="visibility"){
      console.log("Видимость",z);
   }
}

Tracking visibility works even when the player is inside an iframe and is loaded from another domain. This option based on IntersectionObserver, not all browsers support it at the moment.


2018 © Binom LLC

Login

Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Restore
Forgot email? Contact us