Nadal hit by injury at Paris Masters

0
23



‘);$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/11/04/rolex-sponsorship-paris-masters.cnn’,width: ‘100%’,height: ‘100%’,section: ‘international’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘edition.cnn.com_specialreports_rolexminute_t1’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Martin del Potro and Marin Cilic exit the Paris Masters.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171031113201-getty-rafael-nadal-masters-1000-paris-presser-large-169.jpg”,”title”:”Del Potro and Cilic stunned at Paris Masters”,”videoCMSUrl”:”/videos/sports/2017/11/04/rolex-sponsorship-paris-masters.cnn”,”videoId”:”sports/2017/11/04/rolex-sponsorship-paris-masters.cnn”,”videoUrl”:”/videos/sports/2017/11/04/rolex-sponsorship-paris-masters.cnn”},{“descriptionPlainText”:”After months living under ISIS’ brutal rule, Maha finally escaped. But WhatsApp voice messages sent to her mother reveal the uncertain future Raqqa refugees still face. Their voices have been distorted to protect their identities.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171031163347-life-in-limbo-after-raqqa-1-large-169.jpg”,”title”:”Life in limbo after ISIS”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/10/31/life-in-limbo-after-raqqa-isis-sdg-lon-orig.cnn/index.xml”,”videoId”:”world/2017/10/31/life-in-limbo-after-raqqa-isis-sdg-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/10/31/life-in-limbo-after-raqqa-isis-sdg-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”The US has been fighting a full-scale air war against ISIS in Iraq and Syria since 2014. Go behind the scenes of the battle to defeat the terror group.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171009094852-air-war-6-large-169.jpg”,”title”:”The air war on ISIS”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/10/05/the-air-war-on-isis-lon-orig.cnn/index.xml”,”videoId”:”world/2017/10/05/the-air-war-on-isis-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/10/05/the-air-war-on-isis-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”When a ship in the Black Sea disappeared fingers soon pointed to Russia. CNN takes a look at the phenomenon of GPS spoofing.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171103064732-cnnmoney-russia-gps-large-169.jpg”,”title”:”GPS Spoofing: Russia’s new cyberweapon?”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/11/03/russia-gps-spoofing-cyberweapon-lon-orig-mkd.cnn/index.xml”,”videoId”:”cnnmoney/2017/11/03/russia-gps-spoofing-cyberweapon-lon-orig-mkd.cnn”,”videoUrl”:”/videos/cnnmoney/2017/11/03/russia-gps-spoofing-cyberweapon-lon-orig-mkd.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”US President Donald Trump is visiting five countries — Japan, China, South Korea, Vietnam and the Philippines — in just nine days. Here are the big issues at stake.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171103111624-trump-in-asia-preview-large-169.jpg”,”title”:”Trump’s whirlwind Asia tour: The big issues”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/03/trump-in-asia-big-issues-explainer-sdg-lon-orig.cnn/index.xml”,”videoId”:”world/2017/11/03/trump-in-asia-big-issues-explainer-sdg-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/11/03/trump-in-asia-big-issues-explainer-sdg-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”Amazon CEO Jeff Bezos christened his company’s latest wind farm by smashing a bottle on top of a 300-foot-tall wind turbine.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171020112855-bezos-smashing-bottle-large-169.jpg”,”title”:”Jeff Bezos smashes bottle on top of wind turbine”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/10/20/bezos-amazon-texas-wind-farm-christening-sdg-lon-orig.cnn/index.xml”,”videoId”:”cnnmoney/2017/10/20/bezos-amazon-texas-wind-farm-christening-sdg-lon-orig.cnn”,”videoUrl”:”/videos/cnnmoney/2017/10/20/bezos-amazon-texas-wind-farm-christening-sdg-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”It has its own flag, its own national anthem and its own language. But many Catalans want more: They want to be independent.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170929111324-01-catalonia-referendum-0928-large-169.jpg”,”title”:”Catalonia: What you need to know”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/26/catalonia-spain-what-you-need-to-know-sdg-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/26/catalonia-spain-what-you-need-to-know-sdg-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/26/catalonia-spain-what-you-need-to-know-sdg-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”The founder of Playboy made several appearances in TV shows, including “Sex and the City” and “The Simpsons.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170928085207-01-hugh-hefner-file-2014-large-169.jpg”,”title”:”Hugh Hefner’s most memorable TV moments”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/09/28/hugh-hefner-tv-appearances-sje-lon-orig.cnnmoney/index.xml”,”videoId”:”cnnmoney/2017/09/28/hugh-hefner-tv-appearances-sje-lon-orig.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2017/09/28/hugh-hefner-tv-appearances-sje-lon-orig.cnnmoney/video/playlists/trending-video/”},{“descriptionPlainText”:”SpaceX founder & CEO Elon Musk has unveiled more of his grand plan for colonizing Mars in a presentation at the International Astronautical Congress in Australia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170929121504-spacex1-large-169.jpg”,”title”:”Musk wants to land on Mars in 2022″,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/29/elon-musk-spacex-mars-mission-lon-orig-mkd.cnn-tech/index.xml”,”videoId”:”world/2017/09/29/elon-musk-spacex-mars-mission-lon-orig-mkd.cnn-tech”,”videoUrl”:”/videos/world/2017/09/29/elon-musk-spacex-mars-mission-lon-orig-mkd.cnn-tech/video/playlists/trending-video/”},{“descriptionPlainText”:”Thousands of people on the Indonesian island of Bali have been evacuated from their homes amid fears that Mount Agung could erupt for the first time in over 50 years.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170925142108-bali-volcano-indonesia-03-large-169.jpg”,”title”:”Bali volcano in danger of erupting”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/25/indonesia-bali-volcano-orig.cnn/index.xml”,”videoId”:”world/2017/09/25/indonesia-bali-volcano-orig.cnn”,”videoUrl”:”/videos/world/2017/09/25/indonesia-bali-volcano-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”As Prince Harry watched a volleyball match at the 2017 Toronto Invictus Games, a little girl sneakily “stole” his popcorn.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170928215741-02-prince-harry-popcorn-0927-large-169.jpg”,”title”:”Prince Harry catches child ‘swiping’ his popcorn”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/29/prince-harry-catches-child-stealing-popcorn-llr-orig.cnn/index.xml”,”videoId”:”world/2017/09/29/prince-harry-catches-child-stealing-popcorn-llr-orig.cnn”,”videoUrl”:”/videos/world/2017/09/29/prince-harry-catches-child-stealing-popcorn-llr-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”Multiple explosions at an ammunition warehouse in Ukraine resulted in the evacuation of more than 30,000 local residents.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170927131305-video-only—do-not-use-ukraine-explosion-military-warehouse-1-large-169.jpg”,”title”:”Explosions rock Ukraine ammunition depot”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/27/explosions-ukraine-warehouse-kalynivka-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/27/explosions-ukraine-warehouse-kalynivka-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/27/explosions-ukraine-warehouse-kalynivka-sje-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”How one man is surviving without running water and electricity San Juan, Puerto Rico.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170926131659-life-without-basic-needs-san-juan-2-large-169.jpg”,”title”:” Life without basic needs in Puerto Rico”,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/09/26/life-without-basic-needs-in-puerto-rico-orig-tc.cnn/index.xml”,”videoId”:”weather/2017/09/26/life-without-basic-needs-in-puerto-rico-orig-tc.cnn”,”videoUrl”:”/videos/weather/2017/09/26/life-without-basic-needs-in-puerto-rico-orig-tc.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”While taking photos on his wedding day, Clayton Cook pulled a child struggling to swim from a nearby lake.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170926163318-groom-saves-child-on-wedding-day-large-169.jpg”,”title”:”Groom pulls drowning child from water”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/26/canadian-groom-saves-child-on-wedding-day-orig-trnd-lab.cnn/index.xml”,”videoId”:”world/2017/09/26/canadian-groom-saves-child-on-wedding-day-orig-trnd-lab.cnn”,”videoUrl”:”/videos/world/2017/09/26/canadian-groom-saves-child-on-wedding-day-orig-trnd-lab.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”The prototype of an electric self-flying taxi took its first test flight in Dubai.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170926145219-dubai-flying-taxi-2-large-169.jpg”,”title”:”Dubai tests 18-rotor drone taxi”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/09/26/flying-taxi-dubai-volocopter-drone-sje-lon-orig.cnn-tech/index.xml”,”videoId”:”cnnmoney/2017/09/26/flying-taxi-dubai-volocopter-drone-sje-lon-orig.cnn-tech”,”videoUrl”:”/videos/cnnmoney/2017/09/26/flying-taxi-dubai-volocopter-drone-sje-lon-orig.cnn-tech/video/playlists/trending-video/”},{“descriptionPlainText”:”A 23-year-old man was spotted by shocked drivers clinging to the outside of a moving train in Perth, Australia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170925091819-australia-train-surfer-incident-card-image-large-169.jpg”,”title”:”Man clings to front of train moving at 68 mph”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/25/dangerous-train-surfing-stunt-caught-on-camera-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/25/dangerous-train-surfing-stunt-caught-on-camera-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/25/dangerous-train-surfing-stunt-caught-on-camera-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”From Muhammad Ali to Colin Kaepernick, professional athletes have taken political stances throughout U.S. history.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170924181013-nfl-anthem-protests-kansas-city-large-169.jpg”,”title”:”How sports and politics clashed through history “,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/26/sports-politics-collide-through-history-ts-orig.cnn/index.xml”,”videoId”:”world/2017/09/26/sports-politics-collide-through-history-ts-orig.cnn”,”videoUrl”:”/videos/world/2017/09/26/sports-politics-collide-through-history-ts-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”Fallen power lines, flooding, debris … obstacles litter roads in Puerto Rico after Hurricane Maria ripped through the island.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170921114051-puerto-rico-hurricane-maria-roads-1-large-169.jpg”,”title”:”The drive that shows how badly Puerto Rico was hit”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/21/puerto-rico-hurricane-maria-drive-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/21/puerto-rico-hurricane-maria-drive-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/21/puerto-rico-hurricane-maria-drive-sje-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”CNN spoke to Uber and “Black Cab” drivers about the decision by Transport for London not to renew Uber’s license in the city.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170922160818-uber-1-large-169.jpg”,”title”:”Uber and “Black Cab” drivers on TfL decision”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/09/22/uber-london-ban-tfl-lon-orig-sje.cnnmoney/index.xml”,”videoId”:”tv/2017/09/22/uber-london-ban-tfl-lon-orig-sje.cnnmoney”,”videoUrl”:”/videos/tv/2017/09/22/uber-london-ban-tfl-lon-orig-sje.cnnmoney/video/playlists/trending-video/”},{“descriptionPlainText”:”A magnitude-7.1 earthquake struck central Mexico, near Mexico City, on September 19.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170919175955-0919-mexico-earthquake-large-169.jpg”,”title”:”Violent earthquake rocks Mexico”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/19/mexico-earthquake-llr-orig.cnn/index.xml”,”videoId”:”world/2017/09/19/mexico-earthquake-llr-orig.cnn”,”videoUrl”:”/videos/world/2017/09/19/mexico-earthquake-llr-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”Rescue crews were able to make contact with a girl trapped inside the rubble of a collapsed elementary school in Mexico City.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170920225746-03-mx-school-large-169.jpg”,”title”:”At school, digging brings hope, frustration”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/20/school-collapse-mexico-city-earthquake-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/20/school-collapse-mexico-city-earthquake-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/20/school-collapse-mexico-city-earthquake-sje-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”CNN’s Becky Anderson explains what you need to know about the landmark nuclear deal with Iran and what could happen if it’s scrapped by US President Trump.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170920141258-iran-nuclear-deal-explainer-2-large-169.jpg”,”title”:”Explaining the Iran nuclear deal”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/20/iran-nuclear-deal-anderson-expl-lon-orig-ejk.cnn/index.xml”,”videoId”:”world/2017/09/20/iran-nuclear-deal-anderson-expl-lon-orig-ejk.cnn”,”videoUrl”:”/videos/world/2017/09/20/iran-nuclear-deal-anderson-expl-lon-orig-ejk.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”Despite international condemnation, North Korea continues to pursue its nuclear ICBM development program. CNN’s Paula Hancocks explains why.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170908160636-nk-icbm-5-large-169.jpg”,”title”:”Why does North Korea keep launching ICBMs?”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/08/north-korea-icbm-race-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/08/north-korea-icbm-race-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/08/north-korea-icbm-race-lon-orig.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”As Prince George starts school at Thomas’s Battersea in south London, we look back at some of his cutest moments.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170907114701-prince-george-school-close-up-large-169.jpg”,”title”:”Prince George’s cutest moments”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/06/prince-george-cutest-moments-lon-orig-ak.cnn/index.xml”,”videoId”:”world/2017/09/06/prince-george-cutest-moments-lon-orig-ak.cnn”,”videoUrl”:”/videos/world/2017/09/06/prince-george-cutest-moments-lon-orig-ak.cnn/video/playlists/trending-video/”},{“descriptionPlainText”:”From a bird’s eye view, many parts of ISIS’ de-facto capital in Syria have been nearly reduced to rubble.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170828231658-western-raqqa-drone-footage-large-169.jpg”,”title”:”Exclusive video shows western Raqqa in ruins”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/08/28/western-raqqa-syria-drone-footage-sdg-lon-orig.cnn/index.xml”,”videoId”:”world/2017/08/28/western-raqqa-syria-drone-footage-sdg-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/08/28/western-raqqa-syria-drone-footage-sdg-lon-orig.cnn/video/playlists/trending-video/”}],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 embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {videoCollection: this.videoCollection,autostart: false},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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */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 is null that means it’s not initialized yet so* pass in the thumbnail, too.*/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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}/* Video player isn’t autoplay, so init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start();} catch (startError) {console.log(“error in initializing video player” + startError);}}*/}}}} 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/2017/11/04/rolex-sponsorship-paris-masters.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’) {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.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-10w6l6p’,videoDescriptionDivId: ‘js-video_description-10w6l6p’,videoDurationDivId: ‘js-video_duration-10w6l6p’,videoTitleDivId: ‘js-leaf-video_headline-10w6l6p’,videoSourceDivId: ‘js-video_sourceName-10w6l6p’});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

LEAVE A REPLY