It's a native implementation of BrightCove Video Player, and Preroll DoubleClick Video Ads (With skip support).
This is a initial approach and some things needs to be improved or refactored, but this initial release play videos and Ads.
- Copy the folders BCPlayer and components into your project folder
- Modify the .unoproj file and add the line
"**.js:Bundle"
into theIncludes
section"Includes": [ "**.js:Bundle", "*" ],
- To use the player on your code, use this code
<BrightCoveVideo Dock="Fill" adPlay="0" accountID="Your Brightcove Account ID" videoID="A Brightcove Video ID" Alignment="Default" />
- To use the player with Ads, use this code instead
<BrightCoveVideoAd Dock="Fill" adPlay="0" accountID="Your Brightcove Account ID" videoID="A Brightcove Video ID" Alignment="Default" />
The Player configuration is handled by the config.json file
module.exports = {
ad_url: '{The Google Tag for you Video Ad Unit}',
base_url: "http://app.mydomain.com/video/",
app_name: "My%20App",
skip_ad_label: 'Skip Ad',
bc_client_id: "{Your Brightcove API Client ID}",
bc_client_secret: "{Your Brightcove API Client Secret}"
}
- The
ad_url
parameter is the Google Tag generated for your Video Ad Unit. Please read the DoubleClick Documentation to know how to generate this Tag. - The
base_url
is the base url that is send back to DoubleClick as url referer for the Video Ad Display. The Url send is base_url + Video ID - The
app_name
is the name that is send back to DoubleClick as a description url for the Video Ad Display. The Url send is app_name + Video ID - The
skip_ad_label
is the label for the Skip Ad Button - The
bc_client_id
is your Brightcove API Client ID - The
bc_client_secret
is your Brightcove API Client Secret
To generate your BrighCove API Client ID/Secret, please read the BrighCove documentation about this subject.
- The Video ID must be from your own Brightcove Account ID
- The Video Ad Click/Tap is not working properly right now
- The Ad Code uses the current VAST 3.0 code and should work with any VAST 3.0 compliant Ad Server, but it's only tested with Brightcove
- Only Pre-roll Ads are displayed. No support for Mid-roll, and Post-roll, and neither for Non-linear banner ads. It should need fixes on the VAST Ad Parsing code
- We tested Ads with only one video creativity. Further tests are need for multiple ads