-
Notifications
You must be signed in to change notification settings - Fork 46
Brightcove Workflow
- The Brightcove Player Repository (Gitlab)
- The Brightcove Studio (Brightcove's Player builder)
/scss/*.scss
: the Pega Player sass files.
.gitignore
and .prettierrc
: configuration files (no need to touch these).
*.js
: these are Brightcove plugins that will be used on the Pega Player.
brightcove.css
: this is the styling for the Pega Player.
video-test.html
: the file that allows a local development with Brightcove.
package.json
: controls the build (mainly compiles the sass to CSS).
Create a branch off of the qa branch with the feature[TICKET NUMBER]
naming pattern.
- From the root of the Brightcove Player repository run
yarn css
. - This task will compile the sass files from the
./sass/
directory into thebrightcove.css
file - To watch the sass files, run
yarn css:watch
from the root. - Any changes within the
/sass/
directory will trigger a build (yarn css
).
- Include the local plugin within the
video-test.html
file.
- Note: You can do this by adding a
script
tag with the path to the plugin immediately after the<script src="https://players.brightcove.net/1900410236/O3FkeBiaDz_default/index.min.js"></script>
. This will overwrite the plugin that is being delivered upstream from Brightcove Studio.
- Edit the contents of the included plugin and save.
- Refresh the
video-test.html
file.
- Create a new file in the root with the
[PLUGIN NAME]_plugin.js
naming pattern. - In the newly created
[PLUGIN NAME]_plugin.js
file, create a register plugin function with the following code.
videojs.registerPlugin("[UNIQUE PLUGIN NAME]", function () {
[PLUGIN CONTENT]
});
- Include the local plugin within the
video-test.html
file. (see Modifying an existing Brightcove Plugins step 1 note). - Within the
videoInit
function in thevideo-test.html
file, initialize the newly created plugin by placingthis.[UNIQUE PLUGIN NAME]();
(this method name should match the registerPlugin[UNIQUE PLUGIN NAME]
value). - Refresh the
video-test.html
file.
- Push branch up to the Gitlab repository.
- Create a MR that is pointing to the
qa
branch. - Fill in the description and add design system team members as reviewers.
Brightcove Studio is a web based tool that allows a user to manipulate the Brightcove player settings. For the sake of this document we will only go over two specific workflows, updating an existing JS plugin and adding a new JS plugin (CSS adjustments and additions will follow a similar workflow).
Note: Access to the Brightcove Studio will be limited so most likely you will have to reach out to a team member to do the following steps
Currently there are four different Brightcove players (two for marketing and two for enablement). Each branch of Pega IT has a QA player (Pega Player (QA)) and a production player (Pega Player (Prod)) that utilizes the same code base. For example, both the Marketing and Enablement player utilizes the same qa
or prod
branches from the Brightcove Player repository on Gitlab. So from a developer standpoint, there is only one point (the Gitlab code) that will be distributed between multiple end points (the Brightcove studio players, which must publish updates independently).
- After the MR has been merged (outlined in the Local Workflow/When Work is Done section), sign into Brightcove Studio.
- Navigate to the intended player that should reflect the changes (either the Marketing or Enablement player).
- Note: Utilize the QA Player in order to test changes in a Drupal environment, the Prod Player is only used when pushing changes live.
- Click on the "Publish & Embed" button on the top right of the screen.
- Press the "Publish Changes" button in the modal.
- The changes will be visible in a couple minutes.
- After the MR has been merged (outlined in the Local Workflow/When Work is Done section), sign into Brightcove Studio.
- Navigate to the intended player that should reflect the changes (either the Marketing or Enablement player).
- Note: Utilize the QA Player in order to test changes in a Drupal environment, the Prod Player is only used when pushing changes live.
- Go to the "Plugins" tab in the left hand menu.
- Click on the "Scripts" tab and click on the "Add Script" button.
- In the "Javascript URL" input you will need to put the path to the plugin within the Brightcove Player repository on Gitlab, and click "Save".
- Note: Refer to existing examples for a file path example.
- Click on the "Publish & Embed" button on the top right of the screen.
- Press the "Publish Changes" button in the modal.
- The changes will be visible in a couple minutes.
- Basic A11y Checklist
- Get started with Bolt locally
- Bolt Specific Standards and Conventions
- How to save SVG graphics and SVG icons
- Upgrade to minor release
- Upgrade to 4.x
- Upgrade to 5.x
- Release Workflow
- VS Code Configuration
- Bolt Doc Writing Guide
- Prefixing Custom Attributes
- Standard Props for Passing Content in Twig
- Building Websites with Bolt in Drupal
- From Design Mockup to Code
- Override with Utility Classes