‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,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”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“videoCMSUrl”:”/videos/world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”,”videoId”:”world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”,”videoUrl”:”/videos/world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn/index.xml”,”videoId”:”us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn”,”videoUrl”:”/videos/us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn/video/playlists/mexico-earthquake/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn/video/playlists/mexico-earthquake/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn/index.xml”,”videoId”:”world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn”,”videoUrl”:”/videos/world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn/video/playlists/mexico-earthquake/”},{“videoCMSUrl”:”/video/data/3.0/video/weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn/index.xml”,”videoId”:”weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn”,”videoUrl”:”/videos/weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn/video/playlists/mexico-earthquake/”},{“videoCMSUrl”:”/video/data/3.0/video/weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn/index.xml”,”videoId”:”weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn”,”videoUrl”:”/videos/weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn/video/playlists/mexico-earthquake/”},{“videoCMSUrl”:”/video/data/3.0/video/weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn/index.xml”,”videoId”:”weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn”,”videoUrl”:”/videos/weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn/video/playlists/mexico-earthquake/”}],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:”world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”, isEmbeddable: “no”};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-z6bwcb’,videoDescriptionDivId: ‘js-video_description-z6bwcb’,videoDurationDivId: ‘js-video_duration-z6bwcb’,videoTitleDivId: ‘js-leaf-video_headline-z6bwcb’,videoSourceDivId: ‘js-video_sourceName-z6bwcb’});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(‘‘ + showDetailsSpanContent + ‘‘);} else {$showName.html(showDetailsSpanContent);}});});if (typeof (history) !== ‘undefined’ && typeof (history.replaceState) !== ‘undefined’) {history.replaceState(”, ”, videocardContents.url);document.title = videocardContents.headlineText ? videocardContents.headlineText : ”;}}function getCurrentVideoCardContents(currentVideoId) {var containerContents = [{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:””,”contentType”:””,”cta”:”share”,”descriptionText”:[“CNN’s Ed Lavandera reports that Mexican officials say they have made contact with a girl trapped in the school that collapsed after a 7.1 magnitude earthquake struck South of Mexico City. A Mexican Navy official later said there was confusion as to whether a girl was trapped in the rubble at all. The official said his information was based on technical reports and the accounts of civilian and Navy rescuers. “],”descriptionPlainText”:”CNN’s Ed Lavandera reports that Mexican officials say they have made contact with a girl trapped in the school that collapsed after a 7.1 magnitude earthquake struck South of Mexico City. A Mexican Navy official later said there was confusion as to whether a girl was trapped in the rubble at all. The official said his information was based on technical reports and the accounts of civilian and Navy rescuers.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”A rush to save lives in collapsed school”,”headlinePlainText”:”A rush to save lives in collapsed school”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”mexico earthquake rescues lc orig_00003120.jpg”,”imageAlt”:”mexico earthquake rescues lc orig_00003120″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:””,”photographer”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920154303-mexico-earthquake-rescues-lc-orig-00003120.jpg”}},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”,”width”:””,”height”:””,”videoCMSUri”:”/videos/world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”,”videoId”:”world/2017/09/23/mexico-earthquake-rescue-people-trapped-school-lavandera-ac.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”10:05 PM ET, Fri September 22, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”us”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Crews and bystanders begin recovery efforts after a 7.1-magnitude earthquake hit 75 miles southeast of Mexico City. “],”descriptionPlainText”:”Crews and bystanders begin recovery efforts after a 7.1-magnitude earthquake hit 75 miles southeast of Mexico City.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Silence falls as crowds listen for signs of life”,”headlinePlainText”:”Silence falls as crowds listen for signs of life”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”mexico earthquake rescues lc orig_00003023.jpg”,”imageAlt”:”mexico earthquake rescues lc orig_00003023″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:””,”photographer”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170920163846-mexico-earthquake-rescues-lc-orig-00003023.jpg”},”duration”:”1:13″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn/index.xml”,”videoId”:”us/2017/09/20/mexico-earthquake-rescues-lc-orig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”2:12 PM ET, Wed September 20, 2017″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Cities shook and buildings were damaged after a deadly 8.1 magnitude earthquake struck off the coast of southwestern Mexico.”],”descriptionPlainText”:”Cities shook and buildings were damaged after a deadly 8.1 magnitude earthquake struck off the coast of southwestern Mexico.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Earthquake shakes buildings in Mexico”,”headlinePlainText”:”Earthquake shakes buildings in Mexico”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:””,”imageAlt”:””,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:”Reuters/@ILS_GP”,”photographer”:”Reuters/@ILS_GP”,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908110506-mexico-earthquake-tremors-office.jpg”},”duration”:”1:01″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/08/earthquake-mexico-guatemala-sje-lon-orig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”5:41 AM ET, Fri September 8, 2017″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“CNN’s u003ca href=”http://www.cnn.com/profiles/isha-sesay”>Isha Sesayu003c/a> talks with Paulina Gomez-Wulschner about the 8.1 magnitude earthquake that hit off the coast of Mexico.”],”descriptionPlainText”:”CNN’s Isha Sesay talks with Paulina Gomez-Wulschner about the 8.1 magnitude earthquake that hit off the coast of Mexico.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Witness: Quake one of the strongest I’ve felt”,”headlinePlainText”:”Witness: Quake one of the strongest I’ve felt”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:””,”imageAlt”:””,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:”FORO TV”,”photographer”:”FORO TV”,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170908022453-mexico-quake-rescue.jpg”},”duration”:”1:15″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn/index.xml”,”videoId”:”world/2017/09/08/mexico-earthquake-gomez-wulschner-bpr.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”2:11 AM ET, Fri September 8, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com”,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”weather”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Earthquakes can happen suddenly; here are the top five things you should know about them. “],”descriptionPlainText”:”Earthquakes can happen suddenly; here are the top five things you should know about them.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Five things you should know about earthquakes”,”headlinePlainText”:”Five things you should know about earthquakes”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”nepal drone footage earthquake disaster relief orig_00011504.jpg”,”imageAlt”:”nepal drone footage earthquake disaster relief orig_00011504″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:”CNN”,”photographer”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/150430214524-nepal-drone-footage-earthquake-disaster-relief-orig-00011504.jpg”},”duration”:”1:35″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn/index.xml”,”videoId”:”weather/2017/01/27/weather-five-things-about-earthquakes-orig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”10:40 AM ET, Fri January 27, 2017″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”weather”,”contentType”:””,”cta”:”share”,”descriptionText”:[“This animation from NOAA uses USGS data to show all of the earthquakes the world has experienced in the first 15 years of the 21u003csup>stu003c/sup> century. “],”descriptionPlainText”:”This animation from NOAA uses USGS data to show all of the earthquakes the world has experienced in the first 15 years of the 21st century.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”15 years of earthquakes in 45 seconds”,”headlinePlainText”:”15 years of earthquakes in 45 seconds”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”weather 15 years of earthquakes jj nccorig_00004316.jpg”,”imageAlt”:”weather 15 years of earthquakes jj nccorig_00004316″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:”RACI”,”photographer”:”NOAA”,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316-small-11.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/161220113218-weather-15-years-of-earthquakes-jj-nccorig-00004316.jpg”},”duration”:”0:47″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn/index.xml”,”videoId”:”weather/2016/12/20/weather-15-years-of-earthquakes-jj-nccorig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”11:28 AM ET, Tue December 20, 2016″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”weather”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Chad Myers explains how earthquake warning systems work, and why we can’t predict seismic events earlier. “],”descriptionPlainText”:”Chad Myers explains how earthquake warning systems work, and why we can’t predict seismic events earlier.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Why aren’t earthquake warnings better?”,”headlinePlainText”:”Why aren’t earthquake warnings better?”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”earthquake early warning system orig mg_00002310.jpg”,”imageAlt”:”earthquake early warning system orig mg_00002310.jpg”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-story-top.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”source”:”CNN”,”photographer”:””,”cuts”:{“mini”:{“height”:144,”width”:256,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-hp-video.jpg”},”xsmall”:{“height”:169,”width”:300,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-story-body.jpg”},”small”:{“height”:360,”width”:640,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-story-top.jpg”},”medium”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-horizontal-large-gallery.jpg”},”large”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-horizontal-large-gallery.jpg”},”full16x9″:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-horizontal-large-gallery.jpg”},”mini1x1″:{“height”:60,”width”:60,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310-topics.jpg”}},”responsiveImage”:true,”originalImageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140825223053-earthquake-early-warning-system-orig-mg-00002310.jpg”},”duration”:”1:38″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn/video/playlists/mexico-earthquake/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn/index.xml”,”videoId”:”weather/2014/08/26/earthquake-early-warning-system-orig-mg.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”9:53 PM ET, Mon August 25, 2014″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/mexico-earthquake/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”,”autoStartVideo”:false}],cardContents,i;for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {currentVidObj = currentVideoCollection[getNextVideoIndex(currentVideoId)];nextPlay = currentVidObj.videoId;nextVideoUrl = domain + currentVidObj.videoUrl;if (nextPlay === undefined || nextPlay === null) {nextPlay = currentVideoCollection[0].videoId;}moveToNextTimeout = setTimeout(function () {overrides = {videoCollection: currentVideoCollection,autostart: true};if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {FAVE.player.getInstance(configObj.markupId).play(nextPlay, overrides);} else {CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, nextPlay, overrides);}if (typeof window.recallProximic !== ‘undefined’ && nextPlay !== null) {window.recallProximic(nextVideoUrl);}}, nextVideoPlayTimeout);}}var decorateVideoApi = function(){/* if this happens before the video API loads it gets deleted. */CNN.VideoPlayer.showSpinner = function showSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById((‘spinner_’ + containerId).replace(‘#’, ”))).show();}};CNN.VideoPlayer.hideSpinner = function hideSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById((‘spinner_’ + containerId).replace(‘#’, ”))).hide();}};CNN.VideoPlayer.hideThumbnail = function hideThumbnail(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById(containerId + ‘–thumbnail’)).hide();}};};callbackObj = {onPlayerReady: function (containerId) {CNN.INJECTOR.getNameSpaceFeature(‘CNN.VideoPlayer.showSpinner’).fail(decorateVideoApi);var containerClassId;CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).parents(‘.js-pg-rail-tall__head’).length > 0) {videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.setIsVideoCollection(true);videoPinner.init();} else {CNN.VideoPlayer.hideThumbnail(containerId);}}},onContentEntryLoad: function(containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner(containerId);CNN.VideoPlayer.isFirstVideoInCollection(containerId, contentid);},onAdPlay: function (containerId, cvpId, token, mode, id, duration, blockId, adType) {clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onContentPlay: function (containerId, cvpId, contentId) {/** When the video content starts playing, the companion ad* layout (if it was set when the ad played) should switch* back to epic ad layout. onContentPlay calls updateCompanionLayout* with ‘restoreEpicAds’ layout to make this switch and removes FW* with ‘removeFreewheel’ so you don’t see double ads. If a user* clicks another video midway, onContentBegin will add FW back*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeFreewheel’);CNN.companion.updateCompanionLayout(‘restoreEpicAds’);}clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);var idx,playerInstance,prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || ”;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(containerId);} else {playerInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null;}if (playerInstance && typeof playerInstance.reportAnalytics === ‘function’) {if (prevVideoId.length === 0 && document.referrer && document.referrer.search(//videos//) >= 0) {prevVideoId = document.referrer.replace(/^(?:http|https)://[^/]/videos/(.+.w+)(?:/video/playlists/.*)?$/, ‘/video/$1’);if (prevVideoId === document.referrer) {prevVideoId = ”;}}if (jQuery.isArray(currentVideoCollection) && currentVideoCollection.length > 0) {idx = getNextVideoIndex(contentId);nextVideoId = currentVideoCollection[idx].videoId;nextVideoUrl = currentVideoCollection[idx].videoUrl;currentVideoCollectionId = (window.jsmd && window.jsmd.v && window.jsmd.v.eVar60) || nextVideoUrl.replace(/^.+/video/playlists/(.+)//, ‘$1’);}playerInstance.reportAnalytics(‘videoPageData’, {videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: ”,referrerUrl: document.referrer});}if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onContentReplayRequest: function (containerId, cvpId, contentId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);var $endSlate = jQuery(document.getElementById(containerId)).parent().find(‘.js-video__end-slate’).eq(0);if ($endSlate.length > 0) {$endSlate.removeClass(‘video__end-slate–active’).addClass(‘video__end-slate–inactive’);}}}},onContentMetadata: function (containerId, playerId, metadata, contentId, duration, width, height) {if (CNN.Utils.exists(metadata)) {try {if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) {CNN.Videx.EmbedButton.updateCode(metadata);} else {CNN.Videx.EmbedButton.updateCode(JSON.parse(metadata));}} catch (e) {console.log(‘Invalid video metadata JSON.’);}}},onContentBegin: function (containerId, cvpId, contentId) {CNN.VideoPlayer.reverseAutoMute(containerId);CNN.VideoPlayer.isFirstVideoInCollection(containerId, contentId);/** Before the video ad starts, the freewheel companion ad* html needs to be placed on the page so that it can be* triggered by Freewheel to display the companion ad.* onContentBegin triggers updateCompanionLayout which* handles the logic to switch from epic to companion ads*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.companion.updateCompanionLayout(‘restoreFreewheel’);}clearTimeout(moveToNextTimeout);fastdom.mutate(function () {CNN.share.reloadShareBar();});updateCurrentlyPlaying(contentId);jQuery(document).triggerVideoContentStarted();},onContentComplete: function (containerId, cvpId, contentId) {navigateToNextVideo(contentId);},onContentEnd: function (containerId, cvpId, contentId) {/** When the video content ends playing, remove the epic ad* and prepare the freewheel companion ad for the next video*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.companion.updateCompanionLayout(‘restoreFreewheel’);}navigateToNextVideo(contentId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(false);}}},onCVPVisibilityChange: function (containerId, cvpId, visible) {CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, visible);}};if (typeof configObj.context !== ‘string’ || configObj.context.length
Mexico earthquake (6 Videos)