Compartir

'); $ 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/12/06 / jerusalem-holy-sites-ak-sje-lon-orig-expl.cnn', ancho: '100%' , alto: '100%', sección: 'nacional', perfil: 'expansión', red: 'cnn', markupId: 'cuerpo-texto_10', subsección '' const-article-inpage ', frameWidth:' 100% ' , frameHeight: '100%', posterImageOverride: {"mini": {"altura": 144, "ancho": 256, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext /dam/assets/141030150900-temple-mount-hp-video.jpg"},"xsmall":{"height":169,"width":300,"type":"jpg","uri":"/ /cdn.cnn.com/cnnnext/dam/assets/141030150900-temple-mount-story-body.jpg"},"small":{"height":360,"width":640,"type":"jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/141030150900-temple-mount-story-top.jpg"},"medium":{"height":552,"width ": 980, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/141030150900-temple-mount-horizontal-large-gallery.jpg"}, "large": { "altura": 552, "ancho": 980, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/141030150900-temple-mount-horizontal-large-gallery .jpg "}," fu ll16x9 ": {" altura ": 552," ancho ": 980," tipo ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/141030150900-temple-mount-horizontal -large-gallery.jpg "}," mini1x1 ": {" altura ": 60," ancho ": 60," tipo ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam /assets/141030150900-temple-mount-topics.jpg"}}},autoStartVideo = false, isVideoReplayClicked = 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 (document.getElementById (configObj.markupId)); CNN.VideoPlayer.showFlashSlate (containerEl);} else {CNN.autoPlayVideoExist = true;}}} configObj.autostart = autoStartVideo; CNN.VideoPlayer. setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, es VideoReplayClicked, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); videoEndSlateImpl = new CNN.VideoEndSlate ('body-text_10'); / *** Busca el siguiente ID de video y URL en la colección actual, si está disponible . * @param currentVideoId El video que se está reproduciendo actualmente * @param containerId El contenedor principal Id del elemento de video * / función findNextVideo (currentVideoId) {var i, vidObj; if (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) .pageVis.isDocumentVisible ()); if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {var containerClassId = '#' + containerId; if (jQuery (containerClassId) .parents ('. js- pg-rail-tall__head '). length) {videoPinner = new CNN.VideoPinner (containerClassId); videoPinner.init ();} else {CNN.VideoPlayer.hideThumbnail (containerId);}}}, / ** Escuche los metadatos evento que se dispara inmediatamente después de que termina el anuncio y comienza la reproducción del video 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 ainerId)). parent (). find ('.js-video__end-slate'). eq (0) .length; CNN.VideoSourceUtils.updateSource (containerId, metadata); if (endSlateLen> 0) {videoEndSlateImpl.fetchAndShowRecommendedVideos (metadata) );}}, onAdPlay: function (containerId, cvpId, token, mode, id, duration, 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 ();}}}, onTrackingFullscreen: function (containerId , PlayerId, dataObj) {CNN.VideoPlayer.handleFullscreenChange (containerId, dataObj);}, onContentPlay: function (containerId, cvpId, event) {var playerInstance, prevVideoId; / ** Cuando el contenido del video comienza a reproducirse, inyecte datos analíticos * para Aspen (si está habilitado) y el diseño del anuncio complementario * (si se configuró cuando se reprodujo el anuncio) deberían volver a la distribución del anuncio * épico. onContentPlay llama a updateCompanionLayout * con el diseño 'restoreEpicAds' para hacer que este modifique * / 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 === '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 = '';}} 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.animateDown ();}}}, 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)). parent (). find ('. js-video__end-slate '). eq (0); if ($ endSlate.length> 0) {$ endSlate.removeClass (' video__end-slate – activo '). addClass (' video__end-slate – inactive '); }}}}, 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 (document) .triggerVideoContentStarted ();}, onContentComplete: function (containerId, cvpId, contentId ) {if (CNN.companion && typeof CNN.companion.updateCompanionLayout === 'function') {CNN.companion.updateCompanionLayout ('restoreFreewheel');} navigateToNextVideo (contentId, containerId);}, onContentEnd: function (conta inerId, cvpId, contentId) {if (Modernizr &&! Modernizr.phone &&! Modernizr.mobile &&! Modernizr.tablet) {if (typeof videoPinner! == 'undefined' && videoPinner! == null) {videoPinner.setIsPlaying (falso );}}}, enCVPVisibilityChange: 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)? true: false; CNN.VideoPlayer.getLibrary (configObj, callbackObj, isLivePlayer);}); / * videodemanddust es una característica predeterminada del inyector * / CNN.INJECTOR.scriptComplete ('videodemanddust');

Fuente CNN

No hay comentarios