Radiant Media Player

Sharing module

Documentation sections

Sharing module settings

Radiant Media Player provides flexible and customisable options to present social sharing of video content to your audience. This includes in-player sharing on Facebook or Twitter and copying a link or shareable iframe player code. The sharing module is in the top right corner of the player. When interacted with this module will show an overlay holding the selected sharing options.

sharing: Boolean

Activate or not the sharing module. When open the sharing module offers various options to share the current content. Default: false.

sharingUrl: String

Set the URL that should be shared through sharingNetworks and the link field when the sharing module is displayed. The player uses the page URL as default but this can be overwritten through this setting. Default: ''.

sharingNetworks: Array

Set which social networks to display when sharing module is open. Supported social networks are: Facebook, Twitter, LinkedIn, Google Plus, Reddit & email. Example for all social networks: ['facebook', 'twitter', 'linkedin', 'googleplus', 'reddit', 'email']. Default: ['facebook', 'twitter', 'email'].

sharingCode: String

Set the player code to be provided (iframe) for embedding purposes within the sharing module. It is up to you to generate and host the iframe player code as described here. Default: '' which means the code field is hidden in the sharing module.

Player code example

<script src="https://cdn.radiantmediatechs.com/rmp/4.7.0/js/rmp.min.js" 
<div id="rmpPlayer"></div>
var bitrates = {
  hls: 'https://dqwp3xzzbfhtw.cloudfront.net/vod/smil:bbb.smil/playlist.m3u8'
// Then we set our player settings
var settings = {
  licenseKey: 'your-license-key',
  bitrates: bitrates,
  width: 640,
  height: 360,
  // Our social sharing settings
  sharing: true,
  sharingUrl: 'https://www.radiantmediaplayer.com/docs/latest/social-sharing.html',
  sharingNetworks: ['facebook', 'twitter', 'linkedin'],
  sharingCode: '<iframe width="640" height="266" src="https://www.rmp-streaming.com/iframe/iframe-content.html" style="border:none;" allowfullscreen></iframe>',
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg'
// Reference to the wrapper div (unique id)
var elementID = 'rmpPlayer';
// Create an object based on RadiantMP constructor
var rmp = new RadiantMP(elementID);
// Initialization ... test your page and done!

You can find an example of player with the sharing module enabled on our home page.

Going further with social sharing

Additionally, the following social-related resources should be noted:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License.