');if (Modernizr && !Modernizr.phone) {$owlFirstItem.find('.media__icon').hide();}}CNN.Videx.Metadata.init({dateCreated: videocardContents.dateCreated,descriptionText: videocardContents.descriptionText,duration: videocardContents.duration,sourceLink: videocardContents.sourceLink,sourceName: videocardContents.sourceName,title: videocardContents.headlineText},{videoCollectionDivId: 'cn-1gt801b',videoDescriptionDivId: 'js-video_description-1gt801b',videoDurationDivId: 'js-video_duration-1gt801b',videoTitleDivId: 'js-leaf-video_headline-1gt801b'});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = '' + videocardContents.showName + ' | ';} else {showDetailsSpanContent = videocardContents.showName + ' | ';}}fastdom.measure(function getShowInfo() {var $show = jQuery('.metadata__show'),$isShowDetailsSpanExists = $show.find('span').hasClass('metadata--show__name'),$showName = jQuery('.metadata--show__name');fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend('' + showDetailsSpanContent + '');} else {$showName.html(showDetailsSpanContent);}});});if (typeof (history) !== 'undefined' && typeof (history.replaceState) !== 'undefined') {history.replaceState('', '', videocardContents.url);document.title = videocardContents.headlineText ? decodeURI(videocardContents.headlineText) : '';}}function getCurrentVideoCardContents(currentVideoId) {var containerContents = [{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["A far cry from Valtteri Bottas' home in Monaco, Amanda Davies explores Bottas' childhood roots in Finland."],"descriptionPlainText":"A far cry from Valtteri Bottas' home in Monaco, Amanda Davies explores Bottas' childhood roots in Finland.","headlinePostText":"","headlinePreText":"","headlineText":"Ice fishing with the Flying Finn","headlinePlainText":"Ice fishing with the Flying Finn","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit valtteri bottas_00015410.jpg","imageAlt":"spc the circuit valtteri bottas_00015410","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092025-spc-the-circuit-valtteri-bottas-00015410-small-11.jpg"}},"responsiveImage":true},"duration":"4:11"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/22/spc-the-circuit-valtteri-bottas.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/22/spc-the-circuit-valtteri-bottas.cnn/index.xml","videoId":"sports/2016/04/22/spc-the-circuit-valtteri-bottas.cnn","dateCreated":"4:15 AM ET, Fri April 22, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"},{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["Force India's Nico Hulkenberg aka 'The Hulk' reveals what it takes to reach a 100 races in Formula One."],"descriptionPlainText":"Force India's Nico Hulkenberg aka 'The Hulk' reveals what it takes to reach a 100 races in Formula One.","headlinePostText":"","headlinePreText":"","headlineText":"\"The Hulk\" reaches 100 Grands Prix","headlinePlainText":"\"The Hulk\" reaches 100 Grands Prix","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit nico hulkenberg_00004530.jpg","imageAlt":"spc the circuit nico hulkenberg_00004530","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092651-spc-the-circuit-nico-hulkenberg-00004530-small-11.jpg"}},"responsiveImage":true},"duration":"2:48"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/22/spc-the-circuit-nico-hulkenberg.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/22/spc-the-circuit-nico-hulkenberg.cnn/index.xml","videoId":"sports/2016/04/22/spc-the-circuit-nico-hulkenberg.cnn","dateCreated":"4:21 AM ET, Fri April 22, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"},{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["Amanda Davies gets a guided tour of the track from race promoter Sergey Vorobyov."],"descriptionPlainText":"Amanda Davies gets a guided tour of the track from race promoter Sergey Vorobyov.","headlinePostText":"","headlinePreText":"","headlineText":"Sochi's Olympic Park circuit","headlinePlainText":"Sochi's Olympic Park circuit","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit sochi track tour_00000405.jpg","imageAlt":"spc the circuit sochi track tour_00000405","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092404-spc-the-circuit-sochi-track-tour-00000405-small-11.jpg"}},"responsiveImage":true},"duration":"5:06"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/22/spc-the-circuit-sochi-track-tour.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/22/spc-the-circuit-sochi-track-tour.cnn/index.xml","videoId":"sports/2016/04/22/spc-the-circuit-sochi-track-tour.cnn","dateCreated":"4:20 AM ET, Fri April 22, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"},{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["Red Bull's Russian driver Daniil Kvyat talks us through his race preparations ahead of starting his home grand prix."],"descriptionPlainText":"Red Bull's Russian driver Daniil Kvyat talks us through his race preparations ahead of starting his home grand prix.","headlinePostText":"","headlinePreText":"","headlineText":"Russia's Kvyat's ready for Sochi","headlinePlainText":"Russia's Kvyat's ready for Sochi","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit daniil kvyat_00010722.jpg","imageAlt":"spc the circuit daniil kvyat_00010722","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092752-spc-the-circuit-daniil-kvyat-00010722-small-11.jpg"}},"responsiveImage":true},"duration":"2:39"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/22/spc-the-circuit-daniil-kvyat.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/22/spc-the-circuit-daniil-kvyat.cnn/index.xml","videoId":"sports/2016/04/22/spc-the-circuit-daniil-kvyat.cnn","dateCreated":"4:23 AM ET, Fri April 22, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"},{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["Ahead of its third grand prix, The Circuit explores the numbers behind the Russian Grand Prix and whether the huge investment is paying off."],"descriptionPlainText":"Ahead of its third grand prix, The Circuit explores the numbers behind the Russian Grand Prix and whether the huge investment is paying off.","headlinePostText":"","headlinePreText":"","headlineText":"Sochi By Numbers","headlinePlainText":"Sochi By Numbers","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit sochi by numbers_00000720.jpg","imageAlt":"spc the circuit sochi by numbers_00000720","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160422092043-spc-the-circuit-sochi-by-numbers-00000720-small-11.jpg"}},"responsiveImage":true},"duration":"2:06"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/22/spc-the-circuit-sochi-by-numbers.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/22/spc-the-circuit-sochi-by-numbers.cnn/index.xml","videoId":"sports/2016/04/22/spc-the-circuit-sochi-by-numbers.cnn","dateCreated":"4:18 AM ET, Fri April 22, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"},{"branding":"","cardContents":{"auxiliaryText":"","bannerText":"","bannerPosition":"","brandingLink":"","brandingImageUrl":"","brandingTextHead":"","brandingTextSub":"","cardSectionName":"video","contentType":"","cta":"share","descriptionText":["Incredible drone shots from The Circuit's filming with Valtteri Bottas in his childhood home of Nastola, Finland."],"descriptionPlainText":"Incredible drone shots from The Circuit's filming with Valtteri Bottas in his childhood home of Nastola, Finland.","headlinePostText":"","headlinePreText":"","headlineText":"Amazing views of Valtteri Bottas' childhood home","headlinePlainText":"Amazing views of Valtteri Bottas' childhood home","iconImageUrl":"","iconType":"video","isMobileBannerText":false,"kickerText":"","media":{"contentType":"image","type":"element","cutFormat":"16:9","elementContents":{"caption":"spc the circuit valtteri bottas finland_00000000.jpg","imageAlt":"spc the circuit valtteri bottas finland_00000000","imageUrl":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-large-169.jpg","label":"","galleryTitle":"","head":"","cuts":{"mini":{"height":124,"width":220,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-super-169.jpg"},"full16x9":{"height":900,"width":1600,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri":"http://i2.cdn.turner.com/cnnnext/dam/assets/160420153742-spc-the-circuit-valtteri-bottas-finland-00000000-small-11.jpg"}},"responsiveImage":true},"duration":"0:34"},"overMediaText":"","sectionUri":"","showSocialSharebar":false,"shortUrl":"","statusText":"","statusColor":"","targetType":"","timestampDisplay":"","timestampUtc":"","lastModifiedText":"","lastModifiedState":"","type":"card","url":"/videos/sports/2016/04/20/spc-the-circuit-valtteri-bottas-finland.cnn/video/playlists/bottas-f1-collection/","width":"","height":"","videoCMSUri":"/video/data/3.0/video/sports/2016/04/20/spc-the-circuit-valtteri-bottas-finland.cnn/index.xml","videoId":"sports/2016/04/20/spc-the-circuit-valtteri-bottas-finland.cnn","dateCreated":"10:33 AM ET, Wed April 20, 2016","sourceName":"CNN","sourceLink":"","videoCollectionUrl":"/video/playlists/bottas-f1-collection/"},"contentType":"video","maximizedBanner":false,"type":"card"}],cardContents;for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {nextPlay = currentVideoCollection[getNextVideoIndex(currentVideoId)].videoId;if (nextPlay === undefined || nextPlay === null) {nextPlay = currentVideoCollection[0].videoId;}moveToNextTimeout = setTimeout(function () {CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, nextPlay, {videoCollection: currentVideoCollection});}, nextVideoPlayTimeout);}}var decorateVideoApi = function(){/* if this happens before the video API loads it gets deleted. */CNN.VideoPlayer.showSpinner = function showSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById(('spinner_' + containerId).replace('#', ''))).show();}};CNN.VideoPlayer.hideSpinner = function hideSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById(('spinner_' + containerId).replace('#', ''))).hide();}};CNN.VideoPlayer.hideThumbnail = function hideThumbnail(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById(containerId + '--thumbnail')).hide();}};};callbackObj = {onPlayerReady: function (containerId) {CNN.INJECTOR.getNameSpaceFeature('CNN.VideoPlayer.showSpinner').fail(decorateVideoApi);var containerClassId;CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {containerClassId = '#' + containerId;if (jQuery(containerClassId).parents('.js-pg-rail-tall__head').length > 0) {videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.setIsVideoCollection(true);videoPinner.init();} else {CNN.VideoPlayer.hideThumbnail(containerId);}}},onContentEntryLoad: function(containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner(containerId);},onAdPlay: function (containerId, cvpId, token, mode, id, duration, blockId, adType) {clearTimeout(moveToNextTimeout);if (Array.isArray(window._vrq)) {window._vrq.push(['video', 'adroll', configObj.video]);}if (blockId === 0) {(new Image()).src = "http://traffic.outbrain.com/network/trackpxl?advid=814&action=view";}CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== 'undefined' && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onAdEnd: function (containerId, cvpId, token, mode, id, blockId, adType) {/* Add VisualRevenue event on video ad stop */if (Array.isArray(window._vrq)) {window._vrq.push(['video', 'adstop', configObj.video]);}},onContentPlay: function (containerId, cvpId, contentId) {/** When the video content starts playing, the companion ad* layout (if it was set when the ad played) should switch* back to epic ad layout. onContentPlay calls updateCompanionLayout* with 'restoreEpicAds' layout to make this switch and removes FW* with 'removeFreewheel' so you don't see double ads. If a user* clicks another video midway, onContentBegin will add FW back*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout('removeFreewheel');CNN.companion.updateCompanionLayout('restoreEpicAds');}clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);/* Add VisualRevenue event on video start */if (Array.isArray(window._vrq)) {window._vrq.push(['video', 'play', configObj.video]);}var idx,cvp = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null,prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || '';if (cvp && typeof cvp.reportAnalytics === 'function') {if (prevVideoId.length === 0 && document.referrer && document.referrer.search(/\/videos\//) >= 0) {prevVideoId = document.referrer.replace(/^(?:http|https)\:\/\/[^\/]\/videos\/(.+\.\w+)(?:\/video\/playlists\/.*)?$/, '/video/$1');if (prevVideoId === document.referrer) {prevVideoId = '';}}if (jQuery.isArray(currentVideoCollection) && currentVideoCollection.length > 0) {idx = getNextVideoIndex(contentId);nextVideoId = currentVideoCollection[idx].videoId;nextVideoUrl = currentVideoCollection[idx].videoUrl;currentVideoCollectionId = (window.jsmd && window.jsmd.v && window.jsmd.v.eVar60) || nextVideoUrl.replace(/^.+\/video\/playlists\/(.+)\//, '$1');}cvp.reportAnalytics('videoPageData', {videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: '',referrerUrl: document.referrer});}if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== 'undefined' && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onContentReplayRequest: function (containerId, cvpId, contentId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== 'undefined' && videoPinner !== null) {videoPinner.setIsPlaying(true);var $endSlate = jQuery(document.getElementById(containerId)).parent().find('.js-video__end-slate').eq(0);if ($endSlate.length > 0) {$endSlate.removeClass('video__end-slate--active').addClass('video__end-slate--inactive');}}}},onContentMetadata: function (containerId, playerId, metadata, contentId, duration, width, height) {if (typeof metadata === 'string' && metadata.length > 0) {try {CNN.Videx.EmbedButton.updateCode(JSON.parse(metadata));} catch (e) {console.log('Invalid video metadata JSON.');}}},onContentBegin: function (containerId, cvpId, contentId) {/** Before the video ad starts, the freewheel companion ad* html needs to be placed on the page so that it can be* triggered by Freewheel to display the companion ad.* onContentBegin triggers updateCompanionLayout which* handles the logic to switch from epic to companion ads*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout('removeEpicAds');CNN.companion.updateCompanionLayout('restoreFreewheel');}clearTimeout(moveToNextTimeout);updateCurrentlyPlaying(contentId);},onContentComplete: function (containerId, cvpId, contentId) {navigateToNextVideo(contentId);},onContentEnd: function (containerId, cvpId, contentId) {/* Add VisualRevenue event on video end */if (Array.isArray(window._vrq)) {window._vrq.push(['video', 'stop', configObj.video]);}/** When the video content ends playing, remove the epic ad* and prepare the freewheel companion ad for the next video*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout('removeEpicAds');CNN.companion.updateCompanionLayout('restoreFreewheel');}navigateToNextVideo(contentId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== 'undefined' && videoPinner !== null) {videoPinner.setIsPlaying(false);}}},onCVPVisibilityChange: function (containerId, cvpId, visible) {CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, visible);}};if (typeof configObj.context !== 'string' || configObj.context.length
Thank you for reading article Ice fishing with the Flying Finn
No comments:
Post a Comment