Progreso de la lista de reproducción

  Lo sentimos, esta página está pendiente de traducción al español

You can track the progress of the entire playlist via JS API.

Before you need to add the duration parameter to each playlist file and specify the duration in seconds.

[
   {"title":"Episode 1","file":"URL","duration":"47"},
   {"title":"Episode 2","file":"URL","duration":"888"}
]

You can get the progress value by request:

player.api("playlist","played");

The player will return the result as a percentage.

You can also request the total duration of the playlist in seconds:

player.api("plduration");

Notes

  • The player doesn't take into account rewind and doesn't return a lower value.
  • A file is considered fully played if the user has switched to another one at any point in time.
  • This functionality works since version 18.8

19.12.14
2024 © PlayerJS

Inicio de sesión

Conectarse

Regístrate gratis

Inscríbete
Al registrarte, aceptas Condiciones del servicio
Iniciar sesión si tienes una cuenta.

Restaurar contraseña

Restaurar
¿Ha olvidado su correo electrónico? Contacte con nosotros