‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–lively’);;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = thumb: ‘none’,video: ‘world/2017/03/thirteen/orig-npw-isis-explainer-ejk.cnn’,width: ‘one hundred%’,peak: ‘one hundred%’,part: ‘home’,profile: ‘enlargement’,community: ‘cnn’,markupId: ‘physique-text_26’,adsection: ‘const-article-inpage’,frameWidth: ‘one hundred%’,frameHeight: ‘one hundred%’,posterImageOverride: “mini”:”peak”:124,”width”:220,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-small-169.jpg”,”xsmall”:”peak”:173,”width”:307,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-medium-plus-169.jpg”,”small”:”peak”:259,”width”:460,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-giant-169.jpg”,”medium”:”peak”:438,”width”:780,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-exlarge-169.jpg”,”giant”:”peak”:619,”width”:1100,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-tremendous-169.jpg”,”full16x9″:”peak”:900,”width”:1600,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-full-169.jpg”,”mini1x1″:”peak”:one hundred twenty,”width”:one hundred twenty,”sort”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170313104817-npw-isis-explainer-small-eleven.jpg”,autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) autoStartVideo = false;if (autoStartVideo === true) if (turnOnFlashMessaging === true) autoStartVideo = false;containerEl = jQuery(doc.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);videoEndSlateImpl = new CNN.VideoEndSlate(‘physique-text_26’);/*** Finds the subsequent video ID and URL within the present assortment, if obtainable.* @param currentVideoId The video that’s presently enjoying* @param containerId The dad or mum container Id of the video component*/perform findNextVideo(currentVideoId) var i,vidObj;if (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.size > zero) for (i = zero; i zero) videoEndSlateImpl.showEndSlateForContainer();callbackObj = onPlayerReady: perform (containerId) CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.handleInitialExpandableVideoState(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) var containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).mother and father(‘.js-pg-rail-tall__head’).size) videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.init(); else CNN.VideoPlayer.hideThumbnail(containerId);,/** Take heed to the metadata occasion which fires proper after the advert ends and the precise video playback begins*/onContentEntryLoad: perform(containerId, playerId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId);,onContentMetadata: perform (containerId, playerId, metadata, contentId, period, width, peak) var endSlateLen = jQuery(doc.getElementById(containerId)).father or mother().discover(‘.js-video__end-slate’).eq(zero).size;CNN.VideoSourceUtils.updateSource(containerId, metadata);if (endSlateLen > zero) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata);,onAdPlay: perform (containerId, cvpId, token, mode, id, period, blockId, adType) clearTimeout(moveToNextTimeout);if (blockId === zero) (new Picture()).src = “http://visitors.outbrain.com/community/trackpxl?advid=814&motion=view”;CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);videoPinner.animateDown();,onContentPlay: perform (containerId, cvpId, occasion) ,onContentReplayRequest: perform (containerId, cvpId, contentId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(true);var $endSlate = jQuery(doc.getElementById(containerId)).dad or mum().discover(‘.js-video__end-slate’).eq(zero);if ($endSlate.size > zero) $endSlate.removeClass(‘video__end-slate–lively’).addClass(‘video__end-slate–inactive’);,onContentBegin: perform (containerId, cvpId, contentId) CNN.VideoPlayer.mutePlayer(containerId);if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.VideoPlayer.hideSpinner(containerId);clearTimeout(moveToNextTimeout);CNN.VideoSourceUtils.clearSource(containerId);jQuery(doc).triggerVideoContentStarted();,onContentComplete: perform (containerId, cvpId, contentId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘perform’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’);navigateToNextVideo(contentId, containerId);,onContentEnd: perform (containerId, cvpId, contentId) if (Modernizr && !Modernizr.telephone && !Modernizr.cellular && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(false);,onCVPVisibilityChange: perform (containerId, cvpId, seen) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, seen);;if (typeof configObj.context !== ‘string’ || configObj.context.size zero) configObj.adsection = window.ssid;CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;CNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer););/* videodemanddust is a default function of the injector */CNN.INJECTOR.scriptComplete(‘videodemanddust’);