Skip to content

Instantly share code, notes, and snippets.

@codecandies
Created June 19, 2014 14:06
Show Gist options
  • Save codecandies/dccf2f8b3793c1723161 to your computer and use it in GitHub Desktop.
Save codecandies/dccf2f8b3793c1723161 to your computer and use it in GitHub Desktop.
/* the ZEIT namespace */
var ZEIT = function() {
return {
BrightcovePlayerPlugin : {
pluginInitialised : function (argument) {
if ( ZEIT.getQueryVar( "debug" ) == "true" ) {
console.info("[brightcove - ZEITPixel Plugin] plugin initialised");
}
},
playerLoaded : function(videoInfo) {
if ( ZEIT.getQueryVar( "debug" ) == "true" ) {
console.info("[brightcove - ZEITPixel Plugin] player loaded\n ->", videoInfo);
}
},
videoStarted : function(videoInfo) {
if ( ZEIT.getQueryVar( "debug" ) == "true" ) {
console.info("[brightcove - ZEITPixel Plugin] video started\n ->", videoInfo);
}
// window.wt.sendinfo({linkId: 'redaktion.video...video../'+videoId+'/'+videoName+'/START'});
},
videoCompleted : function(videoInfo) {
if ( ZEIT.getQueryVar( "debug" ) == "true" ) {
console.info("[brightcove - ZEITPixel Plugin] video completed\n ->", videoInfo);
}
// window.wt.sendinfo({linkId: 'redaktion.video...video../'+videoId+'/'+videoName+'/COMPLETE'});
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment