Player Widget

Usage guide

1. Media UIDs

Get the UIDs of the media to be displayed by the player widget.

2. Generate a signature

Obtain your Application KEY and SECRET from the Big Sofa platform. Generate a time signed signature. This can be done using the signed_api_request ruby gem. You should always keep your SECRET safe! Don't reveal it to anyone or put it in the page where a user could access it. The expiry time must be less than two hours time in epoch seconds.

3. Initialize the player

Add the following code to your page

<div id="widget-player"></div>
<script src="https://player.bigsofa.co.uk/player.js"></script>
<script>
  var element = document.getElementById('widget-player');
  var options = {
    videos: ["i8ty0k"], // The media uids as an array
    keyid: "656c2e8a54151ebeadd0", // The application key
    signature: "eRY1C4fCcib7fomtyhEdDVVHmhqZ97eAO82yjS2l56g%3D", // The generated signature
    expires: 1544685250 // The expiry time in epoch seconds. Must be less than two hours time.
  };
  var player = new BigSofa.Player(element, options);
</script>

Tags

If the media has any tags associated with it, you will see a 'Tag' icon on the players toolbar. Click on this and a list of tags will pop up. Clicking on any of the tags will take you to the tagged part of the transcript.