Compartir

'); $ vidEndSlate.removeClass (' video__end-slate – inactivo '). AddClass (' video__end-slate – active '); CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? true: false; var configObj = {thumb: 'none', video: 'cnnmoney / 2017/09/21 / jimmy-kimmel-bill-cassidy-day-2-jnd-orig-vstop.cnn', width: '100 % ', 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 / 170921023217-jimmy-kimmel-9-20-b-small-169.jpg "}," xsmall ": 173," width ": 307," type " "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170921023217-jimmy-kimmel-9-20-b-medium-plus-169.jpg"},"small" : {"height": 259, "width": 460, "type": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170921023217-jimmy-kimmel-9 -20-b-large-169.jpg "}," medium ": 438," width ": 780," tipo ":" jpg "," uri ":" // i2.cdn.cnn .com / cnnnext / dam / assets / 170921023217-jimmy-kimmel-9-20-b-exlarge-169.jpg "}," large ": 619," width ": 1100," type " "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170921023217-jimmy -kimmel-9-20-b-super-169.jpg "}," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // i2 .cdn.cnn.com / cnnnext / dam / assets / 170921023217-jimmy-kimmel-9-20-b-full-169.jpg "}," mini1x1 ": {" height ": 120, "tipo": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170921023217-jimmy-kimmel-9-20-b-small-11.jpg"}}} , autoEstartVideo = false, callbackObj, containerEl, currentVideoCollection = [{“videoCMSUrl”:”/videos/cnnmoney/2017/09/21/jimmy-kimmel-bill-cassidy-day-2-jnd-orig-vstop.cnn”,”videoId”:”cnnmoney/2017/09/21/jimmy-kimmel-bill-cassidy-day-2-jnd-orig-vstop.cnn”,”videoUrl”:”/videos/cnnmoney/2017/09/21/jimmy-kimmel-bill-cassidy-day-2-jnd-orig-vstop.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/18/fallon-meyers-fey-weekend-update-charlottesville-jnd-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/18/fallon-meyers-fey-weekend-update-charlottesville-jnd-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/18/fallon-meyers-fey-weekend-update-charlottesville-jnd-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/17/jimmy-kimmel-read-social-media-trump-jnd-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/17/jimmy-kimmel-read-social-media-trump-jnd-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/17/jimmy-kimmel-read-social-media-trump-jnd-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/16/late-night-trump-press-conference-jnd-orig-vstop.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/16/late-night-trump-press-conference-jnd-orig-vstop.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/16/late-night-trump-press-conference-jnd-orig-vstop.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/15/stephen-colbert-anthony-scaramucci-late-show-jnd-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/15/stephen-colbert-anthony-scaramucci-late-show-jnd-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/15/stephen-colbert-anthony-scaramucci-late-show-jnd-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/11/snl-weekend-update-trump-jr-russia-meeting-eric-trump-scaramucci-ekr-orig-vstop.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/11/snl-weekend-update-trump-jr-russia-meeting-eric-trump-scaramucci-ekr-orig-vstop.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/11/snl-weekend-update-trump-jr-russia-meeting-eric-trump-scaramucci-ekr-orig-vstop.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/10/trump-north-korea-threat-colbert-fallon-kimmel-fsc-orig.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/10/trump-north-korea-threat-colbert-fallon-kimmel-fsc-orig.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/10/trump-north-korea-threat-colbert-fallon-kimmel-fsc-orig.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/09/trump-north-korea-corden-colbert-kimmel-fsc-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/09/trump-north-korea-corden-colbert-kimmel-fsc-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/09/trump-north-korea-corden-colbert-kimmel-fsc-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/04/late-night-mueller-grand-jury-jnd-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/04/late-night-mueller-grand-jury-jnd-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/04/late-night-mueller-grand-jury-jnd-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/03/late-night-affirmative-action-jnd-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/03/late-night-affirmative-action-jnd-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/03/late-night-affirmative-action-jnd-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/03/dave-chappelle-colbert-late-show-trump-snl-ekr-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/03/dave-chappelle-colbert-late-show-trump-snl-ekr-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/03/dave-chappelle-colbert-late-show-trump-snl-ekr-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/08/01/colbert-noah-meyers-scaramucci-goodbye-orig-vstop-jnd.cnn/index.xml”,”videoId”:”cnnmoney/2017/08/01/colbert-noah-meyers-scaramucci-goodbye-orig-vstop-jnd.cnn”,”videoUrl”:”/videos/cnnmoney/2017/08/01/colbert-noah-meyers-scaramucci-goodbye-orig-vstop-jnd.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/07/27/late-night-transgender-ban-military-trump-colbert-noah-fallon-ekr-orig-vstop.cnn/index.xml”,”videoId”:”cnnmoney/2017/07/27/late-night-transgender-ban-military-trump-colbert-noah-fallon-ekr-orig-vstop.cnn”,”videoUrl”:”/videos/cnnmoney/2017/07/27/late-night-transgender-ban-military-trump-colbert-noah-fallon-ekr-orig-vstop.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/07/26/trump-boy-scouts-colbert-fallon-meyers-corden-fsc-orig-vstan.cnn/index.xml”,”videoId”:”cnnmoney/2017/07/26/trump-boy-scouts-colbert-fallon-meyers-corden-fsc-orig-vstan.cnn”,”videoUrl”:”/videos/cnnmoney/2017/07/26/trump-boy-scouts-colbert-fallon-meyers-corden-fsc-orig-vstan.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/07/25/colbert-meyers-noah-fallon-scaramucci-late-night-orig-vstan-cws.cnn/index.xml”,”videoId”:”cnnmoney/2017/07/25/colbert-meyers-noah-fallon-scaramucci-late-night-orig-vstan-cws.cnn”,”videoUrl”:”/videos/cnnmoney/2017/07/25/colbert-meyers-noah-fallon-scaramucci-late-night-orig-vstan-cws.cnn/video/playlists/money-and-late-night-laughs/”},{“videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/06/20/colbert-meyers-noah-trump-attorney-sekulow-late-night-vstan-orig-cws.cnn/index.xml”,”videoId”:”cnnmoney/2017/06/20/colbert-meyers-noah-trump-attorney-sekulow-late-night-vstan-orig-cws.cnn”,”videoUrl”:”/videos/cnnmoney/2017/06/20/colbert-meyers-noah-trump-attorney-sekulow-late-night-vstan-orig-cws.cnn/video/playlists/money-and-late-night-laughs/”}]currentVideoCollectionId = '', isLivePlayer = false, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = CNN.autoPlayVideoExist === false) {autoStartVideo = true; si (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, isL ivePlayer, mutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); var embedLinkHandler = {}, videoPinner, embedCodeCopy; función onVideoCarouselItemClicked (evt) {'use strict'; var videoId, articleElem, videoPlayer, thumbImageElem, thumbImageLargeSource, overrides = {videoCollection: this.videoCollection, autostart: false}, shouldStartVideo = false, playerInstance; intenta {articleElem = jQuery (evt.currentTarget) .find ('article'); thumbImageElem = jQuery (articleElem) .find ('. '); videoId = articleElem.data (). videoId; if (CNN.VideoPlayer.getLibraryName (configObj.markupId) ===' fave ') {playerInstance = FAVE.player.getInstance (configObj.markupId); Utils.existsObject (playerInstance) && typeof playerInstance.getVideoData === 'function' && playerInstance.getVideoData () .id! == videoId) {/ * Elimina la secuencia de comandos de metadatos del videoobjeto.Si el usuario hace clic en otro video que el inicial * / jQuery (articleElem ) .closest ('.cn-carousel-medium-strip'). parent (). find ('scr ipt [name=”metaScript”] ') remove (); playerInstance.play (videoId, anula);}} 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í * pase en la miniatura, también. * / if (! videoPlayer.videoInstance.cvp) {if (tipo de 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/09/21 / jimmy-kimmel-bill-cassidy-day-2-jnd-orig-vstop.cnn", isEmbeddable: "yes"}; 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. '$ 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-jmz203' , videoDescriptionDivId: 'js-video_description-jmz203', videoDurationDivId: 'js-video_duration-jmz203', videoTitleDivId: 'js-leaf-video_headline-jmz203', 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

Deja un comentario...