Video shows subway shooting suspect arrested

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Twitter video shows Frank James, the man suspected of shooting 10 people on a subway train in Brooklyn, being arrested by police in New York.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220413145335-screengrab-frank-james-arrest-03-large-169.jpg”,”title”:” Video shows subway shooting suspect arrested “,”videoCMSUrl”:”/video/data/3.0/video/us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn”,”videoId”:”us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn”,”videoUrl”:”/videos/us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_18D4079C-EDB8-9660-BF29-2431BD278DD8″},{“descriptionPlainText”:”CNN’s Shimon Prokupecz describes how police located and arrested Frank James, the man suspected of shooting multiple passengers in a subway station in Brooklyn.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412162156-frank-james-nypd-large-169.jpg”,”title”:”How police found and arrested NYC subway shooting suspect”,”videoCMSUrl”:”/video/data/3.0/video/us/2022/04/13/new-york-shooting-suspect-frank-james-arrested-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2022/04/13/new-york-shooting-suspect-frank-james-arrested-sot-vpx.cnn”,”videoId”:”us/2022/04/13/new-york-shooting-suspect-frank-james-arrested-sot-vpx.cnn”,”videoUrl”:”/videos/us/2022/04/13/new-york-shooting-suspect-frank-james-arrested-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_18D4079C-EDB8-9660-BF29-2431BD278DD8″},{“descriptionPlainText”:”While their parents publicly rail against the West, Kremlin-connected children grew up in the countries their parents denounce.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412200132-kremlin-kids-split-large-169.jpg”,”title”:”Meet the kids of the Kremlin”,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/12/kremlin-kids-western-lifestyle-griffin-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/12/kremlin-kids-western-lifestyle-griffin-dnt-lead-vpx.cnn”,”videoId”:”world/2022/04/12/kremlin-kids-western-lifestyle-griffin-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/12/kremlin-kids-western-lifestyle-griffin-dnt-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_2998A53A-8875-0A6A-5A81-2416EE88B19A”},{“descriptionPlainText”:”CNN’s Becky Anderson speaks with Austrian Chancellor Karl Nehammer, who met with President Vladimir Putin of Russia to confront him over his actions in Ukraine.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220413140900-video-thumbnail-austrian-chancellor-large-169.jpg”,”title”:”World leader describes Putin’s mindset during meeting yesterday”,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/13/austrian-chancellor-karl-nehammer-intv-becky-anderson-ctw-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/13/austrian-chancellor-karl-nehammer-intv-becky-anderson-ctw-intl-ldn-vpx.cnn”,”videoId”:”world/2022/04/13/austrian-chancellor-karl-nehammer-intv-becky-anderson-ctw-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/13/austrian-chancellor-karl-nehammer-intv-becky-anderson-ctw-intl-ldn-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_2CB846F9-AF46-8DFE-CB79-1FC8D77097F4″},{“descriptionPlainText”:”Passengers on this international Jet Blue flight begged flight attendants to land early due to concerns about bad weather. Jet Blue releases a statement responding that the safety of their passengers is their top priority and their pilots are trained to manage severe weather.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220413105240-passenger-jet-blue-large-169.jpeg”,”title”:”Passengers beg flight attendant to let them off plane”,”videoCMSUrl”:”/video/data/3.0/video/travel/2022/04/13/passengers-beg-early-landing-flight-jet-blue-bad-weather-mxp-meade-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/travel/2022/04/13/passengers-beg-early-landing-flight-jet-blue-bad-weather-mxp-meade-vpx.hln”,”videoId”:”travel/2022/04/13/passengers-beg-early-landing-flight-jet-blue-bad-weather-mxp-meade-vpx.hln”,”videoUrl”:”/videos/travel/2022/04/13/passengers-beg-early-landing-flight-jet-blue-bad-weather-mxp-meade-vpx.hln/video/playlists/top-news-videos/”,”surrogateKey”:”video_46E85FC5-DFEC-0A34-CADC-22F727073A82″},{“descriptionPlainText”:”The peak of the multiday severe storm threat will occur today, with a powerful severe storm and tornado threat set to begin Wednesday afternoon. CNN meteorologist Pedram Javaheri shows who will see the most severe storms.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220413030557-severe-weather-outlook-wednesday-large-169.jpg”,”title”:”Powerful severe storm and tornado threat likely Wednesday”,”videoCMSUrl”:”/video/data/3.0/video/weather/2022/04/13/daily-weather-forecast-severe-storm-iowa-tornado-texas-hail-wind-flood-snow-blizzard-west-cold-hot.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2022/04/13/daily-weather-forecast-severe-storm-iowa-tornado-texas-hail-wind-flood-snow-blizzard-west-cold-hot.cnn”,”videoId”:”weather/2022/04/13/daily-weather-forecast-severe-storm-iowa-tornado-texas-hail-wind-flood-snow-blizzard-west-cold-hot.cnn”,”videoUrl”:”/videos/weather/2022/04/13/daily-weather-forecast-severe-storm-iowa-tornado-texas-hail-wind-flood-snow-blizzard-west-cold-hot.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D6DB974F-6BC6-D230-3FA5-23585362C635″},{“descriptionPlainText”:”Physical therapists Bob and Brad put out videos every day to an audience of millions on YouTube. They explain why your current sleeping position is putting your back out of whack and how to fix it.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220413101136-best-sleeping-posture-for-back-pain-green-border-01-large-169.jpg”,”title”:”How to fix your sleeping position to relieve back pain”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/11/22/best-sleeping-posture-for-back-pain-lbb-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/11/22/best-sleeping-posture-for-back-pain-lbb-orig.cnn”,”videoId”:”health/2021/11/22/best-sleeping-posture-for-back-pain-lbb-orig.cnn”,”videoUrl”:”/videos/health/2021/11/22/best-sleeping-posture-for-back-pain-lbb-orig.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_AE2676D8-D970-F16F-73E6-21B8787DE617″},{“descriptionPlainText”:”CNN’s Nima Elbagir reports on a Russian military tactic that aims to cause destruction even after their forces have left cities in Ukraine.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412210634-mine-vpx-large-169.jpg”,”title”:”Russia’s brutal new tactic leaves death ‘to lie in wait’ for returning Ukrainian citizens “,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/13/kharkiv-ukraine-mines-elbagir-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/13/kharkiv-ukraine-mines-elbagir-ac360-vpx.cnn”,”videoId”:”world/2022/04/13/kharkiv-ukraine-mines-elbagir-ac360-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/13/kharkiv-ukraine-mines-elbagir-ac360-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_742DE604-C2BE-F5C5-B508-4522FC1DC4BD”},{“descriptionPlainText”:”Ukrainian President Volodymyr Zelensky proposed swapping detained pro-Russian Ukrainian politician and oligarch Viktor Medvedchuk for captured Ukrainian prisoners of war. CNN’s Ed Lavandera reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412165032-viktor-medvedchuk-arrested-large-169.jpg”,”title”:”Zelensky offers Putin detained Russian oligarch in prisoner swap “,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/13/zelensky-prison-exchange-proposal-putin-lavandera-sot-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/13/zelensky-prison-exchange-proposal-putin-lavandera-sot-newday-vpx.cnn”,”videoId”:”world/2022/04/13/zelensky-prison-exchange-proposal-putin-lavandera-sot-newday-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/13/zelensky-prison-exchange-proposal-putin-lavandera-sot-newday-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_003CAFB8-784C-99AB-4674-20619A0889C0″},{“descriptionPlainText”:”Gilbert Gottfried, the comedian behind Aflac and the parrot in “Aladdin,” was known for his grating pitch. But lesser-known clips reveal another voice.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412153944-01-gilbert-gottfried-file-2016-large-169.jpg”,”title”:”Did Gilbert Gottfried’s voice always sound like that?”,”videoCMSUrl”:”/video/data/3.0/video/us/2022/04/12/gilbert-gottfried-dead-aladdin-voice-aflac-bu-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2022/04/12/gilbert-gottfried-dead-aladdin-voice-aflac-bu-orig.cnn”,”videoId”:”us/2022/04/12/gilbert-gottfried-dead-aladdin-voice-aflac-bu-orig.cnn”,”videoUrl”:”/videos/us/2022/04/12/gilbert-gottfried-dead-aladdin-voice-aflac-bu-orig.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_FCCE3C32-6AE5-6CA0-BE38-22A0B3E1784C”},{“descriptionPlainText”:”Yav Montano describes the moments inside a subway car during the shooting at a Brooklyn subway station”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412120123-29-brooklyn-shooting-large-169.jpg”,”title”:”‘Sounded like fireworks’: Witness describes when subway shooting started”,”videoCMSUrl”:”/video/data/3.0/video/us/2022/04/12/subway-shooting-witness-brooklyn-new-york-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2022/04/12/subway-shooting-witness-brooklyn-new-york-vpx.cnn”,”videoId”:”us/2022/04/12/subway-shooting-witness-brooklyn-new-york-vpx.cnn”,”videoUrl”:”/videos/us/2022/04/12/subway-shooting-witness-brooklyn-new-york-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_16EF0FC2-EDB4-FBCF-2DF5-1FFE26BFD45D”},{“descriptionPlainText”:”CNN’s Fred Pleitgen reports on the painstaking work that is going into investigating alleged Russian war crimes in Ukraine.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412212545-putin-pleitgen-pkg-screengrab-vpx-large-169.jpg”,”title”:”Amid war crimes investigation, Putin speaks out on war in Ukraine”,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/13/ukraine-russian-war-crimes-investigation-pleitgen-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/13/ukraine-russian-war-crimes-investigation-pleitgen-vpx.cnn”,”videoId”:”world/2022/04/13/ukraine-russian-war-crimes-investigation-pleitgen-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/13/ukraine-russian-war-crimes-investigation-pleitgen-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_4B286E3C-6F85-3479-F4A2-1E81D54D859D”},{“descriptionPlainText”:”Russian forces destroyed and looted a school and then made it their base. Ukrainians react to the devastation and describe the pain of losing their loved ones to CNN’s Clarissa Ward.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220411141003-liberated-village-2-ukraine-clarissa-ward-dnt-large-169.jpg”,”title”:”Russia turned a school into a military base. Clarissa Ward shows what they left behind “,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/11/liberated-village-russia-ukraine-invasion-ward-the-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/11/liberated-village-russia-ukraine-invasion-ward-the-lead-vpx.cnn”,”videoId”:”world/2022/04/11/liberated-village-russia-ukraine-invasion-ward-the-lead-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/11/liberated-village-russia-ukraine-invasion-ward-the-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6AF3C98E-651D-1183-70F8-207AA78E8D67″},{“descriptionPlainText”:”The Biden administration committed to $1.7 billion dollars in aide for Ukraine but it doesn’t include sending US troops. CNN meets US military veterans who are stepping in to help train Ukrainian soldiers to fight against the Russian military.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412174325-us-troops-train-ukrainian-soldiers-tapper-pkg-4-12-large-169.jpeg”,”title”:”Biden won’t send US troops to Ukraine, but that isn’t stopping these veterans from helping”,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/12/us-military-veterans-training-ukrainian-soldiers-lead-tapper-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/12/us-military-veterans-training-ukrainian-soldiers-lead-tapper-pkg-vpx.cnn”,”videoId”:”world/2022/04/12/us-military-veterans-training-ukrainian-soldiers-lead-tapper-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/12/us-military-veterans-training-ukrainian-soldiers-lead-tapper-pkg-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_AF51C50F-EE8A-E6CC-6D84-1A62CFF3876A”},{“descriptionPlainText”:”CNN’s David Culver describes the stressful living conditions and supply shortages Shanghai residents face as he stays in the country through his second week of the Covid-19 lockdown.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220412095740-video-thumbnail-culver-shanghai-large-169.jpeg”,”title”:”CNN is only US outlet living through Shanghai lockdown. See what it’s like”,”videoCMSUrl”:”/video/data/3.0/video/world/2022/04/12/shanghai-covid-lockdown-supply-shortage-culver-dnt-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2022/04/12/shanghai-covid-lockdown-supply-shortage-culver-dnt-ebof-vpx.cnn”,”videoId”:”world/2022/04/12/shanghai-covid-lockdown-supply-shortage-culver-dnt-ebof-vpx.cnn”,”videoUrl”:”/videos/world/2022/04/12/shanghai-covid-lockdown-supply-shortage-culver-dnt-ebof-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_412D516E-725A-4606-88C9-1FAF47CAA668″},{“descriptionPlainText”:”David Broockman and Joshua Kalla paid Fox viewers to watch CNN for one month, and then asked them a series of questions about world news. Those answers were compiled into a newly released study. Broockman and Kalla share their findings with CNN’s Brian Stelter.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220401142318-fox-news-ny-0118-large-169.jpg”,”title”:”Researchers paid Fox viewers to watch CNN for one month. Here’s what they found”,”videoCMSUrl”:”/video/data/3.0/video/media/2022/04/10/fox-viewers-study-media-stelter-rs-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2022/04/10/fox-viewers-study-media-stelter-rs-vpx.cnn”,”videoId”:”media/2022/04/10/fox-viewers-study-media-stelter-rs-vpx.cnn”,”videoUrl”:”/videos/media/2022/04/10/fox-viewers-study-media-stelter-rs-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_381FECAA-4D99-2101-1A4B-1B47FABD086A”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,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 {CNN.autoPlayVideoExist = true;}}}configObj.autostart = CNN.Features.enableAutoplayBlock ? false : autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {autostart: false,muteOverlayClicked: true,videoCollection: this.videoCollection},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);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) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {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) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.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(function () {var initMeta = {id:”us/2022/04/13/subway-shooting-suspect-arrest-video-vpx.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function 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’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof 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 (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.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’) : $carouselContentItems.find(‘.cd.cd–active’);$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(‘.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-258wd44’,videoDescriptionDivId: ‘js-video_description-258wd44’,videoDurationDivId: ‘js-video_duration-258wd44’,videoTitleDivId: ‘js-leaf-video_headline-258wd44’,videoSourceDivId: ‘js-video_sourceName-258wd44’});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = ‘‘ + videocardContents.showName + ‘ | ‘;} else {showDetailsSpanContent = videocardContents.showName + ‘ | ‘;}}fastdom.measure(function getShowInfo() {var $show = jQuery(‘.metadata__show’),$isShowDetailsSpanExists = $show.find(‘span’).hasClass(‘metadata–show__name’),$showName = jQuery(‘.metadata–show__name’);fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend(‘

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow by Email
Pinterest
LinkedIn
Share