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/10/24 / syria-isis-fighters-underground-damon-ebof-pkg.cnn', ancho: '100%', altura : '100%', sección: 'nacional', perfil: 'expansión', red: 'cnn', markupId: 'large-media_0', subsección '' const-video-leaf ', frameWidth:' 100% ', frameHeight : '100%', posterImageOverride: {"mini": {"height": 124, "width": 220, "type": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam /assets/171024025134-syria-isis-fighters-underground-damon-pkg-1-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/171024025134-syria-isis-fighters-underground-damon-pkg-1-medium-plus-169.jpg"},"small " : {"altura": 259, "ancho": 460, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/171024025134-syria-isis-fighters-underground -damon-pkg-1-large-169.jpg "}," medium ": {" height ": 438," width ": 780," type ":" jpg "," uri ":" // cdn.cnn .com / cnnnext / dam / assets / 171024025134-syria-isis-fighters-underground-damon-pkg-1-exlarge-169.jpg "}," large ": {" height ": 619," width ": 1100," tipo ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/171024025134-syria-isis-fighters-underground-damon-pkg-1-super-169 .jpg "}," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/171024025134 -syria-isis-fighters-underground-damon-pkg-1-full-169.jpg "}," mini1x1 ": {" altura ": 120," ancho ": 120," tipo ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/171024025134-syria-isis-fighters-underground-damon-pkg-1-small-11.jpg"}}},autoStartVideo = false, callbackObj, containerEl , currentVideoCollection = [{“videoCMSUrl”:”/videos/world/2017/10/24/syria-isis-fighters-underground-damon-ebof-pkg.cnn”,”videoId”:”world/2017/10/24/syria-isis-fighters-underground-damon-ebof-pkg.cnn”,”videoUrl”:”/videos/world/2017/10/24/syria-isis-fighters-underground-damon-ebof-pkg.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/20/inside-a-former-isis-jail-in-raqqa-paton-walsh.cnn/index.xml”,”videoId”:”world/2017/10/20/inside-a-former-isis-jail-in-raqqa-paton-walsh.cnn”,”videoUrl”:”/videos/world/2017/10/20/inside-a-former-isis-jail-in-raqqa-paton-walsh.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/19/where-is-isis-leader-abu-bakr-al-baghdadi-pkg-paton-walsh.cnn/index.xml”,”videoId”:”world/2017/10/19/where-is-isis-leader-abu-bakr-al-baghdadi-pkg-paton-walsh.cnn”,”videoUrl”:”/videos/world/2017/10/19/where-is-isis-leader-abu-bakr-al-baghdadi-pkg-paton-walsh.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/20/raqqa-stadium-damon-lklv.cnn/index.xml”,”videoId”:”world/2017/10/20/raqqa-stadium-damon-lklv.cnn”,”videoUrl”:”/videos/world/2017/10/20/raqqa-stadium-damon-lklv.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/20/raqqa-ruins-walk-damon-pkg.cnn/index.xml”,”videoId”:”world/2017/10/20/raqqa-ruins-walk-damon-pkg.cnn”,”videoUrl”:”/videos/world/2017/10/20/raqqa-ruins-walk-damon-pkg.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/18/the-fall-of-isis.cnn/index.xml”,”videoId”:”world/2017/10/18/the-fall-of-isis.cnn”,”videoUrl”:”/videos/world/2017/10/18/the-fall-of-isis.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/19/raqqa-gopro-syria-gabriel-chaim-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/10/19/raqqa-gopro-syria-gabriel-chaim-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/10/19/raqqa-gopro-syria-gabriel-chaim-sje-lon-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/19/raqqa-isis-liberated-threats-sot.cnn/index.xml”,”videoId”:”world/2017/10/19/raqqa-isis-liberated-threats-sot.cnn”,”videoUrl”:”/videos/world/2017/10/19/raqqa-isis-liberated-threats-sot.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/11/11/why-raqqa-matters-sdg-orig.cnn/index.xml”,”videoId”:”world/2016/11/11/why-raqqa-matters-sdg-orig.cnn”,”videoUrl”:”/videos/world/2016/11/11/why-raqqa-matters-sdg-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/03/30/how-isis-evolved-ward-sdg-orig.cnn/index.xml”,”videoId”:”world/2017/03/30/how-isis-evolved-ward-sdg-orig.cnn”,”videoUrl”:”/videos/world/2017/03/30/how-isis-evolved-ward-sdg-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/17/raqqa-isis-syria-drone-video-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/10/17/raqqa-isis-syria-drone-video-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/10/17/raqqa-isis-syria-drone-video-sje-lon-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/09/29/iraq-kurdish-vote-isis-fight-elbagir.cnn/index.xml”,”videoId”:”world/2017/09/29/iraq-kurdish-vote-isis-fight-elbagir.cnn”,”videoUrl”:”/videos/world/2017/09/29/iraq-kurdish-vote-isis-fight-elbagir.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/09/29/abu-bakr-al-baghdadi-message-todd-dnt-tsr.cnn/index.xml”,”videoId”:”world/2017/09/29/abu-bakr-al-baghdadi-message-todd-dnt-tsr.cnn”,”videoUrl”:”/videos/world/2017/09/29/abu-bakr-al-baghdadi-message-todd-dnt-tsr.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/06/25/philippines-military-hospital-orig.cnn/index.xml”,”videoId”:”world/2017/06/25/philippines-military-hospital-orig.cnn”,”videoUrl”:”/videos/world/2017/06/25/philippines-military-hospital-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/07/11/inside-raqqa-old-city.cnn/index.xml”,”videoId”:”world/2017/07/11/inside-raqqa-old-city.cnn”,”videoUrl”:”/videos/world/2017/07/11/inside-raqqa-old-city.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/10/10/isis-ambush-us-soldiers-niger-starr-dnt-tsr.cnn/index.xml”,”videoId”:”world/2017/10/10/isis-ambush-us-soldiers-niger-starr-dnt-tsr.cnn”,”videoUrl”:”/videos/world/2017/10/10/isis-ambush-us-soldiers-niger-starr-dnt-tsr.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/07/14/us-kills-abu-sayed-leader-isis-khorasan-afghanistan-browne-nr.cnn/index.xml”,”videoId”:”world/2017/07/14/us-kills-abu-sayed-leader-isis-khorasan-afghanistan-browne-nr.cnn”,”videoUrl”:”/videos/world/2017/07/14/us-kills-abu-sayed-leader-isis-khorasan-afghanistan-browne-nr.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2017/07/10/lead-paton-walsh-mosul-liberated-live.cnn/index.xml”,”videoId”:”tv/2017/07/10/lead-paton-walsh-mosul-liberated-live.cnn”,”videoUrl”:”/videos/tv/2017/07/10/lead-paton-walsh-mosul-liberated-live.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/03/28/arwa-damon-on-the-ground-in-mosul-orig.cnn/index.xml”,”videoId”:”world/2017/03/28/arwa-damon-on-the-ground-in-mosul-orig.cnn”,”videoUrl”:”/videos/world/2017/03/28/arwa-damon-on-the-ground-in-mosul-orig.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/03/26/iraq-mosul-airstrike-lee-lok.cnn/index.xml”,”videoId”:”world/2017/03/26/iraq-mosul-airstrike-lee-lok.cnn”,”videoUrl”:”/videos/world/2017/03/26/iraq-mosul-airstrike-lee-lok.cnn/video/playlists/the-fight-against-isis/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/02/10/france-foils-possible-terror-attack-four-people-arrested-bell-nr.cnn/index.xml”,”videoId”:”world/2017/02/10/france-foils-possible-terror-attack-four-people-arrested-bell-nr.cnn”,”videoUrl”:”/videos/world/2017/02/10/france-foils-possible-terror-attack-four-people-arrested-bell-nr.cnn/video/playlists/the-fight-against-isis/”}]currentVideoCollectionId = '', isLivePlayer = false, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = false, videoPinner, videoEndSlateImpl; if (CNN.autoPlayVideoExist === false) {autoStartVideo = true; if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false; containerEl = jQuery (document.getElementById (configObj.markupId)); CNN.VideoPlayer.showFlashSlate (containerEl); } else {C NN.autoPlayVideoExist = true;}}} configObj.autostart = autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markupId, autoStartVideo, isLivePlayer, 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; try {articleElem = jQuery (evt.currentTarget) .find ('artículo'); thumbImageElem = jQuery (articleElem) .find ('. media__image'); videoId = articleElem.data (). videoId; if (CNN.VideoPlayer.getLibraryName (configObj. markupId) === 'fave') {playerInstance = FAVE.player.getInstance (configObj.markupId); if (CNN.Utils.existsObject (playerInstance) && typeof playerInstance.getVideoData === 'function' && playerInstance.getVideoData (). id ! == videoId) {/ * Eliminar videoobjeto metadata script.Si el usuario hace clic en otro que no sea el video cargado inicialmente * / jQuery (articleElem) .closest ('. cn-carrusel-medio-tira'). parent (). find ('script [name=”metaScript”]'). remove () ; playerInstance.play (videoId, sobrescribe);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance (). getPlayerByContainer (configObj.markupId); if (videoPlayer && videoPlayer.videoInstance) {/ ** si videoPlayer.videoInstance.cvp es null eso significa que aún no está inicializado, así que * pase también la miniatura. * / if (! videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem! == 'undefined' && thumbImageElem! == null) {thumbImageLargeSource = thumbImageElem. data () && thumbImageElem.data (). srcLarge? thumbImageElem.data (). srcLarge: 'none';} overrides.thumb = thumbImageLargeSource? thumbImageLargeSource: 'none'; shouldStartVideo = true;} if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video! == videoId) {/ * Eliminar el script de metadatos del objeto de video. Si el usuario hace clic en otro que no sea la carga inicial video * / jQuery (articleElem) .closest ('. cn-carrusel-medio-tira'). parent (). find ('script [name=”metaScript”]'). remove (); CNNVIDEOAPI.CNNVideoManager.getInstance (). playVideo ( configObj.markupId, videoId, sobrescribe);} / * El reproductor de video no es autoplay, por lo tanto, init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start ();} catch (startError) {console.log ( "error al inicializar el reproductor de video" + startError);}} * /}}}} catch (error) {console.log ("error en la inicialización del reproductor de video" + error);}} función setInitialVideoEmbed () {} initialize ( ) {var carrusel = jQuery (document.getElementById ('cn-current_video_collection')). ​​find ('. js-owl-carrusel'), owl; if (carrusel) {carrusel.find ('.cn__column.carousel__content__item'). find ('a'). removeAttr ('hr ef '); 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 (initialize); window.CNNVideoAPILoadCompleteHandlers.push (setInitialVideoEmbed);} else {initialize ();} CNN.INJECTOR.executeFeature ('videx'). done (función () {var initMeta = {id: "world / 2017/10/24 / syria-isis-fighters-underground-damon-ebof-pkg.cnn", isEmbeddable: "yes"}; CNN.Videx.EmbedButton.updateCode (initMeta) ;}). fail (function () {throw 'No se puede recuperar el paquete videx.';}); function updateCurrentlyPlaying (videoId) {var videoCollectionId = 'actual_video_collection', videocardContents = getCurrentVideoCardContents (videoId), carrusel = jQuery (document. getElementById ('cn-current_video_collection')). ​​find ('. js-owl-carrusel'), domain = CNN.Host.domain || (document.location.protocol + '//' + document.location.hostname), owl, $ owlFirstItem, $ owlPrevItem, showDetailsSpanContent = '', gigyaShareElement, showIndex, whatsappShareElement, $ carruselContentItems = jQuery ('. carrusel__content__item', documento. getElementById ('cn-current_video_collection')); gigyaShareElement = jQuery ('div.js-gigya-sharebar'); if (tipo de gigyaShareElement! == 'undefined') {jQuery (gigyaShareElement) .attr ('data-title', videocardContents.headlinePlainText || ''); jQuery (gigyaShareElement) .attr ('data-description', videocardContents.descriptionPlainText || ''); jQuery (gigyaShareElement) .attr ('data-link', dominio + 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', domain + videocardContents.url || '');} if (carrusel && currentVideoCollectionContainsId (videoId)) {owl = carrusel.data ('owl.carousel') || {}; showIndex = getCurrentVideoIndex (videoId); if (typeof owl.to === 'function') {owl.to (showIndex);} $ owlPrevItem = CNN.Utils.exists (owl. $ element)? owl. $ element.find ('.cd.cd – active'): $ carruselContentItems.find ('.cd.cd – activo'); $ owlPrevItem.removeClass ('cd – activo'); $ 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 ('. media a: first -child '). append ('

Now Playing

'); 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-1y701fo' , videoDescriptionDivId: 'js-video_description-1y701fo', videoDurationDivId: 'js-video_duration-1y701fo', videoTitleDivId: 'js-leaf-video_headline-1y701fo', videoSourceDivId: 'js-video_sourceName-1y701fo'}); if (CNN.Utils) .exists (videocardContents.showName)) {if (CNN.Utils.exists (videocardContents.showUrl)) {showDetailsSpanContent = '' + videocardContents.showName + ' | ';} else {showDetailsSpanContent = videocardContents.showName +' | ';}} fastdom.measure (función getShowInfo () {var $ show = jQuery ('. metadata__show '), $ isShowDetailsSpanExists = $ show.find (' span '). hasClass (' metadata – show__name '), $ showName = jQuery ('. metadata – show__name'); fastdom.mutate (función updateShowInfo () {if (! $ isShowDetailsSpanExists) {$ show.prepend ('

Fuente CNN

No hay comentarios

Deja un comentario...