This guide will step you through installing and using the 247 Platform WordPress plugin.
- Log into your WordPress Dashboard -> Plugins -> Add New -> Upload
- Select the ZIP file containing the WordPress plugin from your PC, and click 'Install Now', following the steps regarding FTP details if required.
- Once the plugin is installed, you'll need to make two amendments to the code to connect to the 247 Platform.
- Make sure that the files are writable on your web server.
- Select 'Editor' under Plugins
- Select '247 Platform video integration plugin' from the dropdown on the upper-right, and click Select
- Replace the ''1234'' on the line var $_247PlatformClientId = 1234; with the provided Client ID
- Replace the ''mykey'' on the line below with the provided Client Key
- 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.
The 247 Platform WordPress plugin can be used in any post, by using the embed code
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
[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.