var wpb_video_settings_14 = {
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_Video14;
var durationTimeGlobal14 = -1;
var actualVideoPlay14 = false;
var videoEvent14 = ”;
var adPlayed14 = false;
var uuidVid14 = jQuery.guid_vid();
var preroll14 = ‘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-riverton-hawks&tag=featured,football,riverton’;
var vid14 = false;
var options = {
html5: {
hls: {
overrideNative: true
},
nativeAudioTracks: false,
nativeVideoTracks: false
},
controlBar: {
togglePictureInPicture:false,
children: [
‘playToggle’,
‘progressControl’,
‘volumePanel’,
],
},
};
var player_event14 = ‘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-riverton-hawks&tag=featured,football,riverton’; 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-riverton-hawks&tag=featured,football,riverton’; 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(“vid89070_14”, 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(“vid89070_14”);
this.boundInit = this.init.bind(this);
this.wrapperDiv.addEventListener(this.startEvent, this.boundInit);
var options = {
id: “vid89070_14”,
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/14154617/Riverton-Pigskin-Preview-2022_f0689c.mp4”,
type: ‘video/mp4’,
label: “406p”,
},
{
src: “https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/1527/2022/08/14154617/Riverton-Pigskin-Preview-2022_3ac9ea9.mp4”,
type: ‘video/mp4’,
label: “270p”,
},
{
src: “https://dehayf5mhw1h7.cloudfront.net/wp-content/uploads/sites/1527/2022/08/14154617/Riverton-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-riverton-hawks/’, // 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-riverton-hawks/’, // optional, defaults to window.location.href
shareText: ”
},
embed: { // optional, includes an embed code button
embedMarkup: ‘hid-extra-embed-div-14′ // required //WPB-1169
}
}); //End of socialShare
this.overlay({
overlays:[{ start:’ready’, content:’Pigskin Preview 2022: Riverton Hawks’, end:’playing’, align:’top-left’
},
{
content:’Pigskin Preview 2022: Riverton Hawks’, start:’pause’, end:’play’, align:”top-left”, }]
});
this.on(“timeupdate”, function (e)
{
//console.log(‘time updated….’);
durationTimeGlobal14 = 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 (durationTimeGlobal14 != -1) { //pause and play again same video. This is when there is no preroll ads.
var durationTime = durationTimeGlobal14; var total_duration = vid_player.duration();
jQuery.collectStats_Video(this, ‘89070’, ‘play_interval’, durationTime, uuidVid14, ’14’,total_duration);
}
else { var durationTime = -1;
var total_duration = vid_player.duration();
jQuery.collectStats_Video(this, ‘89070’, ‘vast-preroll-removed’, durationTime, uuidVid14, ’14’,total_duration);
}
//check every 5 seconds and update stats for particular video player and for particular user.
pollingInterval_Video14 = setInterval(function(){ //durationTime = vid_player.duration(); //get duration every 5 seconds.
durationTime = vid_player.currentTime(); //durationTime = durationTimeGlobal14;
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, ‘89070’, ‘play_interval’, durationTime, uuidVid14, ’14’,total_duration);
}, 5000 );
});
this.on(“pause”, function (e) { e.preventDefault(); /*console.log(‘pause button click or video ended…’);*/ clearInterval(pollingInterval_Video14); //clear interval when pause or end.
videoEvent14 = ‘pause’;
if (actualVideoPlay14) { /*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, ‘89070’ , ‘pause’, durationTime, uuidVid14, ’14’,total_duration);
});
this.on(“ended”, function (e) { e.preventDefault(); /*console.log(‘ended event called…’); */ clearInterval(pollingInterval_Video14); /*clear interval when pause or end.*/ videoEvent14 = ‘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-riverton-hawks&tag=featured,football,riverton’, 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'){
adPlayed14=true;
// console.log('ad started……………..');
actualVideoPlay14 = false;
jQuery( "#vid89070_14 .vjs-overlay-bottom-left-ready" ).hide();
jQuery( "#vid89070_14 .vjs-overlay-bottom-left" ).hide();
pollingInterval_Video14 = setInterval(function(){
durationTime = vid_player.currentTime();
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, '89070', 'play_interval', durationTime, uuidVid14, '14',total_duration);
}, 5000 );
}else if(event.type=='complete' || event.type=='allAdsCompleted'){
actualVideoPlay14 = true;
videoEvent14 = 'play';
pollingInterval_Video14 = setInterval(function(){
durationTime = vid_player.currentTime();
var total_duration = vid_player.duration();
jQuery.collectStats_Video(vid_player, '89070', 'play_interval', durationTime, uuidVid14, '14',total_duration);
}, 5000 );
}
};
var vidAds = new Ads();
School: Riverton High School
Mascot: Hawks
Head Coach: Colton Piper
Years at School: 4 Years as an Assistant Coach
Overall Record: 0-0
Assistant Coaches: Brad Baughman, Mike Boren, Austin Landess, Trent Quarton
Last Year’s Conference Record: 4-5
Last Year’s Overall Record: 4-5
Postseason: N/A
School State Championships: 0
School Conference Championships: 0
Biggest Rival Game Every Year: Pleasant Plains
Number of returning letterman: 20
Number of returning starters: 10
Offense: 4
Defense: 6
Top Returnees from Fall 2021
Offensive: Terrance McIntosh, David Leach
Defensive: Terrance McIntosh, Bryce Oberreiter
Who are the newcomers we should know about and why?
Eithen Bates – our next QB, good arm talent, high potential
Landon Meyer – week 1 starter his freshman and sophomore year, has dealt with some injuries but is 100% now
Cameron Sutton – basketball kid, good size, soft hands
Kamerson Sklenka – quick, good ball skills, good route runner
AJ Sanderfield – started as a sophomore for us in the spring but got injured, he will give us depth at RB and LB.
Will Gilbert – tough kid, good agility for OL, will also play LB
Head Coach says: We have a lot of new faces and will have some obstacles to overcome with that. When this group gets more comfortable things will start to click for us.