‘)$vidEndSlate.removeClass(‘video__stop-slate–inactive’).addClass(‘video__stop-slate–active’)}}CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === accurate) ? accurate : falsevar configObj = thumb: ‘none’,video: ‘world/2017/08/28/western-raqqa-syria-drone-footage-sdg-lon-orig.cnn’,width: ‘100%’,top: ‘100%’,section: ‘international’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-short article-pagetop’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: “mini”:”top”:124,”width”:220,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-modest-169.jpg”,”xsmall”:”top”:173,”width”:307,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-medium-plus-169.jpg”,”modest”:”top”:259,”width”:460,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-significant-169.jpg”,”medium”:”top”:438,”width”:780,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-exlarge-169.jpg”,”significant”:”top”:619,”width”:1100,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-tremendous-169.jpg”,”full16x9″:”top”:900,”width”:1600,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-entire-169.jpg”,”mini1x1″:”top”:one hundred twenty,”width”:one hundred twenty,”kind”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/belongings/170828231608-western-raqqa-drone-footage-modest-eleven.jpg”,autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImplif (CNN.autoPlayVideoExist === false) autoStartVideo = trueif (autoStartVideo === accurate) if (turnOnFlashMessaging === accurate) autoStartVideo = falsecontainerEl = jQuery(doc.getElementById(configObj.markupId))CNN.VideoPlayer.showFlashSlate(containerEl) else CNN.autoPlayVideoExist = accurateconfigObj.autostart = autoStartVideoCNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled)CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId)videoEndSlateImpl = new CNN.VideoEndSlate(‘large-media_0’)/*** Finds the following video ID and URL in the current selection, if obtainable.* @param currentVideoId The video that is currently actively playing* @param containerId The father or mother container Id of the video element*/purpose findNextVideo(currentVideoId) var i,vidObjif (currentVideoId && jQuery.isArray(currentVideoCollection) && currentVideoCollection.length > ) for (i = i ) videoEndSlateImpl.showEndSlateForContainer()callbackObj = {onPlayerReady: purpose (containerId) CNN.VideoPlayer.reportLoadTime(containerId)CNN.VideoPlayer.handleInitialExpandableVideoState(containerId)CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible())if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.pill) var containerClassId = ‘#’ + containerIdif (jQuery(containerClassId).parents(‘.js-pg-rail-tall__head’).length) videoPinner = new CNN.VideoPinner(containerClassId)videoPinner.init() else CNN.VideoPlayer.hideThumbnail(containerId),/** Listen to the metadata party which fires suitable immediately after the advert finishes and the real video playback begins*/onContentEntryLoad: purpose(containerId, playerId, contentid, isQueue) CNN.VideoPlayer.showSpinner(containerId),onContentMetadata: purpose (containerId, playerId, metadata, contentId, period, width, top) var endSlateLen = jQuery(doc.getElementById(containerId)).father or mother().uncover(‘.js-video__stop-slate’).eq().lengthCNN.VideoSourceUtils.updateSource(containerId, metadata)if (endSlateLen > ) videoEndSlateImpl.fetchAndShowRecommendedVideos(metadata),onAdPlay: purpose (containerId, cvpId, token, method, id, period, blockId, adType) clearTimeout(moveToNextTimeout)CNN.VideoPlayer.hideSpinner(containerId)if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(accurate)videoPinner.animateDown(),onContentPlay: purpose (containerId, cvpId, party) var playerInstance,prevVideoId/** When the video material starts actively playing, inject analytics information* for Aspen (if enabled) and the companion advert layout* (if it was set when the advert played) ought to swap again to* epic advert layout. onContentPlay phone calls updateCompanionLayout* with the ‘restoreEpicAds’ layout to make this swap*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘restoreEpicAds’)clearTimeout(moveToNextTimeout)CNN.VideoPlayer.hideSpinner(containerId)if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) else playerInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 ,onContentReplayRequest: purpose (containerId, cvpId, contentId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(accurate)var $endSlate = jQuery(doc.getElementById(containerId)).father or mother().uncover(‘.js-video__stop-slate’).eq()if ($endSlate.length > ) $endSlate.removeClass(‘video__stop-slate–active’).addClass(‘video__stop-slate–inactive’)},onContentBegin: purpose (containerId, cvpId, contentId) CNN.VideoPlayer.mutePlayer(containerId)if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘removeEpicAds’)CNN.VideoPlayer.hideSpinner(containerId)clearTimeout(moveToNextTimeout)CNN.VideoSourceUtils.clearSource(containerId)jQuery(doc).triggerVideoContentStarted(),onContentComplete: purpose (containerId, cvpId, contentId) if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) CNN.companion.updateCompanionLayout(‘restoreFreewheel’)navigateToNextVideo(contentId, containerId),onContentEnd: purpose (containerId, cvpId, contentId) if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.pill) if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) videoPinner.setIsPlaying(false),onCVPVisibilityChange: purpose (containerId, cvpId, noticeable) CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, noticeable)}if (typeof configObj.context !== ‘string’ || configObj.context.length ) configObj.adsection = window.ssidCNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === accurate) ? accurate : falseCNN.VideoPlayer.getLibrary(configObj, callbackObj, isLivePlayer)})/* videodemanddust is a default aspect of the injector */CNN.INJECTOR.scriptComplete(‘videodemanddust’)

Leave a Reply