Compartir

'); $ vidEndSlate.removeClass (' video__end-slate – inactive ') addClass (' video__end-slate – active); CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? ,,,,,,,,,,,,,,,,,,,,, 100% ', sección:' doméstico ', perfil:' expansión ', red:' cnn ', markupId:' large-media_0 ', adsection:' const-article-pagetop ', frameWidth: 100% ', posterImageOverride: {"mini": {"height": 124, "width": 220, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam /assets/170306122702-trump-travel-ban-3-6-2017-card-small-169.png"},"xsmall":{"height":173,"width":307,"type":"jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170306122702-trump-travel-ban-3-6-2017-card-medium-plus-169.png "}," pequeño ": {" height ": 259," width ": 460," tipo ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170306122702-trump-travel "medium": 438, "width": 780, "type": "jpg", "uri": "/ -ban-3-6-2017-card-large-169.png" /i2.cdn.cnn.com/cnnnext/dam/assets/170306122702-trump-travel-ban-3-6-2017-card-exlarge-169.png"},"large":{"height":619, "width": 1100, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnne text / html: texttt {{{{{{{{{{{{{{{{}}}}} : "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170306122702-trump-travel-ban-3-6-2017-card-full-169.png"}, "mini1x1": 120, "width": 120, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170306122702-trump- ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, mutePlayerEnabled = false , nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = falso, videoPinner, videoEndSlateImpl; si (CNN.autoPlayVideoExist === falso) {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.VideoP layer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); videoEndSlateImpl = new CNN.VideoEndSlate ('grande-media_0'); / *** Busca el siguiente video ID y URL de la colección actual, si está disponible. * @param currentVideoId El video que se está reproduciendo actualmente * @param containerId El Id del contenedor principal del elemento de video * / function 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 (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 () () () () () () () () () () () () () () videoInformación.ResultadoAnalytics ('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