window[‘TVEPlayer’] = “6361283150112”;
if( typeof window[‘NEILSENTRACE’] !== ‘undefined’ ){
window[‘NEILSENTRACE’].init();
} else {
console.log(“Neilsen not ready at player ready”);
}
// Fix for PRDT-3013
// Code will check for presence of brightcove player and attempt to autoplay if it isn’t playing
// due to an error in another player plugin
( () => {
try {
const CHECK_INTERVAL = 500; //check every .5 seconds
const CHECK_MAX_ITERATIONS = 120; //check for max 60 seconds
//checks that the video isn’t playing
const isVideoPlaying = ( player ) => {
return !!( 0 < player.currentTime() && !player.paused() && !player.ended() && 2 {
if ( !window[ 'videojs' ] || !window[ 'videojs' ].getPlayer( window[ 'TVEPlayer' ] ) ) {
if ( checkCount++ <= CHECK_MAX_ITERATIONS ) { //retry for 60 seconds
setTimeout( checkForPlayer, CHECK_INTERVAL );
}
} else {
//we found the player, now play it
const player = window[ 'videojs' ].getPlayer( window[ 'TVEPlayer' ] );
if ( player && !isVideoPlaying( player ) && 'muted' === player.autoplay() ) {
player.play();
}
}
};
checkForPlayer();
} catch ( e ) {
window.nesn_debug && console.warn( 'Error trying to force autoplay of video', e ); // eslint-disable-line no-console
}
} )();
The month of August proved to be a roller coaster for the Boston Red Sox, but the one thing that stayed consistent was their bats.
In August, the Sox offense held them afloat throughout the month as they rated top-10 in home runs, RBI, doubles, and hits.
For more, check out the video above from the “Ultimate Red Sox Show,” presented by Awaken180 Weight Loss.