Disable Ad Blockers to View This Video
\n \n \nOn Cloud 9 City. Right now I can’t even think straight, but on Monday, I’ll have you a shot for shot breakdown of the trailer. For now, read Clem’s awesome rapid reaction blog.
\n"},"media":{"live":null,"video":{"id":"5398844960001","duration":0,"pre_roll_disabled":false,"image":"https://cdn.barstoolsports.com/wp-content/uploads/2017/04/14/4289043293001_5398872314001_5398844960001-vs.jpg"},"podcast":null,"gallery":null,"fundraiser":null},"sites":{"barstoolsports":true,"barstoolbets":false},"meta":{"active_user_id":"62543","active_user_date":"2017-04-14T22:47:58.000Z"}}
const preRollDisabled = false
// helpful functions
function adsDisabled() {
return type === 'live' || preRollDisabled
}
const player = bc('barstool_bc_player_dfb048f0-1fbd-4e0b-940e-b8f7a22e6478')
player.controls(true)
player.playsinline(true)
player.error = e => {
if (e) console.error(e)
}
player.volume(0.5)
player.on('ready', function() {
if (adsDisabled()) {
player.ima3 = null
} else if (isAdBlockEnabled()) {
const videoTag = document.getElementById('barstool_bc_player_dfb048f0-1fbd-4e0b-940e-b8f7a22e6478')
videoTag.parentNode.removeChild(videoTag)
document.getElementById('ad_blocker_message').style.display = 'block'
} else {
player.ima3.settings.debug = true
player.ima3.settings.showVpaidControls = true
player.ima3.ima3SdkSettings = { disableCustomPlaybackForIOS10Plus: true }
player.ima3.adMacroReplacement = function (url) {
const params = !post ? {} : {
'{authorName}': post.author.name || '',
'{authorId}': post.author.id || '',
'{category}': post.category && post.category.name || '',
'{tags}': post.tags.join('|'),
'{brandName}': post.brand && post.name || '',
'{brandId}': post.brand && post.brand.id || '',
'{campaign}': post.nsfw ? 'NSFW' : 'default',
'{storyUrl}': post.urls && post.urls.canonical,
'{videoId}': videoId,
'{duration}': parseVideoDuration(post, type),
'{destination_url}': post.urls.canonical
}
for (let i in params) {
url = url.split(i).join(encodeURIComponent(params[i]))
}
return url
}
}
})