A subway rider confronted two cops not wearing masks. This is what happened next

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2021/10/21/nypd-subway-masks-covid-orig-mss.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/211021192258-nypd-masks-subway-confrontation-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Masks are required on New York City subways. A subway rider decided to confront two NYPD officers who were not following the rules. Read more about the confrontation.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211021192258-nypd-masks-subway-confrontation-large-169.jpg”,”title”:”A subway rider confronted two cops not wearing masks. This is what happened next”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/21/nypd-subway-masks-covid-orig-mss.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/21/nypd-subway-masks-covid-orig-mss.cnn”,”videoId”:”us/2021/10/21/nypd-subway-masks-covid-orig-mss.cnn”,”videoUrl”:”/videos/us/2021/10/21/nypd-subway-masks-covid-orig-mss.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_1DB961BE-8270-0A8A-DBFD-A526491D8EC5″},{“descriptionPlainText”:”CNN’s Jim Acosta confronts Georgia Republican Rep. Marjorie Taylor Greene about why she voted against the criminal contempt resolution against former Trump adviser Steve Bannon.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211023161912-rep-marjorie-taylor-greene-vpx-large-169.jpg”,”title”:”Jim Acosta confronts Marjorie Taylor Greene on Capitol Hill”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/23/marjorie-taylor-greene-steve-bannon-contempt-acostanr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/23/marjorie-taylor-greene-steve-bannon-contempt-acostanr-vpx.cnn”,”videoId”:”politics/2021/10/23/marjorie-taylor-greene-steve-bannon-contempt-acostanr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/23/marjorie-taylor-greene-steve-bannon-contempt-acostanr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_569D9869-0168-F1FC-BD94-AEC4DDC0EAE8″},{“descriptionPlainText”:”During a campaign speech for Virginia Democratic gubernatorial candidate Terry McAuliffe, former President Barack Obama took the Republican Party to task for not supporting legislation that would increase access to voting.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211023155924-barack-obama-viriginia-october-23-2021-large-169.jpg”,”title”:”Obama to GOP: Tell us your ideas instead of trying to rig elections”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/23/barack-obama-republican-voter-law-rig-elections-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/23/barack-obama-republican-voter-law-rig-elections-sot-vpx.cnn”,”videoId”:”politics/2021/10/23/barack-obama-republican-voter-law-rig-elections-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/23/barack-obama-republican-voter-law-rig-elections-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_B6E08542-01F0-599E-3E52-AEACE3176116″},{“descriptionPlainText”:”A 911 call has been released moments after Alec Baldwin shot a prop gun on the set of the movie “Rust,” where the film’s director of photography, Halyna Hutchins, died and director Joel Souza was injured.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022045716-halyna-hutchins-alec-baldwin-split-large-169.jpg”,”title”:”Hear the 911 call moments after Alec Baldwin fired prop gun”,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2021/10/22/rust-movie-baldwin-prop-gun-911-call-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/entertainment/2021/10/22/rust-movie-baldwin-prop-gun-911-call-ebof-vpx.cnn”,”videoId”:”entertainment/2021/10/22/rust-movie-baldwin-prop-gun-911-call-ebof-vpx.cnn”,”videoUrl”:”/videos/entertainment/2021/10/22/rust-movie-baldwin-prop-gun-911-call-ebof-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_12E86678-FCD7-E300-0FBE-AA4E5E4A3319″},{“descriptionPlainText”:”Internal Facebook documents obtained by news outlets show the role the company played in the insurrection at the US Capitol. CNN’s Donie O’Sullivan reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022095403-07-facebook-papers-large-169.jpg”,”title”:”Messages show what employees were saying about Facebook’s role in the insurrection”,”videoCMSUrl”:”/video/data/3.0/video/tech/2021/10/23/facebook-papers-january-6-insurrection-osullivan-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/tech/2021/10/23/facebook-papers-january-6-insurrection-osullivan-ac360-vpx.cnn”,”videoId”:”tech/2021/10/23/facebook-papers-january-6-insurrection-osullivan-ac360-vpx.cnn”,”videoUrl”:”/videos/tech/2021/10/23/facebook-papers-january-6-insurrection-osullivan-ac360-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D2073661-6123-1B1F-6D39-AA92828FE2EB”},{“descriptionPlainText”:”Dr. Peter Hotez explains how the CDC was able to trace the origins of a rare tropical infection that had sickened people in the decidedly non-tropical states of Minnesota and Kansas, as well as Texas.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022143035-walmart-room-spray-recall-large-169.jpg”,”title”:”Doctor explains how rare tropical infection entered US”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/10/23/peter-hotez-aromatherapy-melioidosis-mystery-sot-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/10/23/peter-hotez-aromatherapy-melioidosis-mystery-sot-nr-vpx.cnn”,”videoId”:”health/2021/10/23/peter-hotez-aromatherapy-melioidosis-mystery-sot-nr-vpx.cnn”,”videoUrl”:”/videos/health/2021/10/23/peter-hotez-aromatherapy-melioidosis-mystery-sot-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D74931B7-5B3C-4E4F-0111-ADEB5CCE9669″},{“descriptionPlainText”:”Centner Academy, a private school in Miami, Florida, is spreading bogus claims about the Covid-19 vaccines and ordering students who get the shot to stay home for 30 days. CNN’s Gary Tuchman has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022213727-tuchman-miami-school-large-169.jpg”,”title”:”Tuchman confronts parents supporting school’s bogus vaccine claims”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/23/miami-private-school-misinformation-vaccines-tuchman-pkg-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/23/miami-private-school-misinformation-vaccines-tuchman-pkg-ac360-vpx.cnn”,”videoId”:”us/2021/10/23/miami-private-school-misinformation-vaccines-tuchman-pkg-ac360-vpx.cnn”,”videoUrl”:”/videos/us/2021/10/23/miami-private-school-misinformation-vaccines-tuchman-pkg-ac360-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_A237479D-42F4-017C-8E7B-AAAA3158D6FB”},{“descriptionPlainText”:”With the recent surge in arrest of migrants at the Texas border, many migrants are being jailed without formal charges and going weeks without legal aid. CNN’s Rosa Flores has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022165539-texas-border-migrants-large-169.jpeg”,”title”:”Migrants arrested at Texas border being jailed without legal aid”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/22/texas-migrants-arrests-flores-pkg-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/22/texas-migrants-arrests-flores-pkg-lead-vpx.cnn”,”videoId”:”politics/2021/10/22/texas-migrants-arrests-flores-pkg-lead-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/22/texas-migrants-arrests-flores-pkg-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_7B88633C-BA14-FAAE-F28C-A9B30961B14D”},{“descriptionPlainText”:”Residents of Benton Harbor, Michigan, have no clean water due to high levels of lead but are still expected to pay their water bill.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022174414-michigan-no-clean-water-marquez-large-169.jpg”,”title”:”Failing resources in one Michigan town leaves residents with no clean water “,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/22/michigan-town-no-clean-water-marquez-dnt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/22/michigan-town-no-clean-water-marquez-dnt-vpx.cnn”,”videoId”:”us/2021/10/22/michigan-town-no-clean-water-marquez-dnt-vpx.cnn”,”videoUrl”:”/videos/us/2021/10/22/michigan-town-no-clean-water-marquez-dnt-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_F53DFC62-DC93-36D6-B2BE-A9E7A58C7814″},{“descriptionPlainText”:”A months-long CNN investigation found that tens of millions of counterfeit and used medical gloves were made to look new again and sent to the US, according to import records and distributors who bought the gloves. Criminal investigations are underway by the authorities in the US and Thailand. CNN’s Scott McLean reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022152126-03-us-medical-gloves-intl-cmd-large-169.jpg”,”title”:”CNN investigates what experts call the world’s most dangerous commodity”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/23/medical-gloves-us-thailand-investigation-mclean-pkg-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/23/medical-gloves-us-thailand-investigation-mclean-pkg-intl-vpx.cnn”,”videoId”:”world/2021/10/23/medical-gloves-us-thailand-investigation-mclean-pkg-intl-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/23/medical-gloves-us-thailand-investigation-mclean-pkg-intl-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_213A1433-713D-A94A-50BA-ADABE2C89EB7″},{“descriptionPlainText”:”Smashing the auction estimate, “Big John,” the biggest known Triceratops fossil in the world, has been sold by the Drouot auction house in Paris.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022173708-triceratops-skeleton-sold-lon-orig-na-large-169.jpg”,”title”:”World’s largest Triceratops ever found sells for $7.7 million”,”videoCMSUrl”:”/video/data/3.0/video/arts/2021/10/22/biggest-triceratops-skeleton-sold-lon-orig-na.cnn/index.xml”,”videoLeafUrl”:”/videos/arts/2021/10/22/biggest-triceratops-skeleton-sold-lon-orig-na.cnn”,”videoId”:”arts/2021/10/22/biggest-triceratops-skeleton-sold-lon-orig-na.cnn”,”videoUrl”:”/videos/arts/2021/10/22/biggest-triceratops-skeleton-sold-lon-orig-na.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_747E22A6-CE92-4FB1-662D-A84C3FF57D95″},{“descriptionPlainText”:”A Marine veteran is gaining attention after surveillance video showed him disarm an armed robber at an Arizona gas station. CNN affiliate KNXV reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022114540-ycso-large-169.jpeg”,”title”:”Surveillance video shows Marine veteran stop armed robbery”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/22/marine-veteran-stops-armed-robbery-arizona-gas-station-pkg-affil-vpx.knxv/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/22/marine-veteran-stops-armed-robbery-arizona-gas-station-pkg-affil-vpx.knxv”,”videoId”:”us/2021/10/22/marine-veteran-stops-armed-robbery-arizona-gas-station-pkg-affil-vpx.knxv”,”videoUrl”:”/videos/us/2021/10/22/marine-veteran-stops-armed-robbery-arizona-gas-station-pkg-affil-vpx.knxv/video/playlists/top-news-videos/”,”surrogateKey”:”video_52C3FBA6-1FE5-634F-8D49-A8ADF08C185D”},{“descriptionPlainText”:”Anthony Flint, who claims to have developed Guillain-Barré syndrome after his Johnson & Johnson Covid-19 vaccination, discusses the rare autoimmune disorder and why he is still urging others to get vaccinated.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211022131504-anthony-flint-vpx-large-169.jpg”,”title”:”Man with vaccine side-effect has message for unvaccinated”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/10/22/man-claims-developed-rare-condition-after-johnson–johnson-vaccine-anthony-flint-ath-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/10/22/man-claims-developed-rare-condition-after-johnson–johnson-vaccine-anthony-flint-ath-vpx.cnn”,”videoId”:”health/2021/10/22/man-claims-developed-rare-condition-after-johnson–johnson-vaccine-anthony-flint-ath-vpx.cnn”,”videoUrl”:”/videos/health/2021/10/22/man-claims-developed-rare-condition-after-johnson–johnson-vaccine-anthony-flint-ath-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6D0091E8-CE02-7BD2-09F4-A8E86BDE01FF”},{“descriptionPlainText”:”Rudy Giuliani’s former associate Lev Parnas was convicted on six counts related to “influence buying” campaign finance schemes.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211020101821-lev-parnas-1018-large-169.jpg”,”title”:”Lev Parnas found guilty on campaign finance charges “,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/22/lev-parnas-verdict-campaign-finances-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/22/lev-parnas-verdict-campaign-finances-vpx.cnn”,”videoId”:”politics/2021/10/22/lev-parnas-verdict-campaign-finances-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/22/lev-parnas-verdict-campaign-finances-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_50DACB18-A574-E0B7-D5B9-A970C1065859″},{“descriptionPlainText”:”CNN’s Jessica Schneider walks through the Supreme Court’s decision to allow a Texas law that bars most abortions after six weeks to remain in place for now, while agreeing to hear oral arguments on the law next month.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200102152153-01-supreme-court-building-2019-large-169.jpg”,”title”:”Why Supreme Court didn’t block Texas abortion law”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/22/texas-abortion-law-supreme-court-doesnt-block-schneider-sot-ip-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/22/texas-abortion-law-supreme-court-doesnt-block-schneider-sot-ip-vpx.cnn”,”videoId”:”us/2021/10/22/texas-abortion-law-supreme-court-doesnt-block-schneider-sot-ip-vpx.cnn”,”videoUrl”:”/videos/us/2021/10/22/texas-abortion-law-supreme-court-doesnt-block-schneider-sot-ip-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_C713B408-F843-7E7D-5568-A8F70AB7D9DA”},{“descriptionPlainText”:”During an appearance on ABC’s “Good Morning America” Laundrie family attorney, Steven Bertolino, refused to say whether Brian Laundrie told his parents anything about the disappearance of Gabby Petito. CNN’s Nick Valencia reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211021082405-02-brian-laundrie-large-169.jpg”,”title”:”Family attorney pressed on what Laundrie told parents about Petito”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/22/brian-laundrie-family-gabby-petito-knowledge-sot-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/22/brian-laundrie-family-gabby-petito-knowledge-sot-nr-vpx.cnn”,”videoId”:”us/2021/10/22/brian-laundrie-family-gabby-petito-knowledge-sot-nr-vpx.cnn”,”videoUrl”:”/videos/us/2021/10/22/brian-laundrie-family-gabby-petito-knowledge-sot-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_57B2C7E2-242C-214C-39D8-A872A49104A8″}],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/2021/10/21/nypd-subway-masks-covid-orig-mss.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-14ziu14’,videoDescriptionDivId: ‘js-video_description-14ziu14’,videoDurationDivId: ‘js-video_duration-14ziu14’,videoTitleDivId: ‘js-leaf-video_headline-14ziu14’,videoSourceDivId: ‘js-video_sourceName-14ziu14’});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