var bimvid = bimvid || {}; (function(){ bimvid.lp = "http://"; if(!bimvid.parameters) { bimvid.parameters = {}; } bimvid.docurl = escape(document.URL); var playerobj = { id: "d6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96", loaded: false, init: function() { if(this.loaded) return true; this.loaded = bimvid.renderPlayer(this.id, this.config); }, config: { "pm": "video", "responsive": true, "ratio": 9/16, "mu":true, "ao":false, "height": 270, "width": 480, "sharing": "//player.field59.com/v3/vps/wway/d6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96/ref=aHR0cCUzQS8vd3d3Lnd3YXl0djMuY29tLzIwMTYvMDkvMDIvY2FwZS1mZWFyLXNjaG9vbC1kaXN0cmljdHMtZXhjZWxsaW5nLWluLXNjaWVuY2Uv", "inlinestyles": true, "ga": [ "UA-54189600-37", "UA-12419917-1", "UA-54189600-42"], "refUrl": "http%3A//www.wwaytv3.com/2016/09/02/cape-fear-school-districts-excelling-in-science/","autoplay": true, "showtitle": true, "hasCaptions":true, "thumb" : "http://cdn.field59.com/WWAY/1472789060-b50a61e354de59de60e243ba927c71d23aa301a9.jpg", "related" : "http://player.field59.com/v4/feed/WWAY/education,localnews/max=11;cat=news;player=5541607141f2a727720e2d38;related=Y", "dfpConfig":{"companions":"bimvidplayerd6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96_cb", "prerollTemplate":"https://pubads.g.doubleclick.net/gampad/ads?iu=/132916964,1079947/wwaytv3.com/video&description_url=https%3A%2F%2Fwwaytv3.com&tfcd=0&npa=0&sz=640x480&cust_params=vpos%3Dpreroll&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=","midrollTemplate" :"","postrollTemplate" :"https://pubads.g.doubleclick.net/gampad/ads?iu=/132916964,1079947/wwaytv3.com/video&description_url=https%3A%2F%2Fwwaytv3.com&tfcd=0&npa=0&sz=640x480&cust_params=vpos%3Dpreroll&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=","prerollCompanionTemplate" :"","midrollCompanionTemplate" :"","postrollCompanionTemplate" :""}, "clip": { "url": "http://cdn.field59.com/WWAY/1472789156-d6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96_fl9-720p.mp4", "scaling":"fit", "pageUrl": bimvid.docurl,"id":"57c8f9b41b37a60f41534fda", "owner": "WWAY", "dockey":"d6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96", "title": "Cape Fear schools excelling at science", "description": "Cape Fear schools excelling at science", "duration":113, "keywords": "education,localnews", "categories" : "news" }, "plugins": { "controls": {"timeColor":"#ffffff","buttonOffColor":"rgba(130,130,130,1)","borderColor":"rgba(232, 162, 232, 0)","zIndex":1,"sliderColor":"rgba(0, 0, 0, 1)","backgroundColor":"rgba(0, 0, 0, 1)","scrubberHeightRatio":0.6,"volumeSliderGradient":"none","tooltipTextColor":"#ffffff","sliderGradient":"none","spacing":{"time":6,"volume":8,"all":2},"timeBorderRadius":20,"timeBgHeightRatio":0.8,"volumeSliderHeightRatio":0.6,"progressGradient":"none","height":26,"volumeColor":"rgba(143, 143, 143, 1)","timeSeparator":" ","name":"controls","volumeBarHeightRatio":0.2,"opacity":1,"left":"50pct","timeFontSize":12,"tooltipColor":"rgba(0, 0, 0, 1)","volumeSliderColor":"rgba(0, 0, 0, 1)","bufferColor":"rgba(0, 0, 0, 1)","border":"0px","buttonColor":"rgba(224, 224, 224, 1)","durationColor":"rgba(102, 104, 107, 1)","backgroundGradient":"none","width":"100pct","display":"block","sliderBorder":"1px solid rgba(128, 128, 128, 0.7)","buttonOverColor":"#ffffff","timeBorder":"0px solid rgba(0, 0, 0, 0.3)","progressColor":"rgba(143, 143, 143, 1)","timeBgColor":"rgba(20, 20, 20, 1)","scrubberBarHeightRatio":0.2,"bottom":0,"builtIn":false,"volumeBorder":"1px solid rgba(128, 128, 128, 0.7)","margins":[2,12,2,12], "time": true, "autoHide": true} ,"dfp": { "zIndex":50 , "onCompanion": function(oC){bimvid.jQuery('#'+oC.containerId).html(oC.content);}} } }, }; bimvid.players = bimvid.players || []; bimvid.players.push(playerobj); function jqr() { bimvid.jQuery = window.jQuery; if(!bimvid.cssloaded) { bimvid.jQuery('').appendTo('head'); bimvid.cssloaded = true; } if (window.flowplayer === undefined && !bimvid.scriptsLoaded) { url = "http://player.field59.com/release-3.31.1/js/dc4b06d.js"; bimvid.jQuery.getScript(url, function() { bimvid.scriptsLoaded = true; var i; for(i=0; i < bimvid.players.length; i++) { obj=bimvid.players[i]; if(!obj.loaded){ obj.init(); obj.loaded = true; } } bimvid.finalizeListeners(); }); } } // check for jquery and load if (typeof bimvid.jQuery === "undefined") { if (typeof window.jQuery == 'undefined') { var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'; if (jq.readyState) { jq.onreadystatechange = function (){ if (this.readyState == 'complete' || this.readyState == 'loaded') { jqr(); } }; } else { jq.onload = jqr; } document.getElementsByTagName('head')[0].appendChild(jq); } else { jqr(); } } var el = document.createElement("div"); el.setAttribute("class", "bimVideoPlayer"); el.innerHTML = '
'; var scriptEls = document.getElementsByTagName("script"); var i; var len = scriptEls.length; for (i = 0; i < len; i++) { if (scriptEls[i].getAttribute("src") && scriptEls[i].getAttribute("src").indexOf("d6d5af7a8ea6eb54a9b65bfdf1bce0fe35e66d96") > -1) { var t = scriptEls[i]; t.parentNode.insertBefore(el, t.nextSibling); } } if (typeof window.bimvid.scriptsLoaded !== "undefined") { playerobj.init(); } })();