Brightcove Player Update

Developer
Size
3,273 Kb
Views
48,576

How do I make an brightcove player update?

What is a brightcove player update? How do you make a brightcove player update? This script and codes were developed by Brad Strong on 27 November 2022, Sunday.

Brightcove Player Update Previews

Brightcove Player Update - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Brightcove Player Update</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .video-js { width: 100%; height: 100%; position: absolute; top: 0px; bottom: 0px; right: 0px; left: 0px;
}
.vjs-playlist { margin: 0; padding: 0;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <!-- Video ID: 5027071612001 -->
<!-- Playlist ID: 4998271035001 -->
<h1>Single Video Example</h1>
<div style="display: block; position: relative;"><div style="padding-bottom: 56.25%;">
<video
data-video-id="5027071612001"
data-account="2421677169001"
data-player="B1LUtHDN"
data-embed="default"
class="video-js"
controls></video>
</div></div><ol class="vjs-playlist"></ol>
<hr/>
<h1>Video Playlist Example</h1>
<div style="display: block; position: relative;"> <div style="padding-bottom: 56.25%;">
<video
data-playlist-id="4998271035001"
data-account="2421677169001"
data-player="B1LUtHDN"
data-embed="default"
class="video-js"
controls></video>
</div></div><ol class="vjs-playlist"></ol> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='http://players.brightcove.net/2421677169001/B1LUtHDN_default/index.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Brightcove Player Update - Script Codes CSS Codes

.video-js { width: 100%; height: 100%; position: absolute; top: 0px; bottom: 0px; right: 0px; left: 0px;
}
.vjs-playlist { margin: 0; padding: 0;
}

Brightcove Player Update - Script Codes JS Codes

/*
// settings for GA plugin
//pushare.s3.amazonaws.com/brightcove/videojs-ga-videocloud/v0-4-1/videojs.ga.videocloud.min.js
*/
// sendbeaconOverride(eventCategory, action, eventLabel, value, nonInteraction)
/*
{ "sendbeaconOverride" : function(eventCategory, action, eventLabel, value, nonInteraction) { dataLayer.push({ 'event' : 'GAEvent', 'eventCategory' : eventCategory, 'eventAction' : action, 'eventLabel' : eventLabel, 'eventValue' : value, 'eventNonInteractionHit' : nonInteraction }) }
}
*/
var PU = PU || {};
PU.analytics = (function ($) { 'use strict'; return { init: function () {}, // PU.analytics.track() // wrapper for dataLayer.push track: function(event){ // alert(event.data.category + ', ' + event.data.action + ', ' + event.data.label); dataLayer.push({ 'event' : 'GAEvent', 'eventCategory' : event.data.category, 'eventAction' : event.data.action, 'eventLabel' : event.data.label }); }, // PU.analytics.listen // Attach event listeners to elements // ex: PU.analytics.listen($('#elementID')); listen: function(element){ // Parse the strings representing the event to track // if no string is provided, is set to true, or is an empty string, default to 'click' // if set to false, return no value var trackEventData = $(this).data('pu-track'), trackEvent; if (typeof trackEventData === 'string') { if ((trackEventData.length > 0) && (trackEventData.toLowerCase !== true)){ trackEvent = trackEventData; } else { trackEvent = 'click'; } trackEvent = trackEventData; } else if ((typeof trackEventData === 'boolean') && (trackEventData !== 'false')) { trackEvent = 'click'; } var trackCategory = $(this).data('pu-track-category'), trackAction = $(this).data('pu-track-action') || trackEvent, trackLabel = $(this).data('pu-track-label') || $(this).text(); // Double check that the value is correct // console.log(trackEvent); var eventData = { category: trackCategory, action: trackAction, label: trackLabel } // Double check the object // console.log(eventData); // Attach the event handler $(this).on(trackEvent, eventData, PU.analytics.track); }, // report encapsulates pre-determined event tracking report: (function() { return { video: (function(){ return { event: function(eventCategory, action, eventLabel, value, nonInteraction) { dataLayer.push({ 'event' : 'GAEvent', 'eventCategory' : eventCategory, 'eventAction' : action, 'eventLabel' : eventLabel, 'eventValue' : value, 'eventNonInteractionHit' : nonInteraction }) } } })() }; })() };
}(jQuery));
Brightcove Player Update - Script Codes
Brightcove Player Update - Script Codes
Home Page Home
Developer Brad Strong
Username bradstrong
Uploaded November 27, 2022
Rating 3
Size 3,273 Kb
Views 48,576
Do you need developer help for Brightcove Player Update?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Brad Strong (bradstrong) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!