Video SEO Schema Generator Plugin

Video Cloud
Brightcove Player
Player Developer
Support Doc

In this topic, you will learn how to use a plugin that generates a video schema for SEO.


The plugin detailed in this document adds SEO metadata for the video in your Brightcove Player. An example result that Google would see for a video is shown here:

structured data video result

You can learn more about validating your structured data later in the document in the Google's Structured Data Testing Tool section.

Installing the plugin

This plugin installs just as any custom plugin would. Following are instructions to add the plugin using Studio and in code.

Installing using the PLAYERS module

  1. Open the PLAYERS module and either create a new player or locate the player to which you wish to add the plugin.
  2. Click the link for the player to open the player's properties.
  3. Click Plugins in the left navigation menu.
  4. Next click Plugins from the three options.
    Select Plugin
  5. From the Add a Plugin select Custom Plugin.
  6. For the Plugin Name enter schema.
  7. For the JavaScript URL, enter:
  8. No CSS URL is needed.
  9. You do not have to enter any options for this plugin in this specific implementation.
  10. Click Save.
  11. To publish the player, click Publish & Embed > Publish Changes.
  12. To close the open dialog, click Close.

Installing using code

If you wish to install the plugin for single player using code, use the following code as a guide:

<video id="myPlayerID"
<script src="//"></script>

<script src=""></script>

videojs.getPlayer('myPlayerID').ready(function() {
var myPlayer = this;

Google's Structured Data Testing Tool

Once the plugin in installed, and you publish a video in a Brightcove Player you can test to be sure the structured data is correct. Google provide a Structured Data Testing Tool. On that page you are prompted to enter the URL for the page containing your player:

structured data ui

After you enter the URL to your page and click RUN TEST, any errors in your data will be displayed.

structured data error

Here you see the full result from the testing tool for a video with no errors. This instance shows a Standard (iframe) player implementation, but the plugin works with Advanced (in-page) implementations also.

structured data full result

Schema used

This plugin is used to inject metadata from a Video Cloud video in to the page as structured data. It uses the JSON-LD format supported by Google for video SEO:

<script type="application/ld+json">
"name":"Big Buck Bunny",
"description":"(c) copyright 2008, Blender Foundation /",

Plugin options

There are six options you can use with this plugin:

  • schemaId: The value to use as @id in the metadata. This must be a unique URI which represents the video, but not necessarily a "real" URL. This is arbitrary and might be values like:

    The following are accepted as macros:

    • {id}
    • {referenceId}
    • {playerId}
    • {embedId}
    • {accountId}

    The default URI will be:{accountId}/{playerId}_{embedId}/index.html?videoId={id}
  • keywords: If true, include tags as keywords; default is false.
  • excludeTags: Array of tags to not include as keywords, e.g. ["youtubesync"].
  • baseObject: An option object of properties onto which to build the video specific metadata. For example this could be used to include a publisher object:
    "baseObject": {
     "publisher": {
       "@type": "Organization",
       "name": "Publisher name",
       "logo": {
         "@type": "ImageObject",
         "url": "",
         "width": 600,
         "height": 60
  • includeEmbedUrl: If false, no embed url is included. Including this URL may be expected by search engines. Default is true.
  • preferLongDescription: If true, use the long description if available. If false, or true and long description is not set, then the (short) description field will be used. Default is false.