# Share Button

ByteArk Player supports sharing the video to popular social networks:

  • Facebook
  • Twitter
  • Email

# Share Button display

Share Button

# Options

Name Type Required Description
share Object No Share button configuration
share.networks Array No List of social networks to display
share.shareUrl String No URL used for sharing (defaults to the current page URL)

# Example

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <div id="video-player"></div>
    <script src="https://byteark-sdk.cdn.byteark.com/player/v2/byteark-player.min.js"></script>
    <script>
      var player = bytearkPlayer('video-player', {
        fluid: true,
        share: {
          networks: ['facebook', 'twitter', 'email'],
          shareUrl: 'https://example.com/video',
        },
        sources: [{
          title: 'Big Buck Bunny',
          src: 'https://byteark-playertzxedwv.stream-playlist.byteark.com/streams/TZyZheqEJUwC/playlist.m3u8',
          type: 'application/x-mpegURL'
        }]
      });
    </script>
  </body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24