Compartir

'); $ vidEndSlate.removeClass (' video__end-slate – inactive '). AddClass (' video__end-slate – active '); autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? true: false, configObj = {thumb: 'none', video: 'world / 2017/09/13 / mansión-huracán-refugio-foster-niños-florida-sje-lon-orig.cnn', ancho: % ', 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 / 170913135735-florida-mansion-foster-kids-shelter-irma-4-small-169.jpg "}," xsmall " "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170913135735-florida-mansion-foster-kids-shelter-irma-4-medium-plus-169 .jpg "}," small ": {" height ": 259," width ": 460," type ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets /170913135735-florida-mansion-foster-kids-shelter-irma-4-large-169.jpg"},"medium":{"height":438,"width":780,"type":"jpg ", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170913135735-florida-mansion-foster-kids-shelter-irma-4-exlarge-169.jpg"},"large": {"height": 619, "width": 1100, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170913135735-florida-mansion-foster- kids-shelter-irma-4-super-169.jpg "}," full16x9 ": {" altura ": 900," anchura ": 1600," tipo ":" jpg "," uri ":" // i2. cdn.cnn.com/cnnnext/dam/assets/170913135735-florida-mansion-foster-kids-shelter-irma-4-full-169.jpg"},"mini1x1":{"height":120,"width " : 120, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170913135735-florida-mansion-foster-kids-shelter-irma-4-small- 11.jpg ",,,,,,,,,,,,,,,,,,,,, , si se convierte en un objeto de la clase, si se utiliza un objeto de la clase, configObj.markupId)); CNN.VideoPlayer.showFlashSl (containerEl);} else {CNN.autoPlayVideoExist = true;}}} configObj.autostart = autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj. ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, = false, playerInstance; try {articleElem = jQuery (evt.currentTarget) .find ('article'); thumbImageElem = jQuery (articleElem) .find ('. media__image'); videoId = articleElem.data () CNN.VideoPlayer.getLibraryName (configObj.markupId) === 'fave') {playerInstance = FAVE.player.getInstance (configObj.markupId); si (CNN.Utils.existsObject (playerInstance) && typeof playerInstance.getVideoData === 'función '&& playerInstance.getVideoData (). id! == video Id) {/ * Elimina la secuencia de comandos de metadatos del videoobjeto.Si el usuario hace clic en otro que el video cargado inicialmente * / jQuery (articleElem) .closest ('.cn-carousel-medium-strip') parent (). Find ('script [19459015)()())else{videoPlayer=CNNVIDEOAPICNNVideoManagergetInstance()getPlayerByContainer(configObjmarkupId);if(videoPlayer&&videoPlayervideoInstance){/**sivideoPlayervideoInstancecvpesnuloloquesignificaquenosehainicializadoaúnasí*pasarenlaminiaturatambién*/if(!videoPlayervideoInstancecvp){if(tipodethumbImageElem!=='undefined'&&thumbImageElem!null){thumbImageLargeSource=thumbImageElemdata()&&thumbImageElemdata()¿srcLarge?thumbImageElemdata()srcLarge:'none';}overridesthumb=thumbImageLargeSource?(videoPlayervideoInstanceconfigvideo!==videoId){/*EliminalasecuenciadecomandosdemetadatosdevideoobjectSielusuariohaceclicenotroquenoseainicialcargadovideo*/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: "world / 2017/09/13 / mansión-huracán-refugio-foster-niños-florida-sje-lon-orig.cnn", isEmbeddable: "sí"}; CNN.Videx.EmbedButton. updateCurrentlyPlaying (videoId) {var videoCollectionId = 'current_video_collection', videocardContents = getCurrentVideoCardContents (videoId), carousel = jQuery (document.getElementById ('cn-current_video_collection')). ​​find ('.js-owl-carousel'), domain = 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. 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, duración: videocardContents.duration, sourceLink: videocardContents.sourceLink, sourceName: videocardContents.sourceName, title: videocardContents.headlineText}, {videoCollectionDivId: 'cn-d4htbg' , videoDescriptionDivId: 'js-video_description-d4htbg', videoDurationDivId: 'js-video_duration-d4htbg', videoTitleDivId: 'js-leaf-video_headline-d4htbg', videoSourceDivId: .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