var wpb_video_settings_13 = {
siteUrl: “https://www.channel1450.com”, requestUri: “/category/features/featured-top-stories/feed/”, blogid: “1527”, ajaxurl_path: ‘/wp-content/plugins/wpb-video/public/ajax_send_video_stats.php’ , gmt_offset_site: ‘-5’ , player_flag: ‘player_video_single’ , sub_id: ‘0’ , playlist_id: ‘0’ , playerid: ‘4Xxv7gU’ , playerslug: ‘169-highlights-and-top-story-dfp’ , isDefaultPlayer: ‘1’
};
var pollingInterval_Video13;
var durationTimeGlobal13 = -1;
var actualVideoPlay13 = false;
var videoEvent13 = ”;
var adPlayed13 = false;
var uuidVid13 = jQuery.guid_vid();
var preroll13 = ‘https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/21422154/HighlightsTopStories&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=&player=16%3A9+Highlights+and+Top+Story+DFP&vid_t=pigskin-preview-2022-pleasant-plains-cardinals&tag=featured,football,pleasant-plains’;
var vid13 = false;
var options = {
html5: {
hls: {
overrideNative: true
},
nativeAudioTracks: false,
nativeVideoTracks: false
},
controlBar: {
togglePictureInPicture:false,
children: [
‘playToggle’,
‘progressControl’,
‘volumePanel’,
],
},
};
var player_event13 = ‘play’; //default.
var isFirefox = typeof InstallTrigger !== ‘undefined’; var isChrome = !!window.chrome && !!window.chrome.webstore;
if(isChrome || isFirefox){
var preroll = ‘https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/21422154/HighlightsTopStories&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=&player=16%3A9+Highlights+and+Top+Story+DFP&vid_t=pigskin-preview-2022-pleasant-plains-cardinals&tag=featured,football,pleasant-plains’; var preroll_random_no = Math.floor(Math.random() * 9000000000) + 1000000000; var preroll_new = preroll.replace(“correlator=”, “correlator=”+preroll_random_no);
//console.log(“AdTagUrl >> Chrome FireFox Browser URL: “, preroll_new);
}
else{
var preroll = ‘https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/21422154/HighlightsTopStories&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=&player=16%3A9+Highlights+and+Top+Story+DFP&vid_t=pigskin-preview-2022-pleasant-plains-cardinals&tag=featured,football,pleasant-plains’; var site_url = ‘https://www.channel1450.com’; var preroll_new =site_url+”/wp-content/plugins/wpb-video/public/post/read-xml.php?url=”+preroll;
//console.log(“AdTagUrl >> Safari IE Browser URL: “, preroll_new);
}
var Ads = function() {
this.player = videojs(“vid89096_13”, options);
this.startEvent = ‘click’;
if (navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) {
this.startEvent = ‘touchend’;
}
this.wrapperDiv = document.getElementById(“vid89096_13”);
this.boundInit = this.init.bind(this);
this.wrapperDiv.addEventListener(this.startEvent, this.boundInit);
var options = {
id: “vid89096_13”,
adsManagerLoadedCallback: this.adsManagerLoadedCallback.bind(this)
};
this.player.ima(options);
this.player.ready(function(){
this.controlBar.removeChild(‘fullscreenToggle’);
this.controlBar.addChild(‘QualitySelector’);
this.controlBar.addChild(‘fullscreenToggle’);
this.src([
{
src: “https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/1527/2022/08/15182424/Pleasant-Plains-Pigskin-Preview-2022_f0689c.mp4”,
type: ‘video/mp4’,
label: “406p”,
},
{
src: “https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/1527/2022/08/15182424/Pleasant-Plains-Pigskin-Preview-2022_3ac9ea9.mp4”,
type: ‘video/mp4’,
label: “270p”,
},
{
src: “https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/1527/2022/08/15182424/Pleasant-Plains-Pigskin-Preview-2022_897776.mp4”,
type: ‘video/mp4’,
label: “180p”,
},
]);
this.socialShare({ //WPB-1169
facebook: { // optional, includes a Facebook share button (See the [Facebook documentation](https://developers.facebook.com/docs/sharing/reference/share-dialog) for more information)
shareUrl: ‘https://www.channel1450.com/video/pigskin-preview-2022-pleasant-plains-cardinals/’, // optional, defaults to window.location.href
shareImage: ”, // optional, defaults to the Facebook-scraped image
shareText: ”, // optional
app_id: ”, // optional, facebook app_id to use (if not specified, the plugin will try to // use an existing FB Javascript object, or it will try to scrape the app_id from the // element in the document
},
twitter: { // optional, includes a Twitter share button (See the [Twitter documentation](https://dev.twitter.com/web/tweet-button/web-intent) for more information)
handle: ”, // optional, appends `via @handle` to the end of the tweet
shareUrl: ‘https://www.channel1450.com/video/pigskin-preview-2022-pleasant-plains-cardinals/’, // optional, defaults to window.location.href
shareText: ”
},
embed: { // optional, includes an embed code button
embedMarkup: ‘hid-extra-embed-div-13′ // required //WPB-1169
}
}); //End of socialShare
this.overlay({
overlays:[{ start:’ready’, content:’Pigskin Preview 2022: Pleasant Plains Cardinals’, end:’playing’, align:’top-left’
},
{
content:’Pigskin Preview 2022: Pleasant Plains Cardinals’, start:’pause’, end:’play’, align:”top-left”, }]
});
this.on(“timeupdate”, function (e)
{
//console.log(‘time updated….’);
durationTimeGlobal13 = this.currentTime();
});
this.on(“vast-preroll-removed”, function (e) { e.preventDefault(); //console.log(‘play button click…’);
var vid_player = this; //alert(vid_player.vast.prerollURL);
if (durationTimeGlobal13 != -1) { //pause and play again same video. This is when there is no preroll ads.
var durationTime = durationTimeGlobal13; var total_duration = vid_player.duration();
jQuery.collectStats_Video(this, ‘89096’, ‘play_interval’, durationTime, uuidVid13, ’13’,total_duration);
}
else { var durationTime = -1;
var total_duration = vid_player.duration();
jQuery.collectStats_Video(this, ‘89096’, ‘vast-preroll-removed’, durationTime, uuidVid13, ’13’,total_duration);
}
//check every 5 seconds and update stats for particular video player and for particular user.
pollingInterval_Video13 = setInterval(function(){ //durationTime = vid_player.duration(); //get duration every 5 seconds.
durationTime = vid_player.currentTime(); //durationTime = durationTimeGlobal13;
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, ‘89096’, ‘play_interval’, durationTime, uuidVid13, ’13’,total_duration);
}, 5000 );
});
this.on(“pause”, function (e) { e.preventDefault(); /*console.log(‘pause button click or video ended…’);*/ clearInterval(pollingInterval_Video13); //clear interval when pause or end.
videoEvent13 = ‘pause’;
if (actualVideoPlay13) { /*if actual video then only fire collect stats, donot fire for preroll. */ } else { return; } //var durationTime = this.duration(); //get end or pause duration.
var durationTime = this.currentTime(); var total_duration = this.duration();
jQuery.collectStats_Video(this, ‘89096’ , ‘pause’, durationTime, uuidVid13, ’13’,total_duration);
});
this.on(“ended”, function (e) { e.preventDefault(); /*console.log(‘ended event called…’); */ clearInterval(pollingInterval_Video13); /*clear interval when pause or end.*/ videoEvent13 = ‘ended’; });
});
}
Ads.prototype.initFromStart = function() {
if (!this.initialized) {
this.init();
this.wrapperDiv.removeEventListener(
this.startEvent, this.boundInitFromStart);
}
}
Ads.prototype.init = function() {
this.initialized = true;
this.player.ima.initializeAdDisplayContainer();
this.player.ima.setContentWithAdTag(null, ‘https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/21422154/HighlightsTopStories&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=&player=16%3A9+Highlights+and+Top+Story+DFP&vid_t=pigskin-preview-2022-pleasant-plains-cardinals&tag=featured,football,pleasant-plains’, false);
this.player.ima.requestAds();
this.wrapperDiv.removeEventListener(this.startEvent, this.boundInit);
};
Ads.prototype.adsManagerLoadedCallback = function() {
var events = [google.ima.AdEvent.Type.ALL_ADS_COMPLETED,
google.ima.AdEvent.Type.CLICK,
google.ima.AdEvent.Type.COMPLETE,
google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,
google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,
google.ima.AdEvent.Type.FIRST_QUARTILE,
google.ima.AdEvent.Type.LOADED,
google.ima.AdEvent.Type.MIDPOINT,
google.ima.AdEvent.Type.PAUSED,
google.ima.AdEvent.Type.STARTED,
google.ima.AdEvent.Type.THIRD_QUARTILE];
for (var index = 0; index < events.length; index++) {
this.player.ima.addEventListener(
events[index],
this.onAdEvent.bind(this));
}
this.player.on('adslog', this.onAdLog.bind(this));
};
Ads.prototype.onAdLog = function(data) {
//this.log('Ad log: ' + data.data.AdError);
};
Ads.prototype.onAdEvent = function(event) {
vid_player = this.player;
if(event.type=='start'){
adPlayed13=true;
// console.log('ad started……………..');
actualVideoPlay13 = false;
jQuery( "#vid89096_13 .vjs-overlay-bottom-left-ready" ).hide();
jQuery( "#vid89096_13 .vjs-overlay-bottom-left" ).hide();
pollingInterval_Video13 = setInterval(function(){
durationTime = vid_player.currentTime();
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, '89096', 'play_interval', durationTime, uuidVid13, '13',total_duration);
}, 5000 );
}else if(event.type=='complete' || event.type=='allAdsCompleted'){
actualVideoPlay13 = true;
videoEvent13 = 'play';
pollingInterval_Video13 = setInterval(function(){
durationTime = vid_player.currentTime();
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, '89096', 'play_interval', durationTime, uuidVid13, '13',total_duration);
}, 5000 );
}
};
var vidAds = new Ads();
School: Pleasant Plains High School
Mascot: Cardinals
Head Coach: John Hambelton
Years at School:
Overall Record:
Assistant Coaches:
Last Year’s Conference Record:
Last Year’s Overall Record:
Postseason:
School State Championships:
School Conference Championships:
Biggest Rival Game Every Year:
Number of returning letterman:
Number of returning starters:
Offense:
Defense:
Top Returnees from Fall 2021
Offensive:
Defensive:
Who are the newcomers we should know about and why?
Head Coach says: