Sdílení na messengerech a sociálních sítích

  Omlouváme se, tento článek je dostupný v angličtině

To enable share functionality in the player use button Elements / Share, or enable this item in the Elements / Settings menu

Video version of this guide on YouTube

In addition to social buttons (can be configured in Plugins / Social and embed code), it is possible to distribute the Link and the Embed code.

Link is passed in the code by variable url

Embed code is generated like iframe if specified the parameter embed

var player = new Playerjs({"url":"//site.com/video.page", "embed":"//site.com/iframe.page", "file":"//site.com/video.mp4", "id":"player"});

The player will show this code for embed:

<iframe width="560" height="315" src="//site.com/iframe.page" frameborder="0" allowfullscreen></iframe>

Web Share

In the list of services you can also enable Web Share support - this is the ability to share information built into some browsers and platforms. The player will check for this technology and show an icon if there is support (https is required). After clicking on the icon, a special screen will open to select the application. For example this screen on iOS:

in PRO you can also specify the accompanying text for the link that the user wants to share via Web Share.


20.0.5
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