Menú contextual

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

You can customize your context menu, which appears when you right-click on the player. 

Just enable the Right-click menu plugin in the PRO and configure the necessary items.

You can to specify a name and action for each menu item. The action can be a call the player API, the share plugin, exteranl JavaScript function or open a link.

  • api: for API commands
  • share: for sharing and social networks
  • url: to open link in the new tab
  • js: to call your external js function

Examples

api:

api:toggle will switch the playback mode.

api:loop,0/1 will switch the loop mode.

api:playlistloop,0/1 will switch the loop mode for the whole playlist.

api:autonext,0/1 will switch autoplay in playlist.

api:shuffle,0/1 will switch shuffle playback mode.

api:stretch,1/0 will stretch the video to fill all screen.

share:

For these commands the Share button must be enabled in the player interface.

share:url copies to the clipboard the share URL that is specified in the url parameter. You can also make an item in the menu with a share link with a time point. Just specify an URL using the url2 parameter with the {time} macros //site.com/video.php?t={time} and the action for the menu item in this case will be share:url2

share:embed will copy the iframe player code to the clipboard (the iframe URL must be specified to the player by the embed parameter).

share:facebook opens the export window to Facebook.

url:

url://site.com opens the link in a new browser tab.

js:

js:MyFunction,1,2 call your js function and pass it two values (1 and 2).


19.12.2
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