Menu contestuale

  Siamo spiacenti, questa pagina è in attesa di traduzione in italiano

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.14
2024 © PlayerJS

Iscriviti gratuitamente

Iscriviti
Iscrivendosi, si accettano Termini di servizio
Login se si possiede un account

Ripristino della password

Ripristino
Hai dimenticato l'e-mail? Contattaci