‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-article-carousel-pagetop’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“title”:”Mountain biking on Europe’s ‘sunny coast'”,”duration”:”01:24″,”sourceName”:”CNN”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn/index.xml”,”videoId”:”sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-large-169.jpg”,”videoUrl”:”/videos/sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn/video/playlists/cycling/”,”descriptionText”:”A 165-kilometer race over three days with 4,700 meters of uphill climbing. What else could it be? It’s the Algarve Bike Challenge.”},{“title”:”Tour of Oman: cycling by the deserts and sea”,”duration”:”01:41″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn/index.xml”,”videoId”:”sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170220145730-tour-oman-large-169.jpg”,”videoUrl”:”/videos/sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn/video/playlists/cycling/”,”descriptionText”:”The 6-stage Tour of Oman is part of the UCI Asia Tour and helps riders prep for the major tours. Chris Froome and Vincenzo Nibali have both won the race.”},{“title”:”LifeCycle: behind-the-scenes with Lampre-Merida”,”duration”:”03:01″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn/index.xml”,”videoId”:”sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/160916165639-spc-lifecycle-lampre-merida-cycling-00015523-large-169.jpg”,”videoUrl”:”/videos/sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn/video/playlists/cycling/”,”descriptionText”:”CNN follows the cycling team Lampre Merida as they compete in the Coppa Bernocchi race ahead of their first appearance at the Hong Kong Cyclothon”},{“title”:”Breathtaking beauty seen from two wheels”,”duration”:”02:49″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn/index.xml”,”videoId”:”sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/160923052605-hong-kong-life-cycle-tour-natpkg-00020911-large-169.jpg”,”videoUrl”:”/videos/sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn/video/playlists/cycling/”,”descriptionText”:”Hong Kong cycling enthusiasts Louis Shih and William Hui take CNN’s World Sport on a bike tour of Hong Kong.”}],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) {autoStartVideo = true;if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false;containerEl = jQuery(document.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl);} else {CNN.autoPlayVideoExist = true;}}}configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var videoHandler = {},isFeaturedVideoCollectionHandlerAvailable = (CNN !== undefined &&CNN.VIDEOCLIENT !== undefined &&CNN.VIDEOCLIENT.FeaturedVideoCollectionHandler !== undefined);if (!isFeaturedVideoCollectionHandlerAvailable) {/* ajax is used over getScript since getScript does not cache the responses. */CNN.INJECTOR.executeFeature(‘videx’).done(function () {jQuery.ajax({dataType: ‘script’,cache: true,url: ‘//www.i.cdn.cnn.com/.a/2.10.0/js/featured-video-collection-player.min.js’}).done(function () {initializeVideoAndCollection();}).fail(function () {throw ‘Unable to fetch /js/featured-video-collection-player.min.js’;});}).fail(function () {throw ‘Unable to fetch the videx bundle’;});}function initializeVideoAndCollection() {videoHandler = new CNN.VIDEOCLIENT.FeaturedVideoCollectionHandler(configObj.markupId,”cn-featured-2801jbo”,’js-video_description-featured-2801jbo’,[{“title”:”Mountain biking on Europe’s ‘sunny coast'”,”duration”:”01:24″,”sourceName”:”CNN”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn/index.xml”,”videoId”:”sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170310165057-algarve-cycle-race-tease-large-169.jpg”,”videoUrl”:”/videos/sports/2017/03/10/mountain-bike-algarve-challenge-uci-cycling-orig.cnn/video/playlists/cycling/”,”descriptionText”:”A 165-kilometer race over three days with 4,700 meters of uphill climbing. What else could it be? It’s the Algarve Bike Challenge.”},{“title”:”Tour of Oman: cycling by the deserts and sea”,”duration”:”01:41″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn/index.xml”,”videoId”:”sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170220145730-tour-oman-large-169.jpg”,”videoUrl”:”/videos/sports/2017/02/20/tour-of-oman-uci-asia-tour-cycling-ben-hermans-chris-froome-vincenzo-nibali-aso-orig.cnn/video/playlists/cycling/”,”descriptionText”:”The 6-stage Tour of Oman is part of the UCI Asia Tour and helps riders prep for the major tours. Chris Froome and Vincenzo Nibali have both won the race.”},{“title”:”LifeCycle: behind-the-scenes with Lampre-Merida”,”duration”:”03:01″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn/index.xml”,”videoId”:”sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/160916165639-spc-lifecycle-lampre-merida-cycling-00015523-large-169.jpg”,”videoUrl”:”/videos/sports/2016/09/16/spc-lifecycle-lampre-merida-cycling.cnn/video/playlists/cycling/”,”descriptionText”:”CNN follows the cycling team Lampre Merida as they compete in the Coppa Bernocchi race ahead of their first appearance at the Hong Kong Cyclothon”},{“title”:”Breathtaking beauty seen from two wheels”,”duration”:”02:49″,”sourceName”:”CNN”,”sourceLink”:””,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn/index.xml”,”videoId”:”sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn”,”videoImage”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/160923052605-hong-kong-life-cycle-tour-natpkg-00020911-large-169.jpg”,”videoUrl”:”/videos/sports/2016/09/23/hong-kong-life-cycle-tour-natpkg.cnn/video/playlists/cycling/”,”descriptionText”:”Hong Kong cycling enthusiasts Louis Shih and William Hui take CNN’s World Sport on a bike tour of Hong Kong.”}],’js-video_headline-featured-2801jbo’,”,”js-video_source-featured-2801jbo”,true,true,’cycling’);if (typeof configObj.context !== ‘string’ || configObj.context.length

Source link