Print

Installing the 247 Platform WordPress Plugin

Written by Chris Williams. Posted in Documentation

This guide will step you through installing and using the 247 Platform WordPress plugin.

Installation

  1. Log into your WordPress Dashboard -> Plugins -> Add New -> Upload
  2. Select the ZIP file containing the WordPress plugin from your PC, and click 'Install Now', following the steps regarding FTP details if required.
  3. Once the plugin is installed, you'll need to make two amendments to the code to connect to the 247 Platform.  
  4. Make sure that the files are writable on your web server.  
  5. Select 'Editor' under Plugins
    1. Select '247 Platform video integration plugin' from the dropdown on the upper-right, and click Select
    2. Replace the ''1234'' on the line var $_247PlatformClientId = 1234; with the provided Client ID
    3. Replace the ''mykey'' on the line below with the provided Client Key
    4. Press 'Update File' at the bottom of the editor to save the changes.

Your installation should now be complete, and you can activate the plugin and use it on the site.

Usage

The 247 Platform WordPress plugin can be used in any post, by using the embed code 

[247platformvideo] 

The following parameter are available for this plugin

  • `streamName` (required), String,  The stream name string from the 247 Platform of the video you wish to embed, will be something like 'a1-123-live' or 'x4-54c-vod'
  • `requiresAuth` (required), String, 'true' or 'false', If the video is marked as Secure on the 247 Platform, than this will be required.  This performs the authentication of the current viewer to watch the provided video.  Without making this authentication, the viewer will not be able to watch a protected stream.
  • `autoplay` (optional), String, 'true' or 'false',  Set if you wish the video to start playing once it's loaded
  • `width` (optional), String, Specify the width of the embedded video player, ether as a px value ( '500px') or as a percentage ('45%')
  • `height`, (optional), String, Same rules as Width

Examples 

[247platformvideo streamName='a3-161-vod' requiresAuth='false' autoplay='true' width='50%']

This would play the video 'a3-161-vod', would not authenticate the video, would start playing automatically, and would be 50% width.