‘);$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/11/25/pakistan-protests-saifi-lok.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”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Scores of people, including protesters and law enforcement, have been injured as Pakistani authorities tried to end a 2-week long protest. CNN’s Sophia Saifi has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171125161928-02pakistan-large-169.jpg”,”title”:”Scores injured in Pakistani protest”,”videoCMSUrl”:”/videos/world/2017/11/25/pakistan-protests-saifi-lok.cnn”,”videoId”:”world/2017/11/25/pakistan-protests-saifi-lok.cnn”,”videoUrl”:”/videos/world/2017/11/25/pakistan-protests-saifi-lok.cnn”},{“descriptionPlainText”:”US Air Force Staff Sgt. Matthew Byous returned from overseas to surprise his 5-year-old daughter Kinley at school.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171122131038-ne-soldier-surprises-daughter-1-large-169.jpg”,”title”:”See airman’s tearful reunion with daughter”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/23/airman-surprises-daughter-at-school-orig-vstan.cnn/index.xml”,”videoId”:”us/2017/11/23/airman-surprises-daughter-at-school-orig-vstan.cnn”,”videoUrl”:”/videos/us/2017/11/23/airman-surprises-daughter-at-school-orig-vstan.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”CNN’s Erica Hill comments on the allegations against former “CBS This Morning” co-anchor Charlie Rose, saying that demeaning or trying to damage someone is not OK.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171122160511-erica-hill-nr-large-169.jpg”,”title”:”Erica Hill: We can’t grade inappropriate moments”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/11/22/erica-hill-demeaning-damaging-someone-is-not-ok-sot-nr.cnn/index.xml”,”videoId”:”us/2017/11/22/erica-hill-demeaning-damaging-someone-is-not-ok-sot-nr.cnn”,”videoUrl”:”/videos/us/2017/11/22/erica-hill-demeaning-damaging-someone-is-not-ok-sot-nr.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Contrary to popular belief, your cat and dog can get along. Animal Planet’s “Cat vs. Dog” host Zoe Sandor explains how to make this unlikely pairing possible.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171122155634-cat-vs-dog-orig-00004327-large-169.jpg”,”title”:”How your cat and dog can be friends”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/11/22/cat-vs-dog-orig.cnnmoney/index.xml”,”videoId”:”cnnmoney/2017/11/22/cat-vs-dog-orig.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2017/11/22/cat-vs-dog-orig.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Just over 30 miles south-east of Paris lies one of France’s symbols of national pride, home to 34 kings over a period spanning 8 centuries.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171117135414-chateau-de-fontainebleau-large-169.jpg”,”title”:”Discovering France’s ‘Home of the kings'”,”videoCMSUrl”:”/video/data/3.0/video/arts/2017/11/16/abu-dhabi-louvre-napoleon-style-orig.cnn/index.xml”,”videoId”:”arts/2017/11/16/abu-dhabi-louvre-napoleon-style-orig.cnn”,”videoUrl”:”/videos/arts/2017/11/16/abu-dhabi-louvre-napoleon-style-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Former CIA Director General Michael Hayden told Jim Sciutto that North Korea has often conducted nuclear tests in the winter. Could a launch be imminent?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171121091939-01-putin-assad-1121-large-169.jpg”,”title”:”Is North Korea preparing for its 7th nuclear test?”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/11/21/lead-general-michael-hayden-live-trump-assad-putin-jake-tapper.cnn/index.xml”,”videoId”:”tv/2017/11/21/lead-general-michael-hayden-live-trump-assad-putin-jake-tapper.cnn”,”videoUrl”:”/videos/tv/2017/11/21/lead-general-michael-hayden-live-trump-assad-putin-jake-tapper.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Documents reveal frustration among staffers at the Department of Interior over coordinating travel for Secretary Ryan Zinke’s wife on an official trip. CNN’s Tom Foreman reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171121102553-02-ryan-and-lolita-zinke-large-169.jpg”,”title”:”Questions surround Zinke’s wife’s travel”,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/11/22/ryan-zinke-wife-travel-questions-foreman-dnt-erin.cnn/index.xml”,”videoId”:”politics/2017/11/22/ryan-zinke-wife-travel-questions-foreman-dnt-erin.cnn”,”videoUrl”:”/videos/politics/2017/11/22/ryan-zinke-wife-travel-questions-foreman-dnt-erin.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”NASA has released a time-lapse video representing life on Earth over the past 20 years. It was created using data compiled from satellites.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171117093454-breathing-earth-timelapse-orig-00000000-large-169.jpg”,”title”:”See how Earth has changed over 20 years”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/17/breathing-earth-timelapse-orig.cnn/index.xml”,”videoId”:”world/2017/11/17/breathing-earth-timelapse-orig.cnn”,”videoUrl”:”/videos/world/2017/11/17/breathing-earth-timelapse-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Jacob Thompson, 9, passed away after a battle with neuroblastoma. He had an early Christmas celebration and received over 40,000 Christmas cards from people all over the world.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171120141647-jacob-thompson-christmas-cards-large-169.jpg”,”title”:”Child who asked for Christmas cards dies”,”videoCMSUrl”:”/video/data/3.0/video/health/2017/11/20/cancer-patient-loses-battle-christmas-cards-orig-trnd-lab.cnn/index.xml”,”videoId”:”health/2017/11/20/cancer-patient-loses-battle-christmas-cards-orig-trnd-lab.cnn”,”videoUrl”:”/videos/health/2017/11/20/cancer-patient-loses-battle-christmas-cards-orig-trnd-lab.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”:”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”:”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”:”People Magazine named Blake Shelton their 2017 “Sexiest Man Alive.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171115053501-blake-shelton-people-orig-large-169.jpg”,”title”:”Blake Shelton named ‘Sexiest Man Alive'”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/11/15/blake-shelton-people-sexiest-man-alive-ekr-orig-vstop.cnn/index.xml”,”videoId”:”cnnmoney/2017/11/15/blake-shelton-people-sexiest-man-alive-ekr-orig-vstop.cnn”,”videoUrl”:”/videos/cnnmoney/2017/11/15/blake-shelton-people-sexiest-man-alive-ekr-orig-vstop.cnn/video/playlists/stories-worth-watching/”}],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 = 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;function 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(‘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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */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 is null that means it’s not initialized yet so* pass in the thumbnail, too.*/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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}/* Video player isn’t autoplay, so init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start();} catch (startError) {console.log(“error in initializing video player” + startError);}}*/}}}} 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/2017/11/25/pakistan-protests-saifi-lok.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-47rt44’,videoDescriptionDivId: ‘js-video_description-47rt44’,videoDurationDivId: ‘js-video_duration-47rt44’,videoTitleDivId: ‘js-leaf-video_headline-47rt44’,videoSourceDivId: ‘js-video_sourceName-47rt44’});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(‘

Source

NO COMMENTS