‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘cnnmoney/2017/11/17/serena-williams-alexis-ohanian-married-llr-orig.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/171117092330-serena-williams-alexis-ohanian-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Tennis superstar Serena Williams and Reddit co-founder Alexis Ohanian were married in New Orleans.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171117092330-serena-williams-alexis-ohanian-large-169.jpg”,”title”:”Serena Williams says ‘I do'”,”videoCMSUrl”:”/videos/cnnmoney/2017/11/17/serena-williams-alexis-ohanian-married-llr-orig.cnn”,”videoId”:”cnnmoney/2017/11/17/serena-williams-alexis-ohanian-married-llr-orig.cnn”,”videoUrl”:”/videos/cnnmoney/2017/11/17/serena-williams-alexis-ohanian-married-llr-orig.cnn”},{“descriptionPlainText”:”A clip from Anthony Bourdain’s visit to Seattle. Watch Parts Unknown Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171115165651-anthony-bourdain-parts-unknown-seattle-5-00001801-large-169.jpg”,”title”:”Bread that stays fresh for 9 months”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-5.roads–kingdoms/index.xml”,”videoId”:”tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-5.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-5.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A clip from Anthony Bourdain’s visit to Seattle. Watch Parts Unknown Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171115134311-anthony-bourdain-parts-unknown-seattle-4-00000000-large-169.jpg”,”title”:”Seattle: The foodie city”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-4.roads–kingdoms/index.xml”,”videoId”:”tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-4.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/11/15/anthony-bourdain-parts-unknown-seattle-4.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Anthony Bourdain travels to Seattle. Watch Parts Unknown Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171108153232-explore-parts-unknown-seattle-travel-minute-00004923-large-169.jpg”,”title”:”One minute in Seattle”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/11/08/explore-parts-unknown-seattle-travel-minute.roads–kingdoms/index.xml”,”videoId”:”tv/2017/11/08/explore-parts-unknown-seattle-travel-minute.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/11/08/explore-parts-unknown-seattle-travel-minute.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Prior to the devastation of Hurricane Maria, Anthony Bourdain traveled to Puerto Rico to explore the impact of it’s financial crisis. Watch Parts Unknown Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171101120143-anthony-bourdain-parts-unknown-puerto-rico-chef-xavier-pacheco-00001813-large-169.jpg”,”title”:”More than a fast food joint”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/11/01/anthony-bourdain-parts-unknown-puerto-rico-chef-xavier-pacheco.roads–kingdoms/index.xml”,”videoId”:”tv/2017/11/01/anthony-bourdain-parts-unknown-puerto-rico-chef-xavier-pacheco.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/11/01/anthony-bourdain-parts-unknown-puerto-rico-chef-xavier-pacheco.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Bonus clip from Sri Lanka, featured in this week’s episode of Parts Unknown with Anthony Bourdain. New episodes of Parts Unknown premiere Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171024132534-explore-parts-unknown-sri-lanka-sidekick-00015416-large-169.jpg”,”title”:”Processing war through art”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/10/24/explore-parts-unknown-sri-lanka-sidekick.roads–kingdoms/index.xml”,”videoId”:”tv/2017/10/24/explore-parts-unknown-sri-lanka-sidekick.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/10/24/explore-parts-unknown-sri-lanka-sidekick.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Prior to the devastation of Hurricane Maria, Anthony Bourdain traveled to Puerto Rico to explore the impact of it’s financial crisis. Watch Parts Unknown Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171031121610-anthony-bourdain-parts-unknown-puerto-rico-ana-elisa-quintero-1-00001113-large-169.jpg”,”title”:”A visit to a sustainable farm”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/10/31/anthony-bourdain-parts-unknown-puerto-rico-ana-elisa-quintero-1.roads–kingdoms/index.xml”,”videoId”:”tv/2017/10/31/anthony-bourdain-parts-unknown-puerto-rico-ana-elisa-quintero-1.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/10/31/anthony-bourdain-parts-unknown-puerto-rico-ana-elisa-quintero-1.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Prior to the devastation of Hurricane Maria, Anthony Bourdain traveled to Puerto Rico to explore the impact of it’s financial crisis. Parts Unknown airs Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171030114430-explore-parts-unknown-puerto-rico-travel-minute-00003922-large-169.jpg”,”title”:”Bourdain in Puerto Rico travel minute”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/10/30/explore-parts-unknown-puerto-rico-travel-minute.roads–kingdoms/index.xml”,”videoId”:”tv/2017/10/30/explore-parts-unknown-puerto-rico-travel-minute.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/10/30/explore-parts-unknown-puerto-rico-travel-minute.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Prior to the devastation of Hurricane Maria, Anthony Bourdain traveled to Puerto Rico to explore the impact of it’s financial crisis. Parts Unknown airs Sundays at 9PM ET/PT on CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171030112601-explore-parts-unknown-puerto-rico-food-montage-00001913-large-169.jpg”,”title”:”Bourdain in Puerto Rico food montage”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/10/30/explore-parts-unknown-puerto-rico-food-montage.roads–kingdoms/index.xml”,”videoId”:”tv/2017/10/30/explore-parts-unknown-puerto-rico-food-montage.roads–kingdoms”,”videoUrl”:”/videos/tv/2017/10/30/explore-parts-unknown-puerto-rico-food-montage.roads–kingdoms/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Anderson Cooper and Anthony Bourdain sits down at Chomp Chomp restaurant in New York to talk about next Parts Unknown episode in Sri Lanka.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171027230430-sri-lanka-anthony-bourdain-parts-unknown-ac-00004301-large-169.jpg”,”title”:”Anthony Bourdain goes to Sri Lanka”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/10/28/sri-lanka-anthony-bourdain-parts-unknown-ac.cnn/index.xml”,”videoId”:”tv/2017/10/28/sri-lanka-anthony-bourdain-parts-unknown-ac.cnn”,”videoUrl”:”/videos/tv/2017/10/28/sri-lanka-anthony-bourdain-parts-unknown-ac.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:””One of the great joys of life is riding a scooter through Vietnam,” says Anthony Bourdain.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/141013021014-ab-anthony-bourdain-parts-unknown-vietnam-2-00001219-story-top.jpg”,”title”:”Anthony Bourdain scoots through Vietnam”,”videoCMSUrl”:”/video/data/3.0/video/bestoftv/2014/10/13/ab-anthony-bourdain-parts-unknown-vietnam-2.cnn/index.xml”,”videoId”:”bestoftv/2014/10/13/ab-anthony-bourdain-parts-unknown-vietnam-2.cnn”,”videoUrl”:”/videos/bestoftv/2014/10/13/ab-anthony-bourdain-parts-unknown-vietnam-2.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Anthony Bourdain visits Little Haiti in Miami, Florida, for another world of flavors.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150428170955-06-parts-unknown-miami-large-169.jpg”,”title”:”Sampling cow foot soup in Little Haiti”,”videoCMSUrl”:”/video/data/3.0/video/tv/2015/04/29/bourdain-parts-unknown-little-haiti.cnn/index.xml”,”videoId”:”tv/2015/04/29/bourdain-parts-unknown-little-haiti.cnn”,”videoUrl”:”/videos/tv/2015/04/29/bourdain-parts-unknown-little-haiti.cnn/video/playlists/stories-worth-watching/”}],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, isVideoReplayClicked, 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:”cnnmoney/2017/11/17/serena-williams-alexis-ohanian-married-llr-orig.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-1ojl66d’,videoDescriptionDivId: ‘js-video_description-1ojl66d’,videoDurationDivId: ‘js-video_duration-1ojl66d’,videoTitleDivId: ‘js-leaf-video_headline-1ojl66d’,videoSourceDivId: ‘js-video_sourceName-1ojl66d’});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