‘);$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/05/20/president-rouhani-re-election-iran-state-media-sot.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/170517115415-hassan-rouhani-khamenei-portrait-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“videoCMSUrl”:”/videos/world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”,”videoId”:”world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”,”videoUrl”:”/videos/world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn”,”videoUrl”:”/videos/world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn/video/playlists/iran-elections/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/19/iran-elections-becky-anderson-lkl.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-elections-becky-anderson-lkl.cnn”,”videoUrl”:”/videos/world/2017/05/19/iran-elections-becky-anderson-lkl.cnn/video/playlists/iran-elections/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn”,”videoUrl”:”/videos/world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn/video/playlists/iran-elections/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn”,”videoUrl”:”/videos/world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn/video/playlists/iran-elections/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn/index.xml”,”videoId”:”world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn”,”videoUrl”:”/videos/world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn/video/playlists/iran-elections/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn/video/playlists/iran-elections/”}],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/05/20/president-rouhani-re-election-iran-state-media-sot.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-22ia8xe’,videoDescriptionDivId: ‘js-video_description-22ia8xe’,videoDurationDivId: ‘js-video_duration-22ia8xe’,videoTitleDivId: ‘js-leaf-video_headline-22ia8xe’,videoSourceDivId: ‘js-video_sourceName-22ia8xe’});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”:[“Iranian President Hassan Rouhani has won re-election, according to state TV, defeating his conservative challenger Ebrahim Raisi.”],”descriptionPlainText”:”Iranian President Hassan Rouhani has won re-election, according to state TV, defeating his conservative challenger Ebrahim Raisi.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Iran State TV congratulates Rouhani on victory”,”headlinePlainText”:”Iran State TV congratulates Rouhani on victory”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Iranian President Hassan Rouhani gives a press conference in the capital Tehran on April 10, 2017.nRouhani is expected to run for a second term on May 19, 2017 but said this press conference was “not about elections”. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images)”,”imageAlt”:”Iranian President Hassan Rouhani gives a press conference in the capital Tehran on April 10, 2017.nRouhani is expected to run for a second term on May 19, 2017 but said this press conference was “not about elections”. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images)”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517115415-hassan-rouhani-khamenei-portrait-small-11.jpg”}},”responsiveImage”:true}},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”,”width”:””,”height”:””,”videoCMSUri”:”/videos/world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”,”videoId”:”world/2017/05/20/president-rouhani-re-election-iran-state-media-sot.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”4:43 AM ET, Sat May 20, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Iranian voters flock to polling stations in an election that pits incumbent President Hassan Rouhani against strong conservative opposition. u003ca href=”http://www.cnn.com/profiles/frederik-pleitgen”>CNN’s Fred Pleitgenu003c/a> reports.”],”descriptionPlainText”:”Iranian voters flock to polling stations in an election that pits incumbent President Hassan Rouhani against strong conservative opposition. CNN’s Fred Pleitgen reports.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Iran presidential election sees high turnout”,”headlinePlainText”:”Iran presidential election sees high turnout”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Voters wait to get ballots to cast in the presidential and municipal council election at a polling station in Tehran, Iran, Friday, May 19, 2017. Iranians began voting Friday in the country’s first presidential election since its nuclear deal with world powers, as incumbent Hassan Rouhani faced a staunch challenge from a hard-line opponent over his outreach to the wider world. (AP Photo/Vahid Salemi)”,”imageAlt”:”Voters wait to get ballots to cast in the presidential and municipal council election at a polling station in Tehran, Iran, Friday, May 19, 2017. Iranians began voting Friday in the country’s first presidential election since its nuclear deal with world powers, as incumbent Hassan Rouhani faced a staunch challenge from a hard-line opponent over his outreach to the wider world. (AP Photo/Vahid Salemi)”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519052055-07-iran-elections-0519-small-11.jpg”}},”responsiveImage”:true},”duration”:”2:01″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-high-turnout-pleitgen-pkg.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”5:42 PM ET, Fri May 19, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://edition.cnn.com/”,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Iranian voters are waiting hours in line to vote in the country’s presidential election. CNN’s Becky Anderson reports”],”descriptionPlainText”:”Iranian voters are waiting hours in line to vote in the country’s presidential election. CNN’s Becky Anderson reports”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Iran holds pivotal presidential elections”,”headlinePlainText”:”Iran holds pivotal presidential elections”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Iranian women queue to vote for the presidential and municipal councils elections, in the city of Qom, 78 miles (125 kilometers) south of the capital Tehran, Iran, Friday, May 19, 2017. (AP Photo/Ebrahim Noroozi)”,”imageAlt”:”Iranian women queue to vote for the presidential and municipal councils elections, in the city of Qom, 78 miles (125 kilometers) south of the capital Tehran, Iran, Friday, May 19, 2017. (AP Photo/Ebrahim Noroozi)”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519073418-iranian-women-vote-small-11.jpg”}},”responsiveImage”:true},”duration”:”3:31″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/19/iran-elections-becky-anderson-lkl.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/19/iran-elections-becky-anderson-lkl.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-elections-becky-anderson-lkl.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”9:06 AM ET, Fri May 19, 2017″,”sourceName”:”CNN”,”sourceLink”:”www.cnn.com”,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“CNN’su003ca href=”http://www.cnn.com/profiles/frederik-pleitgen”> Fred Pleitgenu003c/a> reports from Tehran where voters are casting their ballots to decide who will be the country’s next leader. “],”descriptionPlainText”:”CNN’s Fred Pleitgen reports from Tehran where voters are casting their ballots to decide who will be the country’s next leader.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Iranians vote to choose their next president”,”headlinePlainText”:”Iranians vote to choose their next president”,”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/170519024017-pleitgen-iran-presidential-election-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519024017-pleitgen-iran-presidential-election-small-11.jpg”}},”responsiveImage”:true},”duration”:”3:16″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-pleitgen-cnni-nr-lklv.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”2:26 AM ET, Fri May 19, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/”,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Polls have opened across Iran in what looks set to be a tight race, as Iranian President Hassan Rouhani seeks a second term. “],”descriptionPlainText”:”Polls have opened across Iran in what looks set to be a tight race, as Iranian President Hassan Rouhani seeks a second term.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”What’s at stake in Iran’s presidential election?”,”headlinePlainText”:”What’s at stake in Iran’s presidential election?”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Election officials check people’s ID cards at a polling station in Tehran on May 19, 2017.nIranians head to the polls for a vote that has become a referendum on President Hassan Rouhani’s policy of opening up to the world and efforts to rebuild the stagnant economy. / AFP PHOTO / Behrouz MEHRI (Photo credit should read BEHROUZ MEHRI/AFP/Getty Images)”,”imageAlt”:”Election officials check people’s ID cards at a polling station in Tehran on May 19, 2017.nIranians head to the polls for a vote that has become a referendum on President Hassan Rouhani’s policy of opening up to the world and efforts to rebuild the stagnant economy. / AFP PHOTO / Behrouz MEHRI (Photo credit should read BEHROUZ MEHRI/AFP/Getty Images)”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170519123645-02-iran-election-small-11.jpg”}},”responsiveImage”:true},”duration”:”3:51″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn/index.xml”,”videoId”:”world/2017/05/19/iran-presidential-election-daftari-cnni-nr-intv.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”2:00 AM ET, Fri May 19, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/”,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Analysts say Iranian President Hassan Rouhani’s chances at re-election are hurt by President Trump’s tough line on Iran. CNN’s u003ca href=”http://www.cnn.com/profiles/frederik-pleitgen”>Frederik Pleitgenu003c/a> examines the Trump effect on Iranian politics. “],”descriptionPlainText”:”Analysts say Iranian President Hassan Rouhani’s chances at re-election are hurt by President Trump’s tough line on Iran. CNN’s Frederik Pleitgen examines the Trump effect on Iranian politics.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”The Trump effect on Iran’s election”,”headlinePlainText”:”The Trump effect on Iran’s election”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Supporters of Iranian President and presidential candidate Hassan Rouhani hold up his portrait during a campaign rally in the capital Tehran on May 13, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images)”,”imageAlt”:”Supporters of Iranian President and presidential candidate Hassan Rouhani hold up his portrait during a campaign rally in the capital Tehran on May 13, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images)”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170517120551-rouhani-supporter-tehran-rally-small-11.jpg”}},”responsiveImage”:true},”duration”:”2:11″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn/index.xml”,”videoId”:”world/2017/05/17/iran-election-trump-effect-pleitgen-pkg.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”10:13 AM ET, Wed May 17, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/”,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”world”,”contentType”:””,”cta”:”share”,”descriptionText”:[“CNN’s Fred Pleitgen describes what life is like inside Iran, from the discussion of politics to popular cuisine.”],”descriptionPlainText”:”CNN’s Fred Pleitgen describes what life is like inside Iran, from the discussion of politics to popular cuisine.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”What’s life like inside Iran?”,”headlinePlainText”:”What’s life like inside Iran?”,”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/170518205555-tehran-iran-market-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170518205555-tehran-iran-market-small-11.jpg”}},”responsiveImage”:true},”duration”:”1:28″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn/video/playlists/iran-elections/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/05/18/inside-iran-reflection-fred-pleitgen-sje-lon-orig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”3:40 PM ET, Thu May 18, 2017″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/iran-elections/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”}],cardContents,i;for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {nextPlay = currentVideoCollection[getNextVideoIndex(currentVideoId)].videoId;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);}}, 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);if (blockId === 0) {(new Image()).src = “http://traffic.outbrain.com/network/trackpxl?advid=814&action=view”;}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