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/23 / syria-isis-next-battleground-paton-walsh-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/171022232242-syria-isis-next-battleground-paton-walsh-pkg-00013906-small-169.jpg"},"xsmall":{"height":173,"width":307,"type ": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/171022232242-syria-isis-next-battleground-paton-walsh-pkg-00013906-medium-plus-169.jpg"} , "pequeño": {"altura": 259, "ancho": 460, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/171022232242-syria -isis -next-battleground-paton-walsh-pkg-00013906-large-169.jpg "}," medium ": {" height ": 438," width ": 780," type ":" jpg "," uri ": "//cdn.cnn.com/cnnnext/dam/assets/171022232242-syria-isis-next-battleground-paton-walsh-pkg-00013906-exlarge- 169.jpg "}," large ": {" height ": 619," width ": 1100," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/ 171022232242-syria-isis-next-battleground-paton-walsh-pkg-00013906-super-169.jpg "}," full16x9 ": {" altura ": 900," ancho ": 1600," tipo ":" jpg " , "uri": "// cdn.cnn.com/cnnnext/dam/assets/171022232242-syria-isis-next-battleground-paton-walsh-pkg-00013906-full-169.jpg"},"mini1x1": {"altura": 120, "ancho": 120, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/171022232242-syria-isis-next-battleground- paton-walsh-pkg-00013906-small-11.jpg "}}}, autoStartVideo = false, callbackObj, containerEl, currentVideoCollection = [{“videoCMSUrl”:”/videos/world/2017/10/23/syria-isis-next-battleground-paton-walsh-pkg.cnn”,”videoId”:”world/2017/10/23/syria-isis-next-battleground-paton-walsh-pkg.cnn”,”videoUrl”:”/videos/world/2017/10/23/syria-isis-next-battleground-paton-walsh-pkg.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/07/life-in-syria-violence-destruction-orig.cnn/index.xml”,”videoId”:”world/2017/04/07/life-in-syria-violence-destruction-orig.cnn”,”videoUrl”:”/videos/world/2017/04/07/life-in-syria-violence-destruction-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/14/bashar-al-assad-interview-chemical-attack-zw-orig.cnn/index.xml”,”videoId”:”world/2017/04/14/bashar-al-assad-interview-chemical-attack-zw-orig.cnn”,”videoUrl”:”/videos/world/2017/04/14/bashar-al-assad-interview-chemical-attack-zw-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2017/04/05/syria-chemical-attack-survivor-plea-to-trump-bts-nr.cnn/index.xml”,”videoId”:”politics/2017/04/05/syria-chemical-attack-survivor-plea-to-trump-bts-nr.cnn”,”videoUrl”:”/videos/politics/2017/04/05/syria-chemical-attack-survivor-plea-to-trump-bts-nr.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/06/25/israel-on-syrian-battlefield-isis-regime-forces-lee-pkg.cnn/index.xml”,”videoId”:”world/2017/06/25/israel-on-syrian-battlefield-isis-regime-forces-lee-pkg.cnn”,”videoUrl”:”/videos/world/2017/06/25/israel-on-syrian-battlefield-isis-regime-forces-lee-pkg.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2017/04/05/rubio-putin-is-a-war-criminal-syria-assad.cnn/index.xml”,”videoId”:”politics/2017/04/05/rubio-putin-is-a-war-criminal-syria-assad.cnn”,”videoUrl”:”/videos/politics/2017/04/05/rubio-putin-is-a-war-criminal-syria-assad.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/07/syria-key-player-ejk-orig.cnn/index.xml”,”videoId”:”world/2017/04/07/syria-key-player-ejk-orig.cnn”,”videoUrl”:”/videos/world/2017/04/07/syria-key-player-ejk-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2017/04/05/trump-king-abdullah-joint-press-conference-syria-gas-attack.cnn/index.xml”,”videoId”:”politics/2017/04/05/trump-king-abdullah-joint-press-conference-syria-gas-attack.cnn”,”videoUrl”:”/videos/politics/2017/04/05/trump-king-abdullah-joint-press-conference-syria-gas-attack.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2017/04/05/trump-attitude-on-assad-has-changed-sot.cnn/index.xml”,”videoId”:”politics/2017/04/05/trump-attitude-on-assad-has-changed-sot.cnn”,”videoUrl”:”/videos/politics/2017/04/05/trump-attitude-on-assad-has-changed-sot.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2017/04/05/trumps-welcome-jordan-king-and-queen-to-white-house-sot.cnn/index.xml”,”videoId”:”politics/2017/04/05/trumps-welcome-jordan-king-and-queen-to-white-house-sot.cnn”,”videoUrl”:”/videos/politics/2017/04/05/trumps-welcome-jordan-king-and-queen-to-white-house-sot.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/08/15/jim-sciutto-chemical-weapons-brief-orig.cnn/index.xml”,”videoId”:”world/2016/08/15/jim-sciutto-chemical-weapons-brief-orig.cnn”,”videoUrl”:”/videos/world/2016/08/15/jim-sciutto-chemical-weapons-brief-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/04/04/syria-gas-attack-dozens-killed-newday.cnn/index.xml”,”videoId”:”world/2017/04/04/syria-gas-attack-dozens-killed-newday.cnn”,”videoUrl”:”/videos/world/2017/04/04/syria-gas-attack-dozens-killed-newday.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2017/01/27/bana-alabed-reads-letter-to-trump-sje-orig.cnn/index.xml”,”videoId”:”world/2017/01/27/bana-alabed-reads-letter-to-trump-sje-orig.cnn”,”videoUrl”:”/videos/world/2017/01/27/bana-alabed-reads-letter-to-trump-sje-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/12/07/why-is-aleppo-important-syria-npw-orig.cnn/index.xml”,”videoId”:”world/2016/12/07/why-is-aleppo-important-syria-npw-orig.cnn”,”videoUrl”:”/videos/world/2016/12/07/why-is-aleppo-important-syria-npw-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/12/16/aleppo-refugee-recounts-horror-sfc-orig.cnn/index.xml”,”videoId”:”world/2016/12/16/aleppo-refugee-recounts-horror-sfc-orig.cnn”,”videoUrl”:”/videos/world/2016/12/16/aleppo-refugee-recounts-horror-sfc-orig.cnn/video/playlists/crisis-in-syria/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/12/16/aleppo-evacuations-civilians-rebels-orig.cnn/index.xml”,”videoId”:”world/2016/12/16/aleppo-evacuations-civilians-rebels-orig.cnn”,”videoUrl”:”/videos/world/2016/12/16/aleppo-evacuations-civilians-rebels-orig.cnn/video/playlists/crisis-in-syria/”}]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 = falso; containerEl = jQuery (document.getElementById (config Obj.markupId)); CNN.VideoPlayer.showFlashSlate (containerEl);} else {CNN.autoPlayVideoExist = true;}}} configObj.autostart = autoStartVideo; CNN.VideoPlayer.setPlayerProperties (configObj.markPIyer, propiedades, 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) {/ * Elimina la secuencia de comandos de metadatos del objeto de video. Si el usuario hace clic en otra cosa que 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 nulo, lo que significa que aún no se ha inicializado, así que * pase 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? 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/23 / syria-isis-next-battleground-paton-walsh-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-efn4qt' , videoDescriptionDivId: 'js-video_description-efn4qt', videoDurationDivId: 'js-video_duration-efn4qt', videoTitleDivId: 'js-leaf-video_headline-efn4qt', videoSourceDivId: 'js-video_sourceName-efn4qt'}); 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...