window[‘TVEPlayer’] = “6361112277112”;
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
}
} )();
Red Sox third baseman Rafael Devers has set another milestone after hitting his 200th career home run during Boston’s 7-5 loss to the Ariziona Diamondbacks.
The three-run blast came in the bottom of the 4th inning off of D-Backs pitcher Merrill Kelly, and was Devers’ team-leading 28th home run of the season. Devers became the youngest Red Sox player in franchise history to hit 200 home runs, doing so at just 27 years old.
For more on Devers’ career milestone, check out the video above presented by VA New England Healthcare!