Simple Brightcove Player Embed

Description

IMPORTANT

This plugin relates to Brightcove’s legacy player version, the Smart Player. Support for this player version ends in December 2017. This plugin is deprecated.

Going forward, you should use the Brightcove Video Connect Plugin to publish Brightcove Videos.

To update the Smart Players you have published through this plugin (and elsewhere) you can use Brightcove’s Directed Migration Tool. This configures Brightcove to replace the Smart Player with the current player version.

About

This allows you to embed a Brightcove Video Cloud smart player easily by using its player URL in a shortcode. It does not need a Video Cloud Media API key, so works with any Brightcove account edition.

Note this is not a CMS integration that allows you to upload, manage and browse content in your Video Cloud account from within WordPress. This also does not take advantage of the newer Brightcove Player. It’s likely this more comprehensive integration will be more useful.

How to use

First get a link to the video and player you want to use from the Video Cloud media module.

  • Select a video
  • In the Quick video publish box on the right, select a player
  • Under Copy publishing code, select URL
  • Copy the URL

In the post editor, add the the URL surrounded by [bc] and [/bc], for example:

[bc]http://bcove.me/f8b43rfg[/bc]

It doesn’t have to be a bcove.me URL. You can also use a link.brightcove.com URL or the URL of any page that has a Video Cloud player in its HTML, e.g.

[bc]http://www.brightcove.com[/bc]

The player publishing code found at the URL is used as-is. You can override the player width and/or height like this:

[bc width="240" height="135"]http://bcove.me/f8b43rfg[/bc]

Or override autostart like this:

[bc autoStart="false"]http://bcove.me/f8b43rfg[/bc]

Screenshots

  • Player in post
  • Post editor

Installation

  1. Either use the automatic installation within WordPress, or upload brightcove-wordpress-simple.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Should I use this plugin?

Not any more. This plugin is for a legacy player version.

There is a more comprehensive WordPress plugin that supports the current Brightcove Player – Brightcove Video Connect. Use this instead.

Thanks for using this plugin in the past.

How can I update the legacy players published with this plugin?

Use Brightcove’s Directed Migration tool.

Does this work with HTTPS?

Yes, HTTP or HTTPS versions of Brightcove’s publishing code are used appropriately and automatically.

What can I use as a player URL?

Either the player URL from the studio, or any other URL that has a Video Cloud player publishing page in its HTML.

I used a URL with a player, but it doesn’t work

If the HTML at the URL does not have a standard Video Cloud player publishing code in its HTML, this won’t work. That might be because the player at that URL uses a Flash-only embed, an iframe, or is created dynamically at runtime.

Can I browse my videos in WordPress’s editor?

No. This is intented as a quick and easy way to embed a player by it’s URL rather than as a full integration that would allow management of Video Cloud content from within WordPress. Use the Brightcove Video Connect plugin for this functionality.

Contributors & Developers

“Simple Brightcove Player Embed” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.8

Using DOMDocument::saveXML instead of DOMDocument::saveHTML for PHP < 3.6 compatibility

0.7

Fixed deprecation notice

0.6

Tweaked IE8 fix and some additional fixes to video ID detection

0.5

Fix for IE8

0.4

First release