Compartir

'); $ vidEndSlate.removeClass (' video__end-slate-inactive '). AddClass (' video__end-slate-active '); CNN.autoPlayVideoExist = (CNN .autoPlayVideoExist === true)? ,,,,,,,,,,,,,,,,,,,,,,,,,,,, , altura: '100%', sección: 'doméstico', perfil: 'expansión', red: 'cnn', markupId: 'large-media_0', adsection: 'const-video-leaf', frameWidth: , frameHeight: '100%', posterImageOverride: {"mini": {"height": 124, "width": 220, "tipo": "jpg", "uri": "// i2.cdn.cnn.com /cnnnext/dam/assets/171013114126-emma-thompson-harvey-weinstein-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg ", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/171013114126-emma-thompson-harvey-weinstein-medium-plus-169.jpg"},"small":{"height": 259, "anchura": 460, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/171013114126-emma-thompson-harvey-weinstein-large-169 .jpg "}," medium ": 438," width ": 780," type ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets /171013114126-emma-thompson-harvey-weinstein-exlarge-169.jpg"},"large":{"height":619,"width":1100,"type":"jpg","uri ": "//i2.cdn.cnn.com/cnnnext/dam/assets/171013114126-emma-thompson-harvey-weinstein-super-169.jpg"},"full16x9":{"height":900,"width": 1600, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/171013114126-emma-thompson-harvey-weinstein-full-169.jpg"}, " mini1x1 ": {" height ": 120," width ": 120," tipo ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/171013114126-emma-thompson ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, SiguienteVideoUrl = {{{{{{{{{{{{{{{1}}}}} = jQuery (document.getElementById (configObj.markupId)); CNN.VideoPlayer.showFlashSlate (containerEl);} else {CNN.autoPlayVideoExist = true;}}} configObj.autostart = au toStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); var embedLinkHandler = {}, videoPinner, embedCodeCopy; function onVideoCarouselItemClicked (evt) {'use estricto '; var videoId, articleElem, videoPlayer, thumbImageElem, thumbImageLargeSource, anula = {videoCollection: this.videoCollection, autostart: false}, shouldStartVideo = false, playerInstance; intenta {articleElem = jQuery (evt.currentTarget) ); thumbImageElem = jQuery (articleElem) .find ('. media__image'); videoId = articleElem.data (). videoId; if (CNN.VideoPlayer.getLibraryName (configObj.markupId) === 'fave') {playerInstance = () () () () () () () () {/ * Eliminar la secuencia de comandos de metadatos de videoobjeto. Si el usuario hace clic distinto de lo inicial adn video * / jQuery (articleElem) .closest ('.cn-carousel-medium-strip'). parent (). find ('script [name=”metaScript”]') remove (); playerInstance.play (videoId, overrides); }} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance (). getPlayerByContainer (configObj.markupId); if (videoPlayer && videoPlayer.videoInstance) {/ ** si videoPlayer.videoInstance.cvp es nulo lo que significa que no se ha inicializado aún así * pass en la miniatura también. * / if (! videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem! == 'undefined' && thumbImageElem! == null) {thumbImageLargeSource = thumbImageElem.data () && thumbImageElem.data (). srcLarge? thumbImageElem.data (). srcLarge: 'none';} overrides.thumb = thumbImageLargeSource? (videoPlayer.videoInstance.config.video! == videoId) {/ * Elimina la secuencia de comandos de metadatos de videoobject. Si el usuario hace clic en otro que no sea inicial cargado video * / jQuery (articleElem) .closest ('.cn-carousel-medium-strip'). parent (). find ('script [name=”metaScript”]') removeVID () configObj.markupId, videoId, overrides);} / * El reproductor de video no es autoplay, así que init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start ();} catch (startError) {console.log } error de inicialización del reproductor de video + error);}} función setInitialVideoEmbed () {} function initialize () ) {var carousel = jQuery (document.getElementById ('cn-current_video_collection')). ​​find ('.js-owl-carousel'), owl; if (carrusel) {carousel.find ('.cn__column.carousel__content__item'). find ('a'). removeAttr ('hr e) jQuery (carrusel) .on ('clic', '.cn__column.carousel__content__item', onVideoCarouselItemClicked);}} if (CNN.VideoPlayer.getLibraryName (configObj.markupId) === 'videoLoader') {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers? window.CNNVideoAPILoadCompleteHandlers: []; window.CNNVideoAPILoadCompleteHandlers.push (inicializar); window.CNNVideoAPILoadCompleteHandlers.push (setInitialVideoEmbed);} else {initialize ();} CNN.INJECTOR.executeFeature ('videx'). {var initMeta = {id: "cnnmoney / 2017/10/13 / emma-thompson-harvey-weinstein-predator-sje-lon-orig.cnnmoney", isEmbeddable: "yes"}; CNN.Videx.EmbedButton.updateCode initMeta);)) fall (function () {throw 'Incapaz de buscar el videx bundle.';); function updateCurrentlyPlaying (videoId) {var videoCollectionId = 'current_video_collection', videocardContents = getCurrentVideoCardContents (videoId), carousel = jQuery document.getElementById ('cn-current_video_collection')). ​​find ('.js-owl-carousel'), dominio = CNN.Host.domain || (document.location.protocol + '//' + document.location.hostname), owl, $ owlFirstItem, $ owlPrevItem, showDetailsSpanContent = '', gigyaShareElement, showIndex, whatsappShareElement, $ carouselContentItems = jQuery ('.carousel__content__item', documento. getElementById ('cn-current_video_collection')); gigyaShareElement = jQuery ('div.js-gigya-sharebar'); if (typeof gigyaShareElement! == 'undefined') {jQuery (gigyaShareElement) .attr ('data-title' videocardContents.headlinePlainText || ''); jQuery (gigyaShareElement) .attr ('data-description', videocardContents.descriptionPlainText || ''); jQuery (gigyaShareElement) .attr ('data-link', domain + videocardContents.url | jQuery (gigyaShareElement) .attr ('data-image-src', videocardContents.media.elementContents.imageUrl || '');) whatsappShareElement = jQuery ('div.share-bar-whatsapp-container') ; if (typeof whatsappShareElement! == 'undefined') {jQuery (whatsappShareElement) .attr ('data-title', videocardContents.headlinePlainText || ''); jQuery (whatsappShareElement) .attr ('data-storyurl', dominio + videocardContents.url || ');} if (carrusel && currentVideoCollectionContainsId (videoId)) {owl = carousel.data (' owl.carousel ') || {}; showIndex = getCurrentVideoIndex (videoId); if (typeof owl.to === 'function') {owl.to (showIndex);} $ owlPrevItem = CNN.Utils.exists (owl. $ element)? $ owlPrevItem.removeClass ('cd – active'); $ owlPrevItem. '$ owlPrevItem.removeClass (' cd – active '); find ('media__over-text'). remove (); $ owlPrevItem.find ('. media__icon'). show (); $ owlFirstItem = CNN.Utils.exists (owl._items)? jQuery (owl._items [showIndex]): $ carouselContentItems.eq (showIndex); $ owlFirstItem.find ('. cd'). addClass ('cd-active'); $ owlFirstItem.find -child ') .append ('

En Reproducción

'); if (Modernizr &&! Modernizr.phone) {$ owlFirstItem.find ('. media__icon ') hide ();}} CNN.Videx. Metadata.init ({dateCreated: videocardContents.dateCreated, descriptionText: videocardContents.descriptionText, duration: videocardContents.duration, sourceLink: videocardContents.sourceLink, sourceName: videocardContents.sourceName, title: videocardContents.headlineText}, {videoCollectionDivId: 'cn-1l06vqo' , videoDescriptionDivId: 'js-video_description-1l06vqo', videoDurationDivId: 'js-video_duration-1l06vqo', videoTitleDivId: 'js-leaf-video_headline-1l06vqo', videoSourceDivId: 'js-video_sourceName- .exists (videocardContents.showName)) {if (CNN.Utils.exists (videocardContents.showUrl)) {showDetailsSpanContent = '' + videocardContents.showName + ' | ';} else {showDetailsSpanContent = videocardContents.showName +' | () () () () () () () () () () () () () () () () ()) $ showName (), $ showNombre = jQuery ('. metadata – show__name'); fastdom.mutate (function updateShowInfo () {if (! $ isShowDetailsSpanExists) {$ show.prepend ('

Fuente CNN

No hay comentarios