Plugin Embed
Videoken provides a plugin that you can add to the Brightcove player from the Brightcove Dashboard.
To add the plugin, login to the Brightcove dashboard and go to ‘Players -> Add Plugin -> Custom Plugin’.
Fill in the plugin details as given below
Plugin Name: videoken
JavaScript URL: https://content.videoken.com/players/brightcove-plugin.2022.8.10.js
Given below is a screenshot for reference.
That’s all you need to do. You can verify that the plugin is active by looking at the browser console when a page with a video is loaded. Browser console can usually be opened by pressing the keys CTRL + SHIFT + J (CMD + SHIFT + J on mac). The plugin version will be printed in the console as shown below
Note: It might take a few minutes for the updated plugin to become active. If you added a new plugin, and the version hasn’t changed even after 15 minutes, try re-doing the steps given above.
Updating an existing plugin
To update an existing plugin, follow the steps given below.
Step 1: Delete the existing plugin
Step 3: Fill in the plugin details as given in the above section
Step 4: Publish the player
Passing options to the plugin
You can pass certain options to the plugin to customize the behaviour of the plugin. These options have to be passed in JSON format while setting up the plugin. For example, to disable the reactions and watermark, the following JSON can be given.
{
"reactions": 0,
"watermark": 0
}
List of options
Below is the list of possible options that can be passed to the plugin. If an option is not specified, the default value will be used.
Option | Description | Default Value |
---|---|---|
reactions | Show reaction emojis on the timeline. Setting to 0 or 1 will enable or disable the feature respectively | 1 |
reactionText | The reactions question text | How are you doing? |
watermark | Show the User ID as a watermark on the video. Setting to 0 or 1 will enable or disable the feature respectively | 1 |
watermarkFontSize | The font size used for watermark | 20 |
watermarkInterval | Number of seconds between consecutive watermarks | 60 |
watermarkDuration | Number of seconds the watermark is displayed for before disappearing | 3 |
watermarkOpacity | The opacity value of the watermark text in fractions. 0 will be completely transparent and 1 will be completely opaque | 0.1 |