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 / 2016/09/13 / robert-mugabe-faces-youthful-rebelion-mckenzie-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/160913103055-robert-mugabe-2015-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri":"/ /cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe-2015-medium-plus-169.jpg"},"small":{"height":259,"width":460,"type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe-2015-large-169.jpg"},"medium":{"height ": 438, "ancho": 780, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe-2015-exlarge-169.jpg"} , "grande": {"altura": 619, "ancho": 1100, "tipo": "jpg", "uri": "// cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe -2015-sup er-169.jpg "}," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/ assets / 160913103055-robert-mugabe-2015-full-169.jpg "}," mini1x1 ": {" altura ": 120," ancho ": 120," tipo ":" jpg "," uri ":" // cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe-2015-small-11.jpg"}}},autoStartVideo = false, isVideoReplayClicked = false, callbackObj, containerEl, currentVideoCollection = [{“descriptionPlainText”:”A perfect storm of protests, police dissatisfaction and poverty in Zimbabwe is challenging long-time leader Robert Mugabe.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160913103055-robert-mugabe-2015-large-169.jpg”,”title”:”Young Zimbabweans face up to Robert Mugabe”,”videoCMSUrl”:”/videos/world/2016/09/13/robert-mugabe-faces-youthful-rebellion-mckenzie-pkg.cnn”,”videoId”:”world/2016/09/13/robert-mugabe-faces-youthful-rebellion-mckenzie-pkg.cnn”,”videoUrl”:”/videos/world/2016/09/13/robert-mugabe-faces-youthful-rebellion-mckenzie-pkg.cnn”},{“descriptionPlainText”:”Andy Sandness received a face transplant, and now he’s meeting the donor’s family for the first time. If you or someone you know is showing warning signs of suicide, contact the National Suicide Prevention Lifeline at 800-273-TALK.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171112130156-face-transplant-meets-donor-family-mayo-clinic-orig-vstan-dlewis-new-00000000-large-169.jpg”,”title”:”Face transplant recipient meets donor’s family”,”videoCMSUrl”:”/video/data/3.0/video/health/2017/11/12/face-transplant-meets-donor-family-mayo-clinic-orig-vstan-dlewis-new.cnn/index.xml”,”videoId”:”health/2017/11/12/face-transplant-meets-donor-family-mayo-clinic-orig-vstan-dlewis-new.cnn”,”videoUrl”:”/videos/health/2017/11/12/face-transplant-meets-donor-family-mayo-clinic-orig-vstan-dlewis-new.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”British surfer Andrew Cotton broke his back after wiping out on one of the world’s biggest waves in Nazaré, Portugal.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171110140338-surfer-breaks-back-2-large-169.jpg”,”title”:”Surfer breaks back after massive wipeout”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/10/surfer-breaks-back-after-massive-wipeout-lc-orig.cnn/index.xml”,”videoId”:”us/2017/11/10/surfer-breaks-back-after-massive-wipeout-lc-orig.cnn”,”videoUrl”:”/videos/us/2017/11/10/surfer-breaks-back-after-massive-wipeout-lc-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Mattel released its new Barbie doll at the Glamour Women of the Year Summit. It’s modeled after Ibtihaj Muhammad, the bronze medal-winning U.S. Olympic fencer.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171113175807-barbie-hijab-ibtihaj-muhammad-large-169.jpg”,”title”:”First Barbie with hijab modeled after Olympian”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/11/13/barbie-hijab-ibtihaj-muhammad.cnn/index.xml”,”videoId”:”cnnmoney/2017/11/13/barbie-hijab-ibtihaj-muhammad.cnn”,”videoUrl”:”/videos/cnnmoney/2017/11/13/barbie-hijab-ibtihaj-muhammad.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Russian BASE jumper Valery Rozov, 52, died on November 11 during a 22,349-foot jump in the Himalayas.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171113145647-valery-rozov-3-large-169.jpg”,”title”:”Record-breaking BASE jumper dies during stunt “,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/13/record-breaking-russian-base-jumper-valery-rozov-dies-orig-trnd-lab.cnn/index.xml”,”videoId”:”world/2017/11/13/record-breaking-russian-base-jumper-valery-rozov-dies-orig-trnd-lab.cnn”,”videoUrl”:”/videos/world/2017/11/13/record-breaking-russian-base-jumper-valery-rozov-dies-orig-trnd-lab.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A 7.3 magnitude earthquake along the Iraq-Iran border has killed dozens, and there have been at least two aftershocks. CNN’s Amara Walker and Julie Martin have the latest.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171112194203-earthquake-still-large-169.jpg”,”title”:”Earthquake aftershocks shake Iraq-Iran border”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/13/iraq-iran-earthquake-aftershocks.cnn/index.xml”,”videoId”:”world/2017/11/13/iraq-iran-earthquake-aftershocks.cnn”,”videoUrl”:”/videos/world/2017/11/13/iraq-iran-earthquake-aftershocks.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:””Star Trek” actor and LGBT activist George Takei is denying allegations that he groped a former male model who says he passed out while drinking at the actor’s Los Angeles condo nearly 40 years ago.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170217182259-george-takei-hedshot-large-169.jpg”,”title”:”‘Star Trek’ actor accused of sexual assault”,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2017/11/12/george-takei-sexual-misconduct-allegation.cnn/index.xml”,”videoId”:”entertainment/2017/11/12/george-takei-sexual-misconduct-allegation.cnn”,”videoUrl”:”/videos/entertainment/2017/11/12/george-takei-sexual-misconduct-allegation.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Aly Raisman and McKayla Maroney have come forward alleging that former USA Gymnastics doctor Larry Nassar sexually abused them.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171110145734-maroney-raisman-allege-abuse-nassar-large-169.jpg”,”title”:”2 ‘Fierce Five’ Olympic gymnasts allege abuse”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/10/us-olympic-gymnasts-allege-abuse-larry-nassar-orig-trnd-lab.cnn/index.xml”,”videoId”:”us/2017/11/10/us-olympic-gymnasts-allege-abuse-larry-nassar-orig-trnd-lab.cnn”,”videoUrl”:”/videos/us/2017/11/10/us-olympic-gymnasts-allege-abuse-larry-nassar-orig-trnd-lab.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A 3-year-old boy died at the hospital after reportedly eating a grilled cheese at his New York City school.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171109171128-new-york-grilled-cheese-boy-death-large-169.jpg”,”title”:”3-year-old dies after eating grilled cheese”,”videoCMSUrl”:”/video/data/3.0/video/health/2017/11/10/elijah-silvera-grilled-cheese-death-new-york-orig-bk-aa.cnn/index.xml”,”videoId”:”health/2017/11/10/elijah-silvera-grilled-cheese-death-new-york-orig-bk-aa.cnn”,”videoUrl”:”/videos/health/2017/11/10/elijah-silvera-grilled-cheese-death-new-york-orig-bk-aa.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”President Trump recently promoted his golf course during a speech to South Korea’s National Assembly. It was hardly the first time he mixed his brand with politics.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171107233133-02-trump-south-korea-1108-large-169.jpg”,”title”:”Trump often mixes politics with promotion”,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/11/08/trump-likes-to-promote-orig-alee.cnn/index.xml”,”videoId”:”politics/2017/11/08/trump-likes-to-promote-orig-alee.cnn”,”videoUrl”:”/videos/politics/2017/11/08/trump-likes-to-promote-orig-alee.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A memorial inside the Texas church where 26 people were shot and killed includes chairs placed where each victim was found and audio recordings of the victims’ voices. CNN’s Kaylee Hartung describes the scene.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171112182734-texas-church-memorial-chairs-names-large-169.jpg”,”title”:”First look inside Texas church after shooting”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/12/inside-texas-church-shooting-memorial-hartung-sot-nr.cnn/index.xml”,”videoId”:”us/2017/11/12/inside-texas-church-shooting-memorial-hartung-sot-nr.cnn”,”videoUrl”:”/videos/us/2017/11/12/inside-texas-church-shooting-memorial-hartung-sot-nr.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Treasury Secretary Steve Mnuchin says President Trump’s false claim that the GOP’s tax bill would be the largest tax cut in history is true “on mostly every single part of the plan.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171112094237-steve-mnuchin-sotu-11-12-17-large-169.jpg”,”title”:”Mnuchin pressed on Trump’s false tax claim”,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/11/12/mnuchin-largest-tax-cut-mostly-sotu.cnn/index.xml”,”videoId”:”politics/2017/11/12/mnuchin-largest-tax-cut-mostly-sotu.cnn”,”videoUrl”:”/videos/politics/2017/11/12/mnuchin-largest-tax-cut-mostly-sotu.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Former President Bill Clinton tells Conan O’Brien what he misses most about being president.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171109094836-bill-clinton-conan-large-169.jpg”,”title”:”What Clinton misses most about being president”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/09/conan-what-bill-clinton-misses-most.team-coco/index.xml”,”videoId”:”us/2017/11/09/conan-what-bill-clinton-misses-most.team-coco”,”videoUrl”:”/videos/us/2017/11/09/conan-what-bill-clinton-misses-most.team-coco/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Counselor to the President Kellyanne Conway says that actions allegedly committed by Alabama Senate candidate Roy Moore “should disqualify anyone.” CNN’s Fredricka Whitfield has the story.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171108145021-kellyanne-conway-11-5-2017-large-169.jpg”,”title”:”Kellyanne Conway weighs in on Roy Moore”,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/11/12/conway-moore-alleged-conduct-segment-nr.cnn/index.xml”,”videoId”:”politics/2017/11/12/conway-moore-alleged-conduct-segment-nr.cnn”,”videoUrl”:”/videos/politics/2017/11/12/conway-moore-alleged-conduct-segment-nr.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Private companies like “Gatekeepers Security Services” train community members the art of self-defense and gun safety. CNN’s Kaylee Hartung takes a closer look.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171111132037-church-security-hartung-pkg-00022702-large-169.jpg”,”title”:”Security firms teach churchgoers gun safety”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/11/church-security-hartung-pkg.cnn/index.xml”,”videoId”:”us/2017/11/11/church-security-hartung-pkg.cnn”,”videoUrl”:”/videos/us/2017/11/11/church-security-hartung-pkg.cnn/video/playlists/stories-worth-watching/”}]currentVideoCollectionId = '', isLivePlayer = falso, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = false, videoPinner, videoEndSlateImpl; if (CNN.autoPlayVideoExist === falso) {autoStartVideo = true; if (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, isLivePlayer, isVideoReplayClicked, 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) {/ * Quitar secuencia de comandos de metadatos del videoobjeto. Si el usuario hace clic en otro que no sea el video cargado inicialmente * / jQuery (articleElem) .closest ('. cn-carrusel-medium-s trip '). 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, * pasa también en 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 / 2016/09/13 / robert-mugabe-faces-youthful-rebelion-mckenzie-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' && CNN.Utils.existsObject (videocardContents)) {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 && videocardContents.media.elementContents && 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-27fdbdq' , videoDescriptionDivId: 'js-video_description-27fdbdq', videoDurationDivId: 'js-video_duration-27fdbdq', videoTitleDivId: 'js-leaf-video_headline-27fdbdq', videoSourceDivId: 'js-video_sourceName-27fdbdq'}); 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...