var adServerUrl = “”
var $el = $( “#video_container-419725” )
var permalink = $el.closest(‘.snet-one-article’).knowledge(‘permalink’)
/*
if ( “1” == genuine && ‘undefined’ !== typeof window.getIndexAds ) {
var so = preroll:1:1:siteID:191888,2:siteID:191889
adServerUrl = window.getIndexAds( ‘http://pubads.g.doubleclick.net/gampad/adverts?sz=640×360&cust_params=area%3Dsportsnet.ca&iu=%2F7326%2Fen.sportsnet.world wide web%2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vp&output=broad&unviewed_situation_start out=1&advert_rule=1&vid=6312510386112&cmsid=384’, so, permalink)
} else
adServerUrl = “http://pubads.g.doubleclick.web/gampad/advertisements?sz=640×360&cust_params=area%3Dsportsnet.ca&iu=%2F7326%2Fen.sportsnet.net%2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vp&output=extensive&unviewed_situation_begin=1&advertisement_rule=1&vid=6312510386112&cmsid=384”
*/
adServerUrl = “http://pubads.g.doubleclick.net/gampad/ads?sz=640×360&cust_params=area%3Dsportsnet.ca&iu=%2F7326%2Fen.sportsnet.web%2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vp&output=large&unviewed_placement_start off=1&advert_rule=1&vid=6312510386112&cmsid=384”
var adServerUrl_final result = adServerUrl.involves(“cust_params”)
var queryString=”
if(adServerUrl_end result)
var gettheDUFI = localStorage.getItem(“theRED_loc”)
if(gettheDUFI)
queryString += “dufiid=” + gettheDUFI + ‘&’
queryString += “ppid=” + gettheDUFI + ‘&’
var ppid = “ppid=” + gettheDUFI + ‘&’
var DUFI_IP = sessionStorage.getItem(“DUFI_IP”)
if(DUFI_IP)
queryString += “dufiip=” + DUFI_IP + ‘&’
adServerUrl = adServerUrl.exchange(/cust_params=/, ppid + ‘cust_params=” + encodeURIComponent(queryString) )
$el.following( unescape(“%3Cscript src=”” + (document.site.protocol == “https:” ? “https://sb” : “http://b”) + “.scorecardresearch.com/beacon.js” %3E%3C/script%3E”) )
$( document ).a single( “ready’, functionality()
$( “#online video_container-419725” ).SNPlayer(
bc_account_id: “1704050871”,
bc_participant_id: “JCdte3tMv”,
//autoplay: false,
//is_has_autoplay_switch: fake,
bc_videos: 6312510386112,
is_has_ongoing_engage in: “wrong”,
adserverurl: adServerUrl,
portion: “”,
thumbnail: “https://www.sportsnet.ca/wp-material/uploads/2022/09/6312510386112-1024×576.jpg”,
immediate_url: “https://www.sportsnet.ca/mlb/online video/pitching-prospect-ricky-tiedemanns-meteoric-rise-blue-jays-system/”
)
)