‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2017/08/31/cnn-heroes-manzi-mixed.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_us_heroes_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170831133333-cnn-heroes-manzi-mixed-00005521-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“videoCMSUrl”:”/videos/us/2017/08/31/cnn-heroes-manzi-mixed.cnn”,”videoId”:”us/2017/08/31/cnn-heroes-manzi-mixed.cnn”,”videoUrl”:”/videos/us/2017/08/31/cnn-heroes-manzi-mixed.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/07/13/heroes-grammer-mixed.cnn/index.xml”,”videoId”:”us/2017/07/13/heroes-grammer-mixed.cnn”,”videoUrl”:”/videos/us/2017/07/13/heroes-grammer-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/07/13/heroes-grammer-extra.cnn/index.xml”,”videoId”:”us/2017/07/13/heroes-grammer-extra.cnn”,”videoUrl”:”/videos/us/2017/07/13/heroes-grammer-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/06/22/cnn-heroes-wright-mixed.cnn/index.xml”,”videoId”:”us/2017/06/22/cnn-heroes-wright-mixed.cnn”,”videoUrl”:”/videos/us/2017/06/22/cnn-heroes-wright-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/health/2017/06/23/cnn-heroes-wright-extra.cnn/index.xml”,”videoId”:”health/2017/06/23/cnn-heroes-wright-extra.cnn”,”videoUrl”:”/videos/health/2017/06/23/cnn-heroes-wright-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/06/08/cnn-heroes-khali-sweeney.cnn/index.xml”,”videoId”:”us/2017/06/08/cnn-heroes-khali-sweeney.cnn”,”videoUrl”:”/videos/us/2017/06/08/cnn-heroes-khali-sweeney.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/06/01/cnn-heroes-sandoval-mixed.cnn/index.xml”,”videoId”:”us/2017/06/01/cnn-heroes-sandoval-mixed.cnn”,”videoUrl”:”/videos/us/2017/06/01/cnn-heroes-sandoval-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/06/01/cnn-heroes-sandoval-extra.cnn/index.xml”,”videoId”:”us/2017/06/01/cnn-heroes-sandoval-extra.cnn”,”videoUrl”:”/videos/us/2017/06/01/cnn-heroes-sandoval-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/06/08/cnn-heroes-sweeney-extra.cnn/index.xml”,”videoId”:”us/2017/06/08/cnn-heroes-sweeney-extra.cnn”,”videoUrl”:”/videos/us/2017/06/08/cnn-heroes-sweeney-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/05/18/cnn-heroes-adams-mixed.cnn/index.xml”,”videoId”:”us/2017/05/18/cnn-heroes-adams-mixed.cnn”,”videoUrl”:”/videos/us/2017/05/18/cnn-heroes-adams-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/05/18/cnn-heroes-adams-extra.cnn/index.xml”,”videoId”:”us/2017/05/18/cnn-heroes-adams-extra.cnn”,”videoUrl”:”/videos/us/2017/05/18/cnn-heroes-adams-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2017/05/12/cnnheroes-welcome-project-stevens-mufleh.cnn/index.xml”,”videoId”:”tv/2017/05/12/cnnheroes-welcome-project-stevens-mufleh.cnn”,”videoUrl”:”/videos/tv/2017/05/12/cnnheroes-welcome-project-stevens-mufleh.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/05/04/heroes-lakhani-mixed.cnn/index.xml”,”videoId”:”us/2017/05/04/heroes-lakhani-mixed.cnn”,”videoUrl”:”/videos/us/2017/05/04/heroes-lakhani-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/05/04/heroes-lakhani-extra.cnn/index.xml”,”videoId”:”us/2017/05/04/heroes-lakhani-extra.cnn”,”videoUrl”:”/videos/us/2017/05/04/heroes-lakhani-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/27/cnn-heroes-yosef-mixed.cnn/index.xml”,”videoId”:”world/2017/04/27/cnn-heroes-yosef-mixed.cnn”,”videoUrl”:”/videos/world/2017/04/27/cnn-heroes-yosef-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/04/27/cnn-heroes-yosef-extra.cnn/index.xml”,”videoId”:”us/2017/04/27/cnn-heroes-yosef-extra.cnn”,”videoUrl”:”/videos/us/2017/04/27/cnn-heroes-yosef-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/20/heroes-meet-nom-mixed.cnn/index.xml”,”videoId”:”world/2017/04/20/heroes-meet-nom-mixed.cnn”,”videoUrl”:”/videos/world/2017/04/20/heroes-meet-nom-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/04/10/cnnheroes-heroes-in-the-classroom-extra.cnn/index.xml”,”videoId”:”us/2017/04/10/cnnheroes-heroes-in-the-classroom-extra.cnn”,”videoUrl”:”/videos/us/2017/04/10/cnnheroes-heroes-in-the-classroom-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/living/2017/04/10/cnnheroes-heroes-in-the-classroom-norton.cnn/index.xml”,”videoId”:”living/2017/04/10/cnnheroes-heroes-in-the-classroom-norton.cnn”,”videoUrl”:”/videos/living/2017/04/10/cnnheroes-heroes-in-the-classroom-norton.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2016/12/16/cnnheroes-heroes-in-the-classroom.cnn/index.xml”,”videoId”:”tv/2016/12/16/cnnheroes-heroes-in-the-classroom.cnn”,”videoUrl”:”/videos/tv/2016/12/16/cnnheroes-heroes-in-the-classroom.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/04/20/heroes-tawanda-nom-mix.cnn/index.xml”,”videoId”:”us/2017/04/20/heroes-tawanda-nom-mix.cnn”,”videoUrl”:”/videos/us/2017/04/20/heroes-tawanda-nom-mix.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/04/06/cnnheroes-christie-orig.cnn/index.xml”,”videoId”:”us/2017/04/06/cnnheroes-christie-orig.cnn”,”videoUrl”:”/videos/us/2017/04/06/cnnheroes-christie-orig.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2017/04/06/cnnheroes-christie-extra.cnn/index.xml”,”videoId”:”tv/2017/04/06/cnnheroes-christie-extra.cnn”,”videoUrl”:”/videos/tv/2017/04/06/cnnheroes-christie-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/03/30/cnnheroes-maddox-orig.cnn/index.xml”,”videoId”:”us/2017/03/30/cnnheroes-maddox-orig.cnn”,”videoUrl”:”/videos/us/2017/03/30/cnnheroes-maddox-orig.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/03/30/cnnheroes-maddox-extra.cnn/index.xml”,”videoId”:”us/2017/03/30/cnnheroes-maddox-extra.cnn”,”videoUrl”:”/videos/us/2017/03/30/cnnheroes-maddox-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/03/22/cnnheroes-myers-orig.cnn/index.xml”,”videoId”:”us/2017/03/22/cnnheroes-myers-orig.cnn”,”videoUrl”:”/videos/us/2017/03/22/cnnheroes-myers-orig.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/03/22/cnnheroes-myers-extra.cnn/index.xml”,”videoId”:”us/2017/03/22/cnnheroes-myers-extra.cnn”,”videoUrl”:”/videos/us/2017/03/22/cnnheroes-myers-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/health/2017/03/16/cnn-heroes-morissette-philbot-extra.cnn/index.xml”,”videoId”:”health/2017/03/16/cnn-heroes-morissette-philbot-extra.cnn”,”videoUrl”:”/videos/health/2017/03/16/cnn-heroes-morissette-philbot-extra.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/health/2017/03/16/cnn-heroes-morissette-nonprofit-mixed.cnn/index.xml”,”videoId”:”health/2017/03/16/cnn-heroes-morissette-nonprofit-mixed.cnn”,”videoUrl”:”/videos/health/2017/03/16/cnn-heroes-morissette-nonprofit-mixed.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/living/2017/03/01/cnn-heroes-nominate.cnn/index.xml”,”videoId”:”living/2017/03/01/cnn-heroes-nominate.cnn”,”videoUrl”:”/videos/living/2017/03/01/cnn-heroes-nominate.cnn/video/playlists/2017-cnn-heroes/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2017/03/07/cnnheroes-update-aristizabal-munoz.cnn/index.xml”,”videoId”:”tv/2017/03/07/cnnheroes-update-aristizabal-munoz.cnn”,”videoUrl”:”/videos/tv/2017/03/07/cnnheroes-update-aristizabal-munoz.cnn/video/playlists/2017-cnn-heroes/”}],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:”us/2017/08/31/cnn-heroes-manzi-mixed.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-2qalth’,videoDescriptionDivId: ‘js-video_description-2qalth’,videoDurationDivId: ‘js-video_duration-2qalth’,videoTitleDivId: ‘js-leaf-video_headline-2qalth’,videoSourceDivId: ‘js-video_sourceName-2qalth’});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

NO COMMENTS