The Abu Dhabi Grand Prix: F1 season ender

3 Dec by admin

The Abu Dhabi Grand Prix: F1 season ender

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn’,width: ‘100%’,height: ‘100%’,section: ‘international’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘edition.cnn.com_worldsport_motorsport_t1’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Amanda Davies heads to Abu Dhabi to hear from five-time Formula One champ Lewis Hamilton, Ferrari team boss Maurizio Arrivabene and Charles Leclerc.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/181203152319-abu-dhabi-grand-prix-large-169.jpg”,”title”:”The Abu Dhabi Grand Prix: F1 season ender”,”videoCMSUrl”:”/videos/sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn”,”videoLeafUrl”:”/videos/sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn”,”videoId”:”sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn”,”videoUrl”:”/videos/sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn”},{“descriptionPlainText”:”The Mexico GP’s circuit’s name comes from two brothers who never became world champion, as Formula 1 journalist and historian Maurice Hamilton tells us…”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/181026100728-rodriguez-brothers-mexico-gp-large-169.jpg”,”title”:”The tragic history of the Mexico Grand Prix”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/10/26/mexico-grand-prix-tragic-history-hermanos-rodriguez-f1-the-circuit-vision-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/10/26/mexico-grand-prix-tragic-history-hermanos-rodriguez-f1-the-circuit-vision-spt-intl.cnn”,”videoId”:”sports/2018/10/26/mexico-grand-prix-tragic-history-hermanos-rodriguez-f1-the-circuit-vision-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/10/26/mexico-grand-prix-tragic-history-hermanos-rodriguez-f1-the-circuit-vision-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Two-time Formula One champion Fernando Alonso is driving in his last year of F1, so this Japanese Grand Prix is one of the most special.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/181012113217-fernando-alonso-large-169.jpg”,”title”:”Fernando Alonso’s last Japanese Grand Prix”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/10/12/fernando-alonso-last-season-f1-suzuka-japan-grand-prix-circuit-vision-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/10/12/fernando-alonso-last-season-f1-suzuka-japan-grand-prix-circuit-vision-spt-intl.cnn”,”videoId”:”sports/2018/10/12/fernando-alonso-last-season-f1-suzuka-japan-grand-prix-circuit-vision-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/10/12/fernando-alonso-last-season-f1-suzuka-japan-grand-prix-circuit-vision-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Haas driver Romain Grosjean tries his hand at the traditional Japanese martial art of Kendo with Amanda Davies ahead of the Japanese Grand Prix.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/181005152347-romain-grosjean-japan-grand-prix-formula-one-f1-kendo-circuit-vision-spt-intl-00002322-large-169.jpg”,”title”:”Romain Grosjean tries his hand at kendo”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/10/05/romain-grosjean-japan-grand-prix-formula-one-f1-kendo-circuit-vision-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/10/05/romain-grosjean-japan-grand-prix-formula-one-f1-kendo-circuit-vision-spt-intl.cnn”,”videoId”:”sports/2018/10/05/romain-grosjean-japan-grand-prix-formula-one-f1-kendo-circuit-vision-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/10/05/romain-grosjean-japan-grand-prix-formula-one-f1-kendo-circuit-vision-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Renault’s Nico Hulkenberg reflects on the spectacular crash at Spa that sent Fernando Alonso’s McLaren flying over the head of Sauber’s Charles Leclerc.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180831095320-hulkenberg-large-169.jpg”,”title”:”Hulkenberg: ‘I didn’t feel I was reckless'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/31/nico-hulkenberg-the-circuit-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/31/nico-hulkenberg-the-circuit-spt-intl.cnn”,”videoId”:”sports/2018/08/31/nico-hulkenberg-the-circuit-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/31/nico-hulkenberg-the-circuit-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Chloe Targett-Adams is F1’s Global Director of Promoters and Business Relations and is responsible for the promotion of the sport around the world.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180828161237-chloe-targett-adams-formula-one-f1-promotions-women-in-motorsport-circuit-vision-spt-intl-00004530-large-169.jpg”,”title”:”The woman leading the global promotion of F1″,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/28/chloe-targett-adams-formula-one-f1-promotions-women-in-motorsport-circuit-vision-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/28/chloe-targett-adams-formula-one-f1-promotions-women-in-motorsport-circuit-vision-spt-intl.cnn”,”videoId”:”sports/2018/08/28/chloe-targett-adams-formula-one-f1-promotions-women-in-motorsport-circuit-vision-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/28/chloe-targett-adams-formula-one-f1-promotions-women-in-motorsport-circuit-vision-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Nathalie McGloin, President of the FIA Disability and Accessibility Commission, is working to promote women in motorsport from the grassroots level.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180820160832-nathalie-mcgloin-tease-large-169.jpg”,”title”:”Nathalie McGloin: Racing fast with disability”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/20/nathalie-mcgloin-disability-women-in-motorsport-fia-circuit-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/20/nathalie-mcgloin-disability-women-in-motorsport-fia-circuit-spt-intl.cnn”,”videoId”:”sports/2018/08/20/nathalie-mcgloin-disability-women-in-motorsport-fia-circuit-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/20/nathalie-mcgloin-disability-women-in-motorsport-fia-circuit-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”With interest mounting from Renault and a long-term contract with Mercedes, it has been an astronomic rise for Force India driver Esteban Ocon.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180621162521-esteban-ocon-f1-large-169.jpg”,”title”:”Hungarian GP: Esteban Ocon is the future”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/27/esteban-ocon-force-india-renault-formula-one-f1-hungarian-grand-prix-circuit-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/27/esteban-ocon-force-india-renault-formula-one-f1-hungarian-grand-prix-circuit-spt-intl.cnn”,”videoId”:”sports/2018/07/27/esteban-ocon-force-india-renault-formula-one-f1-hungarian-grand-prix-circuit-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/27/esteban-ocon-force-india-renault-formula-one-f1-hungarian-grand-prix-circuit-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Former McLaren and Red Bull driver David Coulthard looks back through the history books to find his top five most iconic Silverstone moments.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180705110537-coulthard-silverstone-1999-large-169.jpg”,”title”:”Silverstone’s most iconic races”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/05/david-coulthard-silverstone-most-iconic-races-formula-one-f1-circuit-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/05/david-coulthard-silverstone-most-iconic-races-formula-one-f1-circuit-spt-intl.cnn”,”videoId”:”sports/2018/07/05/david-coulthard-silverstone-most-iconic-races-formula-one-f1-circuit-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/05/david-coulthard-silverstone-most-iconic-races-formula-one-f1-circuit-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Tatiana Calderon was appointed as Sauber’s test driver in 2018. CNN’s Amanda Davies asks: is the next step becoming the first female F1 driver in 40 years?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160309121917-cnnee-pkg-tatiana-calderon-piloto-de-formula-1-00002117-large-169.jpg”,”title”:”Tatiana Calderon: The next female F1 driver?”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/06/29/tatiana-calderon-formula-one-f1-sauber-austrian-grand-prix-circuit-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/06/29/tatiana-calderon-formula-one-f1-sauber-austrian-grand-prix-circuit-spt-intl.cnn”,”videoId”:”sports/2018/06/29/tatiana-calderon-formula-one-f1-sauber-austrian-grand-prix-circuit-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/06/29/tatiana-calderon-formula-one-f1-sauber-austrian-grand-prix-circuit-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Ahead of the Azerbaijan Grand Prix in Baku, Amanda Davies asks F1 drivers – including Lewis Hamilton and Fernando Alonso – about their dream circuits.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180427101714-fernando-alonso-dream-circuit-large-169.jpg”,”title”:”Formula One drivers’ dream circuits”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/04/27/formula-one-driver-dream-circuits-f1-fernando-alonso-lewis-hamilton-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/04/27/formula-one-driver-dream-circuits-f1-fernando-alonso-lewis-hamilton-spt-intl.cnn”,”videoId”:”sports/2018/04/27/formula-one-driver-dream-circuits-f1-fernando-alonso-lewis-hamilton-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/04/27/formula-one-driver-dream-circuits-f1-fernando-alonso-lewis-hamilton-spt-intl.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Take a hot lap with Amanda Davies around the same Formula One circuit in Shanghai where Daniel Ricciardo won a thrilling Chinese Grand Prix.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180420140602-hot-lap-shanghai-large-169.jpg”,”title”:”Hot lap around the Shanghai GP circuit”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/04/20/shanghai-hot-lap-chinese-grand-prix-formula-one-f1-circuit-amanda-davies-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/04/20/shanghai-hot-lap-chinese-grand-prix-formula-one-f1-circuit-amanda-davies-spt.cnn”,”videoId”:”sports/2018/04/20/shanghai-hot-lap-chinese-grand-prix-formula-one-f1-circuit-amanda-davies-spt.cnn”,”videoUrl”:”/videos/sports/2018/04/20/shanghai-hot-lap-chinese-grand-prix-formula-one-f1-circuit-amanda-davies-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”An emotional Daniel Ricciardo reflects on his victory in the Chinese Grand Prix and his pride in Red Bull’s team effort.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180415042424-ricciardo-wins-large-169.jpg”,”title”:”Daniel Ricciardo delights in Chinese GP win”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/04/15/daniel-ricciardo-chinese-grand-prix-formula-one-interview-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/04/15/daniel-ricciardo-chinese-grand-prix-formula-one-interview-spt.cnn”,”videoId”:”sports/2018/04/15/daniel-ricciardo-chinese-grand-prix-formula-one-interview-spt.cnn”,”videoUrl”:”/videos/sports/2018/04/15/daniel-ricciardo-chinese-grand-prix-formula-one-interview-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Four-time F1 champion Lewis Hamilton tells CNN that he’s not worried at all about his season prospects but that Shanghai is a must-win race for Mercedes.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180413104055-lewis-hamilton-shanghai-preview-large-169.jpg”,”title”:”Lewis Hamilton: Shanghai is a must-win race”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/04/13/lewis-hamilton-chinese-grand-prix-shanghai-formula-one-f1-mercedes-interview-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/04/13/lewis-hamilton-chinese-grand-prix-shanghai-formula-one-f1-mercedes-interview-spt.cnn”,”videoId”:”sports/2018/04/13/lewis-hamilton-chinese-grand-prix-shanghai-formula-one-f1-mercedes-interview-spt.cnn”,”videoUrl”:”/videos/sports/2018/04/13/lewis-hamilton-chinese-grand-prix-shanghai-formula-one-f1-mercedes-interview-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Grid girls had a long history with Formula One, so when new ownership banned them from the incoming season, reaction was mixed. Here’s their story.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180319143101-grid-girls-7-large-169.jpg”,”title”:”The history of grid girls: Will F1 miss them?”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/03/22/grid-girls-history-formula-one-f1-circuit-spc-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/03/22/grid-girls-history-formula-one-f1-circuit-spc-spt.cnn”,”videoId”:”sports/2018/03/22/grid-girls-history-formula-one-f1-circuit-spc-spt.cnn”,”videoUrl”:”/videos/sports/2018/03/22/grid-girls-history-formula-one-f1-circuit-spc-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Mercedes AMG Petronas boss Toto Wolff talks to Amanda Davies ahead of the Melbourne Grand Prix about the upcoming F1 season for Mercedes.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180312095423-mercedes-f1-team-hamilton-bottas-2018-season-car-large-169.jpg”,”title”:”Mercedes boss Toto Wolff on the 2018 F1 season”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/03/16/toto-wolff-mercedes-boss-formula-one-f1-season-2018-the-circuit-spc-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/03/16/toto-wolff-mercedes-boss-formula-one-f1-season-2018-the-circuit-spc-spt.cnn”,”videoId”:”sports/2018/03/16/toto-wolff-mercedes-boss-formula-one-f1-season-2018-the-circuit-spc-spt.cnn”,”videoUrl”:”/videos/sports/2018/03/16/toto-wolff-mercedes-boss-formula-one-f1-season-2018-the-circuit-spc-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Red Bull Racing’s Daniel Ricciardo takes a ride in a Formula One simulator to show you the Melbourne Grand Prix’s track.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180314173851-ricciardo-simulator-tease-large-169.jpg”,”title”:”Daniel Ricciardo on the 2018 Melbourne GP”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/03/14/daniel-ricciardo-red-bull-racing-formula-one-f1-intv-spc-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/03/14/daniel-ricciardo-red-bull-racing-formula-one-f1-intv-spc-spt.cnn”,”videoId”:”sports/2018/03/14/daniel-ricciardo-red-bull-racing-formula-one-f1-intv-spc-spt.cnn”,”videoUrl”:”/videos/sports/2018/03/14/daniel-ricciardo-red-bull-racing-formula-one-f1-intv-spc-spt.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Sauber F1 teammates Marcus Ericsson and Pascal Wehrlein know about fast rides. But what were the first cars they ever drove before the the F1 hot seat?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170912172823-sauber-f1-team-first-car-tease-large-169.jpg”,”title”:”My first car: Team Sauber”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/12/sauber-f1-team-my-first-car-pascal-wehrlein-marcus-ericsson-formula-one-circuit-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2017/09/12/sauber-f1-team-my-first-car-pascal-wehrlein-marcus-ericsson-formula-one-circuit-orig.cnn”,”videoId”:”sports/2017/09/12/sauber-f1-team-my-first-car-pascal-wehrlein-marcus-ericsson-formula-one-circuit-orig.cnn”,”videoUrl”:”/videos/sports/2017/09/12/sauber-f1-team-my-first-car-pascal-wehrlein-marcus-ericsson-formula-one-circuit-orig.cnn/video/playlists/the-circuit/”},{“descriptionPlainText”:”Technical journalist Giorgio Piola has drawn many F1 cars in his career, but only five designs have been both beautiful and truly groundbreaking.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171115155840-lotus-72d-tease-image-for-video-large-169.jpg”,”title”:”The top five all-time F1 car designs”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/11/15/giorgio-piola-top-five-cars-technical-journalist-formula-one-f1-design-circuit-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2017/11/15/giorgio-piola-top-five-cars-technical-journalist-formula-one-f1-design-circuit-orig.cnn”,”videoId”:”sports/2017/11/15/giorgio-piola-top-five-cars-technical-journalist-formula-one-f1-design-circuit-orig.cnn”,”videoUrl”:”/videos/sports/2017/11/15/giorgio-piola-top-five-cars-technical-journalist-formula-one-f1-design-circuit-orig.cnn/video/playlists/the-circuit/”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,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 = CNN.Features.enableAutoplayBlock ? false : autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {autostart: false,muteOverlayClicked: true,videoCollection: this.videoCollection},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);thumbImageElem = jQuery(articleElem).find(‘.media__image’);videoId = articleElem.data().videoId;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(configObj.markupId);if (CNN.Utils.existsObject(playerInstance) &&typeof playerInstance.getVideoData === ‘function’ &&playerInstance.getVideoData().id !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {if (!videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem !== ‘undefined’ && thumbImageElem !== null) {thumbImageLargeSource = thumbImageElem.data() && thumbImageElem.data().srcLarge ? thumbImageElem.data().srcLarge : ‘none’;}overrides.thumb = thumbImageLargeSource ? thumbImageLargeSource : ‘none’;shouldStartVideo = true;}if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.cn__column.carousel__content__item’, onVideoCarouselItemClicked);}}if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘videoLoader’) {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers ? window.CNNVideoAPILoadCompleteHandlers : [];window.CNNVideoAPILoadCompleteHandlers.push(initialize);window.CNNVideoAPILoadCompleteHandlers.push(setInitialVideoEmbed);} else {initialize();}CNN.INJECTOR.executeFeature(‘videx’).done(function () {var initMeta = {id:”sports/2018/12/03/lewis-hamilton-abu-dhabi-grand-prix-2018-season-ender-formula-one-f1-circuit-spt-intl-vision.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function updateCurrentlyPlaying(videoId) {var videoCollectionId = ‘current_video_collection’,videocardContents = getCurrentVideoCardContents(videoId),carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),domain = CNN.Host.domain || (document.location.protocol + ‘//’ + document.location.hostname),owl,$owlFirstItem,$owlPrevItem,showDetailsSpanContent = ”,gigyaShareElement,showIndex,whatsappShareElement,$carouselContentItems = jQuery(‘.carousel__content__item’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof gigyaShareElement !== ‘undefined’ && CNN.Utils.existsObject(videocardContents)) {jQuery(gigyaShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(gigyaShareElement).attr(‘data-description’, videocardContents.descriptionPlainText || ”);jQuery(gigyaShareElement).attr(‘data-link’, domain + videocardContents.url || ”);jQuery(gigyaShareElement).attr(‘data-image-src’, (videocardContents.media && videocardContents.media.elementContents && videocardContents.media.elementContents.imageUrl) || ”);}whatsappShareElement = jQuery(‘div.share-bar-whatsapp-container’);if (typeof whatsappShareElement !== ‘undefined’) {jQuery(whatsappShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(whatsappShareElement).attr(‘data-storyurl’, domain + videocardContents.url || ”);}if (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.data(‘owl.carousel’) || {};showIndex = getCurrentVideoIndex(videoId);if (typeof owl.to === ‘function’) {owl.to(showIndex);}$owlPrevItem = CNN.Utils.exists(owl.$element) ? owl.$element.find(‘.cd.cd–active’) : $carouselContentItems.find(‘.cd.cd–active’);$owlPrevItem.removeClass(‘cd–active’);$owlPrevItem.find(‘.media__over-text’).remove();$owlPrevItem.find(‘.media__icon’).show();$owlFirstItem = CNN.Utils.exists(owl._items) ? jQuery(owl._items[showIndex]) : $carouselContentItems.eq(showIndex);$owlFirstItem.find(‘.cd’).addClass(‘cd–active’);$owlFirstItem.find(‘.media a:first-child’).append(‘

Now Playing

‘);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-1g48dge’,videoDescriptionDivId: ‘js-video_description-1g48dge’,videoDurationDivId: ‘js-video_duration-1g48dge’,videoTitleDivId: ‘js-leaf-video_headline-1g48dge’,videoSourceDivId: ‘js-video_sourceName-1g48dge’});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(‘

Source link

Facebook Comments