Drupal Brightcove Video Connector allows you to manage Brightcove Video Cloud videos and players within Drupal, and easily embed videos in Drupal pages. This page details how to configure the Brightcove module within Drupal 7. For Drupal 8, see Drupal-Brightcove Connector: Configuration.
Connect to the Brightcove Account
- To connect your Brightcove account, navigate to the Brightcove API page by clicking on Configuration, then scrolling down to the Brightcove Settings option under Media. This will take you to the Brightcove Settings page. To add a new Brightcove API client, click on the API Clients tab, then select Add API Client. This will take you to the form to add in an API client.
- The Label can be anything, but using the same name as the account name on Brightcove will make it easier to identify.
- To find account ID, look in the top left corner of your Brightcove Studio dashboard.
- To get client ID and client secret, you will have to register an application. In Brightcove Studio, navigate to API Authentication and click on Add New Application.
- Fill in name and short description.
- Select an account. Pictured below are all required permissions.
- Hit save.
- Client ID and Client Secret appear. Be sure to copy and save Client Secret to a secure location. You will not be able to access it again.
- Fill in all IDs and Keys. Hit save.
- If you encounter problems, please make sure you have the date and time configured, and try again.
Adding a Brightcove Video Field
To add Brightcove videos to your Drupal posts, first add a video field to the new content page. To do this, navigate to "Structure" and click on "Content Types."
Select "Manage Fields" from the contenty type you wish to add Brightcove Videos to. This process can be repeated for each content type.
Click "Add a New Field." Label it, and select "Brightcove" for Field Type and "Videos (Upload/Browse)" for widget. Hit save.
Your video field should now appear.
Posting and Managing Videos
Unlike with Drupal 8, the Drupal 7 connector does not have a separate content management system, so most content management should be done on the Brightcove Studio site. However, from the new content page, you can view all images by hitting browse, as well as upload new ones.
There are two ways to attach existing videos to a post. If you know the title of the video, typing it into the Brightcove field and allowing autocomplete to find it will work. You can also hit the browse button to view and select all videos.
Clicking the upload button will open the upload form, thus allowing you to add new videos straight from Drupal. Publish the post, and your video should appear.