Video shows Afghans clinging to outside of US military plane as it takes off from Kabul

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-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/210816075037-kabul-airport-tolo-vpx-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Video shows people clinging to the fuselage of a US military aircraft as it taxied at Hamid Karzai International Airport in Kabul. CNN has reached out to the US military for comment.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816075037-kabul-airport-tolo-vpx-large-169.jpg”,”title”:”Video shows Afghans clinging to outside of US military plane as it takes off”,”videoCMSUrl”:”/videos/world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-vpx.cnn”,”videoLeafUrl”:”/videos/world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-vpx.cnn”,”videoId”:”world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-vpx.cnn”,”surrogateKey”:”video_B6960E39-37DD-4761-A2AD-4EBC6F40ABE3″},{“descriptionPlainText”:”The Taliban have taken control of the presidential palace in Afghanistan’s capital Kabul after former President Ashraf Ghani fled the country. With more than two decades of experience covering the country, CNN’s Christiane Amanpour explains how we got here and what this means for Afghans.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816104351-christiane-amanpour-taliban-takeover-analysis-large-169.jpg”,”title”:”Christiane Amanpour: ‘The Taliban have been waiting for this moment for 20 years'”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/16/taliban-afghanistan-kabul-takeover-analysis-amanpour-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/16/taliban-afghanistan-kabul-takeover-analysis-amanpour-intl-ldn-vpx.cnn”,”videoId”:”world/2021/08/16/taliban-afghanistan-kabul-takeover-analysis-amanpour-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/16/taliban-afghanistan-kabul-takeover-analysis-amanpour-intl-ldn-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_6575F2BA-2920-0DFC-DC5E-4E36B0A365D7″},{“descriptionPlainText”:”Gunfire can be heard going off at the Kabul International Airport in a new video that shows people running toward the terminal. Another video shows people scrambling onto planes to escape Afghanistan as the Taliban take over. CNN cannot independently verify some of these images.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816104316-video-thumbnail-kabul-airport-large-169.jpg”,”title”:”Chaos and gunfire at Kabul airport as Taliban take over the city”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn”,”videoId”:”world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn”,”videoUrl”:”/videos/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C0977EBA-A594-084B-314D-4C08E2C2D586″},{“descriptionPlainText”:”Former President Ashraf Ghani fled Afghanistan as the Taliban closed in on Kabul on August 15. Before fleeing, Ghani called for security and peace in the country. Ghani’s exit has been sharply criticized by his detractors who claim he abandoned the country. CNN’s International Diplomatic Editor Nic Robertson reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816081643-ashraf-ghani-afghanistan-nic-robertson-pkg-large-169.jpg”,”title”:”Ousted President Ghani fled Afghanistan. Here’s how his government fell”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/16/afghanistan-taliban-ashraf-ghani-flees-robertson-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/16/afghanistan-taliban-ashraf-ghani-flees-robertson-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2021/08/16/afghanistan-taliban-ashraf-ghani-flees-robertson-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/16/afghanistan-taliban-ashraf-ghani-flees-robertson-pkg-intl-ldn-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_B89A796A-52D9-BFEC-E699-4DC180DBA57C”},{“descriptionPlainText”:”The presidential palace in Kabul has been “handed over” to the Taliban, vacated by government officials, including former President Ashraf Ghani who has fled the country. CNN’s Nick Paton Walsh reports a Taliban member present for the “handover” spoke briefly in English to say he had formerly been held by the US in Guantanamo.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815164748-taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx-00020603-large-169.jpg”,”title”:”Video appears to show Taliban inside presidential palace”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn”,”videoId”:”world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_04208FDB-3BA0-16FE-5147-4B820F1F9F6F”},{“descriptionPlainText”:”Kristen Rouse, a US Army veteran who served in Afghanistan, describes the messages she and other veterans have received from Afghan interpreters who are unable find safety as the Taliban besiege the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815212625-kristen-rouse-large-169.jpeg”,”title”:”‘I am about to die’: Afghan interpreter’s message to US veteran”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn”,”videoId”:”us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn”,”videoUrl”:”/videos/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_2A0D5C8A-D79B-6806-640A-4C8884519A80″},{“descriptionPlainText”:”The fall of Kabul into the hands of the Taliban is drawing comparisons to the fall of Saigon in the final days of the Vietnam War.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815041320-01-kabul-afghanistan-0815-us-helicopters-large-169.jpg”,”title”:”‘That’s what the world thinks this is’: Reporter discusses Kabul comparisons to Saigon”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn”,”videoId”:”world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn”,”videoUrl”:”/videos/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C00BB8E3-7FC8-8F37-74F6-4B903822D587″},{“descriptionPlainText”:”It’s been nearly twenty years since 9/11 but the US has been involved in Afghanistan for far longer. Here’s a look at how five presidents and five very different strategies have shaped the US’ role in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150410131239-army-soldier-salute-no-face-generic-large-169.jpg”,”title”:”Five presidents, five strategies: The US’ wars in Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn”,”videoId”:”world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn”,”videoUrl”:”/videos/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_1828F649-B5EA-19AC-ED9A-9ABF43C53EF6″},{“descriptionPlainText”:”CNN’s Kylie Atwood reports that the US Embassy in Kabul has been evacuated, culminating in the American flag being taken down from the building.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815141343-kabul-helicopter-screengrab-for-video-large-169.jpg”,”title”:”Video shows helicopters over Kabul as US Embassy evacuated”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn”,”videoId”:”world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_96D5B093-C903-F65B-8FC4-4AF8FAFA1417″},{“descriptionPlainText”:”A former US military base is now in the hands of the Taliban as the future of Afghanistan is unclear. CNN’s Clarissa Ward reports exclusively from what remains of Combat Outpost Andar in Afghanistan’s Ghazni province.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813164607-taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx-00025413-large-169.jpeg”,”title”:”CNN gets access to US military base seized by the Taliban”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn”,”videoId”:”world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_D273A9F2-BAF3-8047-7DCE-41174D9737BB”},{“descriptionPlainText”:”US Secretary of State Antony Blinken denies that the withdrawal from Kabul is similar to the one in Saigon at the close of the Vietnam War because the US has completed its mission in bringing the perpetrators of the September 11 terrorist attacks to justice in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816143128-screengrab-saigon-kabul-split-large-169.jpg”,”title”:”‘This is not Saigon’: Blinken says Afghanistan is different than Vietnam”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn”,”videoId”:”world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_B9F170C1-B0F7-5BD5-53C4-4A24E85D1823″},{“descriptionPlainText”:”CNN’s Michael Holmes speaks to journalist Ali Latifi about what life is like in Afghanistan’s capital Kabul after the Taliban’s takeover of Kandahar and Herat, the country’s second and third largest cities, respectively.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813104253-ali-latifi-afghanistan-taliban-kandahar-herat-large-169.jpg”,”title”:”Afghan journalist in Kabul explains why Taliban takeover of major cities matters”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn”,”videoId”:”world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_7FCD4231-52CC-45A4-323C-3ED7335268B7″},{“descriptionPlainText”:”Rep. Michael McCaul (R-TX), the top Republican on the House Foreign Affairs Committee, slammed the Biden administration’s withdrawal from Afghanistan, saying that it will be a stain on Biden’s presidency.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815105128-michael-mccaul-joe-biden-split-for-video-large-169.jpg”,”title”:”‘Blood on his hands’: Republican rips Biden over Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn”,”videoId”:”politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_3E277B99-5BB7-B816-4E87-4A359CF63BD5″},{“descriptionPlainText”:”CNN’s Jim Acosta presses Pentagon press secretary John Kirby about the decision to send more than 3,000 US troops to Afghanistan as the Taliban has made rapid gains.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813180803-jim-acosta-john-kirby-vpx-large-169.jpg”,”title”:”‘Am I wrong?’: Jim Acosta presses Pentagon spokesperson”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn”,”videoId”:”world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_A29BB542-4048-57AA-56E8-417FFE3C0BCB”},{“descriptionPlainText”:”CNN’s Peter Bergen says that the collapse of the Afghan army against the Taliban was an “unforced error” by the Biden administration and predicts that President Biden will have to send a military presence back into Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210814121927-bergen-smerconish-vpx-large-169.jpg”,”title”:”Bergen: Afghanistan an unforced error blowing up on Biden’s watch”,”videoCMSUrl”:”/video/data/3.0/video/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn/index.xml”,”videoLeafUrl”:”/videos/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn”,”videoId”:”tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn”,”videoUrl”:”/videos/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_353F687D-1598-F83A-2FA0-44424811626D”},{“descriptionPlainText”:”Journalist Ali Latifi discusses the scene in the capital and largest city of Afghanistan, Kabul, after the blast from the Taliban.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210804162548-ali-latifi-large-169.jpg”,”title”:”Journalist was at a cafe when Taliban attacked. Hear his story”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn”,”videoId”:”world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_21232409-375D-78E9-B397-12B8D80E57F5″}],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:”world/2021/08/16/kabul-clinging-to-airplane-taking-off-tarmac-afghanistan-ward-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-jhps6m’,videoDescriptionDivId: ‘js-video_description-jhps6m’,videoDurationDivId: ‘js-video_duration-jhps6m’,videoTitleDivId: ‘js-leaf-video_headline-jhps6m’,videoSourceDivId: ‘js-video_sourceName-jhps6m’});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