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. 

Print

Video Embedding

Written by Chris Williams. Posted in Documentation

Embedding your video content using the 247 Platform is a very simple process!

Simple Video Embedding

To embed your video in your website, simply log into the 247 Platform Console, go to the Videos section, and find your video.  From there, you can click ether on the Live Control  or Video on Demand tab, scroll down to the Embedding Video second, click on the size of video you wish and copy-and-paste the code generated on the right into your website.

 

 

Detailed Video Embedding

Video content can be embeded with addional controls to help you automate your website and get the user experience you want.  Here are the parameters that can be passed to the Embed URL that's used in the embed code.  Changing or setting these values will change the default way that the player displays it's video.

 

Autoplay

The 247 Platform player defaults to autoplaying Live video, and not autoplaying VOD content.  To change this, add &autoplay=1 or &autoplay=0 to force the video to play or not.