Fly Fishing

Fly Fisherman


Skip to main content

AllSpeciesGearDestinationsEditor’s NotebookNewsCurrent IssueCurrent IssueFly TyingBeginnersExperts

Advertisement

Latest Articles

Popular Videos

Advertisement

Latest Video

Hobie Mirage iTrek 9 Ultralight Inflatable Kayak – TESTED!

If looking for the ultimate kayak that’s both portable and lightweight, then consider a quality inflatable like the Hobie Mirage iTrek 9 Ultralight.

Watch More Videos

Advertisement

Magazine Cover

Buy Digital Single Issues

Don’t miss an issue.
Buy single digital issue for your phone or tablet.

Buy Single Digital Issue on the Fly Fisherman App

Other Magazines

Special Interest Magazines

See All Special Interest Magazines

Advertisement

More You May Be Interested In

GET THE NEWSLETTER Join the List and Never Miss a Thing.

Get the top Fly Fisherman stories delivered right to your inbox.

<![CDATA[window.jQuery || document.write('’)]]><![CDATA[window.jQuery || document.write('’)]]>

<![CDATA[ var amp; var modalClosed = false; var hasReplayed = false; var isOnScreen = false; var AMP_PATH = “/akamai/2.116.4”; var playerElement = document.getElementById(“akamai-media-player”); if (typeof(playerElement) !== 'undefined' && playerElement !== null) { if (typeof bypassads === 'undefined') { bypassads = getParameterByName(“bypassads”); } var debug = getParameterByName(“debug”); var site = getParameterByName(“site”); var autoplay = getParameterByName(“autoplay”); var base_ad_tag = “”; var currentTime = “”; var progress; var videoPlaybackTime = 0; var hidden; var visibilityChange; var modalState = “locked”; var videoAutoplay = “allowed”; function playerLogger(logMessage){ if (debug==true){ playerLogger(“VPJS – “+logMessage); } } function findAncestor(el, cls) { while ((el = el.parentElement) && !el.classList.contains(cls)); return el; } function mediaSequenceEndedHandler(event){ playerLogger(“media sequence ended”); playerLogger(82299); var $embedType = 'in-page'; var $parent; var $website = 82299; if ( window.location !== window.parent.location ) { // The page is in an iframe $embedType = 'iframe'; } playerLogger($embedType); if ($embedType === 'iframe') { $parent = window.frameElement; } else { $parent = findAncestor(document.getElementById('akamai-media-player'), 'full-video'); } // parent.relatedVideos($parent, amp.config.media.title, $embedType); if (!$parent.classList.contains('force-closed')) { parent.$.processRelatedVideos($parent, $embedType, amp.config.media.title, $website); } } function loadHandler(event) { var config = { paths: { player: AMP_PATH + “/amp.premier/”, resources: AMP_PATH + “/resources/”, plugins: AMP_PATH + “/akamai/amp/” }, playsinline: true, muted: true, autoplay: true, autoplayPolicy: “mutedinline”, mode: “html”, hls: { debug: false }, media: { title: “Hobie Mirage iTrek 9 Ultralight Inflatable Kayak – TESTED!”, //Headline poster: “https://osg.akamaized.net/OSG_Thumbnails/iso/5e/6e797744-512b-47db-9c31-71981bfdd903/Hobie_iTrek9Ultra-Light_Final_slate.jpeg”, //Large_Image duration: “313”, //Video_length source: [{ src: “https://osg.akamaized.net/delivery/iso/5e/6e797744-512b-47db-9c31-71981bfdd903/Hobie_iTrek9Ultra-Light_Final_2800k.f4m?pkz=1”, /HdsUrl_Flash f4m/ type: “video/f4m”},{ src: “https://osg.akamaized.net/delivery/iso/5e/6e797744-512b-47db-9c31-71981bfdd903/playlist.m3u8”, /HlsUrl_Apple m3u8/ type: “application/x-mpegURL”},{ src: “https://osg.akamaized.net/delivery/iso/5e/6e797744-512b-47db-9c31-71981bfdd903/Hobie_iTrek9Ultra-Light_Final_1850k.mp4”, /video/mp4/ type: “video/mp4”}] }, plugins: { mediaanalytics: { resources: [ { type: “text/javascript”, src: “//79423.analytics.edgekey.net/ma_library/javascript/javascript_malibrary.js”, async: true }, { src: AMP_PATH + “/akamai/amp/mediaanalytics/Mediaanalytics.min.js”, debug: AMP_PATH + “/akamai/amp/mediaanalytics/Mediaanalytics.js”, type: “text/javascript”, async: true } ], plugin: { swf: “//79423.analytics.edgesuite.net/csma/plugin/csma.swf” }, config: “https://ma562-r.analytics.edgekey.net/config/beacon-20818.xml?setVideoObject=1”, iplookup: false, dimensions: { title: “#{media.title}”, playerId: “#{player.mode} Player” } }, googleanalytics: { resources: [ {src: “//www.google-analytics.com/analytics.js”, type: “text/javascript”, async: true}, {src: AMP_PATH + “/akamai/amp/googleanalytics/Googleanalytics.js”, type: “text/javascript”, async: true} ], trackingId: “UA-2409437-4”, disablePageView: true, events: { video: [{ type: “page”, data: { eventCategory: “video”, eventAction: “pageView”, eventLabel: “~/default.aspx” } }, { type: “milestone”, data: { eventCategory: “video”, eventAction: “milestone”, eventLabel: “#{media.title}”, eventValue: “#{progress}” } }, { type: “videoautoplay”, data: { eventCategory: “video”, eventAction: “videoautoplay”, eventLabel: “#{videoAutoplay}” } }] } }, // Moat tracking script and ads listener // moat: { // resources: [ // {src: “#{paths.plugins}moat/libs/moat_sdk.js”, type: “text/javascript”, async: true}, // {src: “#{paths.plugins}moat/Moat.min.js”, debug: “#{paths.plugins}moat/Moat.js”, type: “text/javascript”, async: true} // ], // partnerCode: “osgjsvideo204682377955” // //slicer1: “123”, // //slicer2: “123” // }, errormanagement: { resources: [ { src: AMP_PATH + “/akamai/amp/errormanagement/Errormanagement.js”, type: “text/javascript”, async: true }, { src: AMP_PATH + “/akamai/amp/errormanagement/Errormanagement.css”, type: “text/css”, async: true } ], data: { //logo: AMP_PATH + “/resources/images/akamai-logo.png” }, recovery: { enabled: false, interval: 10 } } }, locales: { en: { MSG_MEDIA_ERR_ABORTED: “Sorry, something went wrong. Please refresh your browser …”, MSG_MEDIA_ERR_NETWORK: “Sorry, something went wrong. Please refresh your browser…”, MSG_MEDIA_ERR_DECODE: “Sorry, something went wrong. Please refresh your browser …”, MSG_MEDIA_ERR_SRC_NOT_SUPPORTED: “Sorry, something went wrong. Please refresh your browser …”, MSG_AMP_GENERIC_ERROR: “Sorry but the video you're trying to play can not be found …” } }, ima: { resources: [ { type: “text/javascript”, src: “//imasdk.googleapis.com/js/sdkloader/ima3.js”, debug: “//imasdk.googleapis.com/js/sdkloader/ima3_debug.js”, async: true } ], enabled: true, version: 3, // adTagUrl: “//pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/124319096/external/ad_rule_samples&ciu_szs=300×250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&cust_params=sample_ar%3Dpremidpostpod&cmsid=496&vid=short_onecue&correlator=”, disableCompanionAds: false, ppid: “ABCDE123456789012345678901234567”, vpaidMode: “enabled”, disableFlashAds: true, companions: [ { id: “companion-container”, width: 300, height: 250 } ] } }; // bypass autoplay policy if (autoplay === “false”) { config.autoplay = false; } // AD TAG URL to be replaced here, this is where you can add the skip after 5 seconds if (bypassads === “true”) { config.ima.adTagUrl = “”; config.disableCompanionAds = true; config.ima.enabled = false; } else { base_ad_tag = “//pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/4930/imo.flyfisherman&impl=s&gdfp_req=1&env=vp&ad_rule=1&output=xml_vmap1&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]”; var adTagOverride = “”; // overwrite with a demo sample ad if (site === “sample”) { // pre-roll adTagOverride = “//pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/124319096/external/ad_rule_samples&ciu_szs=300×250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=xml_vmap1&unviewed_position_start=1&cust_params=sample_ar%3Dpremidpostpod&cmsid=496&vid=short_onecue&correlator=”; // overlay // adTagOverride = “//pubads.g.doubleclick.net/gampad/ads?sz=480×70&iu=/124319096/external/single_ad_samples&ciu_szs=300×250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dnonlinear&correlator=”; // osg test tag // adTagOverride = “//pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/4930/devtest&impl=s&gdfp_req=1&env=vp&ad_rule=1&output=xml_vmap1&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]” } if (adTagOverride != “”) { config.ima.adTagUrl = adTagOverride; } else { config.ima.adTagUrl = base_ad_tag; } } if (document.getElementById(“akamai-media-player”) !== null) { amp = akamai.amp.AMP.create(“akamai-media-player”, config, readyHandler); amp.addEventListener(akamai.amp.Events.MEDIA_SEQUENCE_ENDED, mediaSequenceEndedHandler); postbackHandler(); } } function readyHandler(event) { // add a websiteID to the DOM element var el = document.getElementById(“akamai-media-player”) el.setAttribute(“data-website-id”, “82299”) //Trello card: detect when we can not auto play (log it) and hide pop out player // detect autoplayblocked to disable popout video and log analytics amp.addEventListener(“autoplayblocked”, function (event) { var mode = event.detail.mode; var threshold = event.detail.threshold; playerLogger(“Attemted autoplay '” + mode + “', but the browser's threshold is '” + threshold + “'”); videoAutoplay = “blocked”; }); amp.addEventListener(“timeupdate”, function (event) { var currentTime = Math.floor(event.data); playerLogger(“EVENT DATA:” + event.data); var track =false; if (videoPlaybackTime != currentTime) { videoPlaybackTime = currentTime; switch (currentTime) { case Math.floor(amp.media.duration * 0.25): track = true; break; case Math.floor(amp.media.duration * 0.50): track = true; break; case Math.floor(amp.media.duration * 0.75): track = true; break; } if (track) { //we pass the milestone value to progress which is a event value variable in the milestone config progress = videoPlaybackTime; //amp.googleanalytics.trackEvent(“milestone”);//let's try re-enabling this on one site to test bounce rate } } }) amp.addEventListener('mediasequenceinitialized', function () { // initiate a mouse scroll for the popout video addListener in Editorial.aspx // $(window).scroll(); //amp.googleanalytics.trackEvent(“videoautoplay”); window.addEventListener(“message”, messageHandler, false); }) //amp.googleanalytics.trackEvent(“[type]”) //amp.googleanalytics.trackEvent(“page”); //ga(“send”, “event”, , , , ); //ga(“send”, “event”, “ready”, “video”, 1); } // Get query string function function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[[]]/g, “\$&”); var regex = new RegExp(“[?&]” + name + “(=([^&#]*)|&|#|$)”), results = regex.exec(url); if (!results) return null; if (!results[2]) return ”; return decodeURIComponent(results[2].replace(/+/g, ” “)); } // prevent postback refresh issue with react controls and asp.net eventHandling function postbackHandler() { var ampControls = document.getElementById(“akamai-media-player”); ampControls.addEventListener(“click”, function(e) { e.preventDefault(); }); } window.onscroll = function () { changeView(); }; var $canPin = true; function changeView(event) { // disable popout for iframe players try { var parentContainer = document.querySelector(“.video-container”); // var parentContainer = document.querySelector(“.video-container”).parentElement; } catch (e) { return; } //remove the pop out player from mobile //if (akamai.amp.Utils.getDevice() === “android”) return; //if (akamai.amp.Utils.getDevice() === “iphone”) return; // disable popout video if autoplay is blocked if (videoAutoplay === “blocked”) return; //var container = document.getElementById(“akamai-media-player”); //var parentContainer = document.querySelector(“.video-container”).parentElement; var parentContainerState = akamai.amp.Utils.getViewability(parentContainer); var modal = document.querySelector(“.full-video”); if (parentContainerState === “none” && modalState !== “unlocked” && $canPin !== false & modalClosed === false) { modal.classList.add(‘full-video-small’); //console.log(‘class change video fucntion’); } else if (parentContainerState === “full”) { if (modalClosed === true && hasReplayed === false) { modal.classList.remove(‘force-closed’); amp.replay(); ga(‘send’, ‘event’, ‘Video Player’, ‘Second Ad Play’, { nonInteraction: true }); // console.log(‘video: replay’); hasReplayed = true; isOnScreen = true; //modalstate = “locked”; //console.log(‘default video fucntion’); } modal.classList.remove(‘full-video-small’); } } function closeModal(container) { if (amp.container) { document.querySelector(“.full-video”).classList.add(‘force-closed’); // if there is an ad pod running, we make sure to terminate it as well as subsequence mid-post ad breaks if (amp.ads.inProgress) { amp.ads.terminateAllAds(); amp.once(“canplaythrough”, function(){ amp.end() }); } else { amp.end(); } //if (amp.ads.inProgress === true) { //amp.ads.terminateAllAds(); //} //setTimeout(function(){ amp.end(); }, 100); console.log(‘video: end’); //amp.replay(); //amp.pause(); document.querySelector(container).classList.remove(‘full-video-small’); modalState = “unlocked”; modalClosed = true; ga(‘send’, ‘event’, ‘Video Player’, ‘Close Modal’, { nonInteraction: true }); } } function messageHandler(event) { // only explicitly allow our cross-domain messages to iframe // the message to the iframe is located in editorial.aspx sendMessage fn playerLogger(“event.origin: “, event.origin); if (event.origin === “https://www.bowhunter.com” || event.origin === “https://www.hunterstruth.com” || event.origin === “https://www.firearmsnews.com” || event.origin === “https://www.floridasportsman.com” || event.origin === “https://www.flyfisherman.com” || event.origin === “https://www.gameandfishmag.com” || event.origin === “https://www.gundogmag.com” || event.origin === “https://www.gunsandammo.com” || event.origin === “https://www.handgunsmag.com” || event.origin === “https://www.in-fisherman.com” || event.origin === “https://www.northamericanwhitetail.com” || event.origin === “https://www.outdoorchannel.com” || event.origin === “https://www.bowhuntingmag.com” || event.origin === “https://www.petersenshunting.com” || event.origin === “https://www.rifleshootermag.com” || event.origin === “https://www.shootingtimes.com” || event.origin === “https://www.thesportsmanchannel.com” || event.origin === “https://www.wildfowlmag.com” || event.origin === “https://www.worldfishingnetwork.com” || event.origin === “https://wcistage.gameandfishmag.com” || event.origin === “http://video-dev.osgnetwork.com” || event.origin === “https://localhost:61645”) { triggerFunctionality(event.data); } else { return; } } function triggerFunctionality(eventType) { switch (eventType) { case ‘pause’: amp.pause(); break; default: break } } } ]]>



Source