Compartir

'); $ vidEndSlate.removeClass (' video__end-slate-inactive '). AddClass (' video__end-slate – active); CNN.autoPlayVideoExist = CNN.autoPlayVideoExist === true)? true: false, var configObj = {thumb: 'none', video: 'tv / 2017/07/18 / exp-tsr-todd-baghdadi-dead-or-alive.cnn', ancho: 100% : '100%', sección: 'doméstico', perfil: 'expansión', red: 'cnn', markupId: 'large-media_0', adsection: 'const-article-pagetop', frameWidth: '100% : '100%', posterImageOverride: {"mini": {"height": 124, "width": 220, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext /dam/assets/170718180420-exp-tsr-todd-baghdadi-dead-or-alive-00002001-small-169.jpg"},"xsmall":{"height":173,"width":307,"type ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170718180420-exp-tsr-todd-baghdadi-dead-or-alive-00002001-medium-plus-169 .jpg "}," small ": {" height ": 259," width ": 460," type ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets /170718180420-exp-tsr-todd-baghdadi-dead-or-alive-00002001-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170718180420-exp-tsr-todd-baghdadi-dead-or-alive-00002001-exlarge-169.jpg "}," grande ": {" altura ": 619 , "anchura": 1100, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170718180420-exp-tsr-todd-baghdadi-dead-or- 00002001-super-169.jpg "}," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // i2.cdn.cnn. com / cnnnext / dam / assets / 170718180420 -exp-tsr-todd-baghdadi-dead-or-alive-00002001-full-169.jpg "}," mini1x1 ": {" height ": 120," width ": 120 , "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170718180420-exp-tsr-todd-baghdadi-dead-or-alive-00002001-small- 11.jpg "}}, autoStartVideo = false, callbackObj, containerEl, currentVideoCollection = []currentVideoCollectionId = '', isLivePlayer = false, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = false , si se convierte en un objeto de la clase, si se utiliza un objeto de la clase, configObj.markupId)); CNN.VideoPlayer.showFlashSlate (con CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId);} {CNN.autoPlayVideoExist = true;}}} configObj.autostart = autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled) ; videoEndSlateImpl = new CNN.VideoEndSlate ('large-media_0'); / *** Busca el siguiente ID de video y la URL de la colección actual, si está disponible. * @param currentVideoId El video que se está reproduciendo * @param containerId El padre Id de contenedor del elemento de video * / function findNextVideo (currentVideoId) {var i, vidObj; si (currentVideoId && jQuery.isArray (currentVideoCollection) && currentVideoCollection.length> 0) {for (i = 0; i 0) {videoEndSlateImpl.showEndSlateForContainer ();}}} callbackObj = {onPlayerReady: function (containerId) {CNN.VideoPlayer.reportLoadTime (containerId); CNN.VideoPlayer.handleInitialExpandableVideoState (containerId); CNN.VideoPlayer.handleAdOnCVPVisibilityChange (containerId, CNN (jQuery (containerClassId) .parents ('.js- (jQuery (containerClassId)), si (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {var containerClassId = ) {videoPinner = nuevo CNN.VideoPinner (containerClassId); videoPinner.init ();} else {CNN.VideoPlayer.hideThumbnail (containerId);}}}, / ** Escuche los metadatos (pg-rail-tall__head) evento que se activa justo después de que el anuncio termina y comienza la reproducción de vídeo real * / onContentEntryLoad: function (containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner (containerId);}, onContentMetadata: function (containerId, playerId, metadata, contentId, duration, width, height) {var endSlateLen = jQuery (document.getElementById (cont () () () () () () () () () () () () () () ), onAdPlay: function (containerId, cvpId, token, modo, id, duración, 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.animateDown ();}}}, onContentPlay: function (containerId , cvpId, event) {var playerInstance, prevVideoId; / ** Cuando el contenido de video comienza a reproducirse, inyecte datos analíticos * para Aspen (si está activado) y el diseño del anuncio complementario * (si se estableció cuando el anuncio se reproduce) a * diseño de anuncio épico. onContentPlay llama a updateCompanionLayout * con el layout 'restoreEpicAds' para hacer este switch * / if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('restoreEpicAds');} clearTimeout moveToNextTimeout); CNN.VideoPlayer.hideSpinner (containerId); if (CNN.VideoPlayer.getLibraryName (containerId) === 'fave') {playerInstance = FAVE.player.getInstance (containerId) || null;} else {playerInstance = containerId && window.cnnVideoManager.getPlayerByContainer (containerId) .videoInstance.cvp || null;} prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || '' if (playerInstance && typeof playerInstance.reportAnalytics === 'función') {if (prevVideoId.length === 0 && document.referrer && document.referrer.search (/ / videos //)> = 0 ) {prevVideoId = document.referrer.replace (/ ^ (?: http | https) : / / [^/] / videos / (. + . w +) (?: / video / playlists {/ video / $ 1 '); si (prevVideoId === document.referrer) {prevVideoId =' ';}} 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 && ! () ()), OnContentReplayRequest: function (containerId, cvpId, contentId) ) {if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.table t) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (true); var $ endSlate = jQuery (document.getElementById (containerId)). js-video__end-slate '). eq (0); if ($ endSlate.length> 0) {$ endSlate.removeClass (' video__end-slate – active '). addClass (' video__end-slate – inactivo '); }, onContentBegin: function (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 (documento) .triggerVideoContentStarted ();}, onContentComplete: function (containerId, cvpId, contentId ) {if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('restoreFreewheel');} navigateToNextVideo (contentId, containerId);}, onContentEnd: function (conta (if) (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 0) {configObj.adsection = window.ssid;} CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? es una característica por defecto del inyector * / CNN.INJECTOR.scriptComplete ('videodemanddust');

Fuente CNN

No hay comentarios