[ad_1]

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘tv/2017/09/11/rafael-nadal-1-on-1.cnn’,width: ‘100%’,height: ‘100%’,section: ‘international’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Rafael Nadal captures his 16th Grand Slam title after taking the US Open”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170910225410-nadal-bites-trophy-large-169.jpg”,”title”:”Nadal wins in New York”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/09/11/rafael-nadal-1-on-1.cnn/index.xml”,”videoId”:”tv/2017/09/11/rafael-nadal-1-on-1.cnn”,”videoUrl”:”/videos/tv/2017/09/11/rafael-nadal-1-on-1.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”2017 US Open champion Sloane Stephens gave a memorable press conference after winning her first major title, filled with jokes and funny moments.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170909205004-sloane-with-trophy-large-169.jpg”,”title”:”Sloane Stephens’ press conference outtakes”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/11/sloane-stephens-us-open-hilarious-press-conference-tennis-orig.usta/index.xml”,”videoId”:”sports/2017/09/11/sloane-stephens-us-open-hilarious-press-conference-tennis-orig.usta”,”videoUrl”:”/videos/sports/2017/09/11/sloane-stephens-us-open-hilarious-press-conference-tennis-orig.usta/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Venus and Serena Williams have won a combined 29 grand slam singles titles but their beginnings were humble, as their father Richard Williams told CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150821143850-serena-williams-childhood-large-169.jpg”,”title”:”The most successful family affair in tennis”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/01/27/australian-open-williams-sisters-childhood.cnn/index.xml”,”videoId”:”sports/2017/01/27/australian-open-williams-sisters-childhood.cnn”,”videoUrl”:”/videos/sports/2017/01/27/australian-open-williams-sisters-childhood.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Serena Williams and her fiancé, Alexis Ohanian, welcomed their first child on September 1, 2017.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170913150835-serena-williams-baby-large-169.jpg”,”title”:”Serena Williams shows off new baby girl”,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2017/09/01/serena-williams-gives-birth-orig.cnn/index.xml”,”videoId”:”entertainment/2017/09/01/serena-williams-gives-birth-orig.cnn”,”videoUrl”:”/videos/entertainment/2017/09/01/serena-williams-gives-birth-orig.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Serena Williams randomly surprised two fans who were playing tennis in San Francisco while she was on a night stroll.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170228065015-serena-williams-snap-large-169.jpg”,”title”:”Serena Williams sneaks up on fans during match”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/02/28/serena-williams-surprises-fans-tennis-court-es.cnn/index.xml”,”videoId”:”sports/2017/02/28/serena-williams-surprises-fans-tennis-court-es.cnn”,”videoUrl”:”/videos/sports/2017/02/28/serena-williams-surprises-fans-tennis-court-es.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Serena Williams shocked the world early Wednesday when she hinted she was pregnant on social media. A spokesperson for the tennis player later confirmed. CNN’s Jeanne Moos reports”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170420033423-serena-williams-pregnant-snapchat-brighter-large-169.jpg”,”title”:”Serena Williams is definitely pregnant “,”videoCMSUrl”:”/video/data/3.0/video/us/2017/04/19/serena-williams-pregnant-snapchat-tennis-moos-pkg-erin.cnn/index.xml”,”videoId”:”us/2017/04/19/serena-williams-pregnant-snapchat-tennis-moos-pkg-erin.cnn”,”videoUrl”:”/videos/us/2017/04/19/serena-williams-pregnant-snapchat-tennis-moos-pkg-erin.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Serena Williams’ coach Patrick Mouratoglou speaks about Serena’s pregnancy, a potential comeback and the controversy around John McEnroe’s comments.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170710085947-serena-williams-with-patrick-mouratoglou-large-169.jpg”,”title”:”Mouratoglou on Serena comeback and McEnroe”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/07/11/patrick-mouratoglou-serena-williams-pregnancy-comeback-mcenroe-comments-intv.cnn/index.xml”,”videoId”:”sports/2017/07/11/patrick-mouratoglou-serena-williams-pregnancy-comeback-mcenroe-comments-intv.cnn”,”videoUrl”:”/videos/sports/2017/07/11/patrick-mouratoglou-serena-williams-pregnancy-comeback-mcenroe-comments-intv.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Seven-time Grand Slam winner John McEnroe clarified comments he made about Serena Williams playing against men to Stephen Colbert on “The Late Show.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170628042214-john-mcenroe-june-17-2017-large-169.jpg”,”title”:”McEnroe tries to clarify Serena Williams jab”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/06/28/john-mcenroe-colbert-late-night-serena-williams-ekr-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/06/28/john-mcenroe-colbert-late-night-serena-williams-ekr-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/06/28/john-mcenroe-colbert-late-night-serena-williams-ekr-orig-vstan.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”John McEnroe did not offer an apology to Serena Williams during his interview on “CBS This Morning,” after telling NPR he thought Serena Williams would be ranked “700 in the world” if she played the men’s Tour.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170627103233-serena-williams-wimbledon-large-169.jpg”,”title”:”McEnroe won’t apologize to Serena Williams”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/06/27/john-mcenroe-serena-williams-no-apology-trnd-lab.cnn/index.xml”,”videoId”:”tv/2017/06/27/john-mcenroe-serena-williams-no-apology-trnd-lab.cnn”,”videoUrl”:”/videos/tv/2017/06/27/john-mcenroe-serena-williams-no-apology-trnd-lab.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Roger Federer just won his 18th major title at the Australian Open, which once again prompted a huge outpouring of adulation for the Swiss tennis star.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170201183411-roger-federer-selfie-large-169.jpg”,”title”:”18 reasons to love Roger Federer”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/02/01/roger-federer-18-reasons-for-popularity-orig.cnn/index.xml”,”videoId”:”sports/2017/02/01/roger-federer-18-reasons-for-popularity-orig.cnn”,”videoUrl”:”/videos/sports/2017/02/01/roger-federer-18-reasons-for-popularity-orig.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Amidst the crowds at Wimbledon, there’s one fan who stands above the rest for 18-time grand slam champ Roger Federer, and she’s got the tattoo to prove it.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170713144754-roger-federer-super-fan-tattoo-wimbledon-2017-orig-00000000-large-169.jpg”,”title”:”​Roger Federer’s tattooed superfan​”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/07/13/roger-federer-super-fan-tattoo-wimbledon-2017-orig.cnn/index.xml”,”videoId”:”sports/2017/07/13/roger-federer-super-fan-tattoo-wimbledon-2017-orig.cnn”,”videoUrl”:”/videos/sports/2017/07/13/roger-federer-super-fan-tattoo-wimbledon-2017-orig.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”In an interview with CNN Style, the tennis legend answered a unique set of questions. But did the Swiss ace the test?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170705111230-wimbledon-roger-federer-large-169.jpg”,”title”:” Federer as you’ve never heard him before “,”videoCMSUrl”:”/video/data/3.0/video/style/2017/07/05/federer-quickfire-ws2550.cnn/index.xml”,”videoId”:”style/2017/07/05/federer-quickfire-ws2550.cnn”,”videoUrl”:”/videos/style/2017/07/05/federer-quickfire-ws2550.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”2017 Australian Open champion Roger Federer collected an 18th grand slam title, but the Swiss star told CNN’s Ravi Ubha that he didn’t expect it at all.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170130095756-roger-federer-australian-open-large-169.jpg”,”title”:”Federer: Really strange to sit here as champ”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/01/30/roger-federer-australian-open-2017-champion-interview-ravi-ubha-rafael-nadal.cnn/index.xml”,”videoId”:”sports/2017/01/30/roger-federer-australian-open-2017-champion-interview-ravi-ubha-rafael-nadal.cnn”,”videoUrl”:”/videos/sports/2017/01/30/roger-federer-australian-open-2017-champion-interview-ravi-ubha-rafael-nadal.cnn/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”It was an usual day at the office for Tommy Haas and Jiri Vesely in their 1st round match at the Miami Open, until an unusual fan dropped by — an iguana.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170324145411-iguana-miami-open-tease-large-169.jpg”,”title”:”The tennis-loving iguana at the Miami Open”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/03/24/iguana-miami-open-tommy-haas-jiri-vesely-atp-tennis-animals-orig.tennis-tv/index.xml”,”videoId”:”sports/2017/03/24/iguana-miami-open-tommy-haas-jiri-vesely-atp-tennis-animals-orig.tennis-tv”,”videoUrl”:”/videos/sports/2017/03/24/iguana-miami-open-tommy-haas-jiri-vesely-atp-tennis-animals-orig.tennis-tv/video/playlists/intl-sports-tennis/”},{“descriptionPlainText”:”Puerto Rico tennis star, Monica Puig, spoke about the tough situation her home country is suffering at the hands of Hurricane Maria.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170322132626-getty-monica-puig-mexico-open-large-169.jpg”,”title”:”Puig’s emotional interview on Hurricane Maria”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/22/monica-puig-hurricane-maria-puerto-rico-tennis-star-olympic-gold-intv.cnn/index.xml”,”videoId”:”sports/2017/09/22/monica-puig-hurricane-maria-puerto-rico-tennis-star-olympic-gold-intv.cnn”,”videoUrl”:”/videos/sports/2017/09/22/monica-puig-hurricane-maria-puerto-rico-tennis-star-olympic-gold-intv.cnn/video/playlists/intl-sports-tennis/”}],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:”tv/2017/09/11/rafael-nadal-1-on-1.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-10l212z’,videoDescriptionDivId: ‘js-video_description-10l212z’,videoDurationDivId: ‘js-video_duration-10l212z’,videoTitleDivId: ‘js-leaf-video_headline-10l212z’,videoSourceDivId: ‘js-video_sourceName-10l212z’});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(‘

[ad_2]
Source link