Jak sledovat viditelnost přehrávače

  Omlouváme se, tato stránka čeká na překlad do češtiny

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

JS API request

player.api("visibility");

In response the player will send the percentage of visibility.

You can also enable autoplay when the player becomes visible.

You can also track to the event visibility

function PlayerjsEvents(x,y,z){
   if(x=="visibility"){
      console.log("Visibility",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.


19.10.26
2024 © PlayerJS

Přihlášení

Přihlášení

Založte si účet

Registrace
Registrací souhlasíte s Podmínkami služby
Přihlášení, pokud máte účet.

Obnovení hesla

Obnovení
Zapomněli jste e-mail? Kontakt