Sharing

This options block controls a settings submenu with social sharing options: copy embed code, copy video link and share video to social networks.

Setting an empty "sharing":{} options block will enable the social sharing menu and icon in the control bar. Without the nested config options, it will show the page URL link with default sharing sites, but no embed code.

📘

When a viewer uses this sharing feature, the whole page where the video is embedded is shared. This feature does not share specific playlist items within a playlist.

PropertyDescriptionDefault
link stringURL to display in the video link fieldURL of the current page
code stringEmbed code to display in the embed code field

If no code is set, the field is not shown.
-
heading < 8.6.0 stringShort, instructive text to display at the top of the sharing screen

WARNING: Starting with JW Player 8.6.0, use intl.{lang}.sharing.heading.
"Share Video"
sites arrayAllows for the customization of social icons["facebook", "twitter", "email"]

Available Built-In Social Networks

Social NetworkConfiguration ValueSocial NetworkConfiguration Value
Facebook"facebook"Tumblr"tumblr"
Twitter"twitter"LinkedIn"linkedin"
Pinterest"interest"Reddit"reddit"
Email"email"
jwplayer("myElement").setup({
  file: "http://example.com/myVideo.mp4",
  sharing: {
    sites: ["reddit","facebook","twitter"]
  }
});

🔑

If you are not a developer, do not have developer resources, or prefer a simpler implementation, you can set up social sharing from your JWP dashboard.