var adServerUrl = “”;
var $el = $( “#video_container-393660” );
var permalink = $el.closest(‘.snet-single-article’).knowledge(‘permalink’);
/*
if ( “1” == true && ‘undefined’ !== typeof window.getIndexAds ) {
var so = {preroll:{1:{1:{siteID:191888},2:{siteID:191889}}}};
adServerUrl = window.getIndexAds( ‘http://pubads.g.doubleclick.web/gampad/commercials?sz=640×360&cust_params=domainp.c3Dsportsnet.ca&iu=%2F7326p.c2Fen.sportsnet.internetp.c2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vice chairman&output=huge&unviewed_position_start=1&ad_rule=1&vid=6306504253112&cmsid=384’, so, permalink);
} else {
adServerUrl = “http://pubads.g.doubleclick.web/gampad/commercials?sz=640×360&cust_params=domainp.c3Dsportsnet.ca&iu=%2F7326p.c2Fen.sportsnet.internetp.c2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vice chairman&output=huge&unviewed_position_start=1&ad_rule=1&vid=6306504253112&cmsid=384”;
}
*/
adServerUrl = “http://pubads.g.doubleclick.web/gampad/commercials?sz=640×360&cust_params=domainp.c3Dsportsnet.ca&iu=%2F7326p.c2Fen.sportsnet.internetp.c2FVideo&ciu_szs=300×250&impl=s&gdfp_req=1&env=vice chairman&output=huge&unviewed_position_start=1&ad_rule=1&vid=6306504253112&cmsid=384”;
var adServerUrl_result = adServerUrl.contains(“cust_params”);
var queryString=”;
if(adServerUrl_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.change(/cust_params=/, ppid + ‘cust_params=” + encodeURIComponent(queryString) );
}
$el.after( unescape(“%3Cscript src=”” + (file.location.protocol == “https:” ? “https://sb” : “http://b”) + “.scorecardresearch.com/beacon.js” %3Ep.c3C/scriptp.c3E”) );
$( file ).one( “able’, serve as() {
$( “#video_container-393660” ).SNPlayer( {
bc_account_id: “1704050871”,
bc_player_id: “JCdte3tMv”,
//autoplay: false,
//is_has_autoplay_switch: false,
bc_videos: 6306504253112,
is_has_continuous_play: “false”,
adserverurl: adServerUrl,
segment: “”,
thumbnail: “https://www.sportsnet.ca/wp-content/uploads/2022/05/6306504253112-1024×576.jpg”,
direct_url: “https://www.sportsnet.ca/nhl/video/bobrovsky-absolutely-robs-palat-keep-game-tied-third-period/”
});
});