‘);$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/06/saudi-arabia-whats-going-on-lon-orig-mkd-ejk.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/171106102949-01-mohammed-bin-salman-file-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”In a weekend that saw a resignation, an intercepted missile, and 17 arrested officials and royals, CNN’s Becky Anderson explores what happened in Saudi Arabia and the Middle East.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171106102949-01-mohammed-bin-salman-file-large-169.jpg”,”title”:”Saudi Arabia: What’s going on?”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/06/saudi-arabia-whats-going-on-lon-orig-mkd-ejk.cnn/index.xml”,”videoId”:”world/2017/11/06/saudi-arabia-whats-going-on-lon-orig-mkd-ejk.cnn”,”videoUrl”:”/videos/world/2017/11/06/saudi-arabia-whats-going-on-lon-orig-mkd-ejk.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Crown Prince Mohammed bin Salman’s anti-corruption sweep is sending shock waves throughout the kingdom and beyond. CNN’s Nic Robertson has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171106032233-saudi-arabia-power-grab-robertson-pkg-00022512-large-169.jpg”,”title”:”Crown Prince leads anti-corruption sweep”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/06/saudi-arabia-power-grab-robertson-pkg.cnn/index.xml”,”videoId”:”world/2017/11/06/saudi-arabia-power-grab-robertson-pkg.cnn”,”videoUrl”:”/videos/world/2017/11/06/saudi-arabia-power-grab-robertson-pkg.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”The House of Saud is one of the richest families in the world, but who are Saudi Arabia’s royal family?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170621203545-house-of-saud-large-169.jpg”,”title”:”Saudi Arabia’s Royal Family: What to know “,”videoCMSUrl”:”/video/data/3.0/video/world/2017/06/21/house-of-saud-explainer-mxb-lon-orig.cnn/index.xml”,”videoId”:”world/2017/06/21/house-of-saud-explainer-mxb-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/06/21/house-of-saud-explainer-mxb-lon-orig.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”At least 17 Saudi princes and top officials have been arrested in Saudi Arabia on accusations of corruption. CNN’s Becky Anderson has the latest.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171105161844-saudi-princes-and-top-offiicials-arrested-for-corruption-anderson-looklive-00004407-large-169.jpg”,”title”:”Saudi Arabia princes arrested in corruption case”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/05/saudi-princes-and-top-offiicials-arrested-for-corruption-anderson-looklive.cnn/index.xml”,”videoId”:”world/2017/11/05/saudi-princes-and-top-offiicials-arrested-for-corruption-anderson-looklive.cnn”,”videoUrl”:”/videos/world/2017/11/05/saudi-princes-and-top-offiicials-arrested-for-corruption-anderson-looklive.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Saudi Crown Prince Mohammed bin Salman has vowed to destroy extremist ideologies and return to a more moderate Islam. CNN looks at the man trying to transform the Kingdom.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171025173858-mohammed-bin-salman-2-large-169.jpg”,”title”:”The 32-year-old trying to revamp Saudi Arabia”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/10/25/who-is-mohammed-bin-salman-lon-orig-mkd.cnn/index.xml”,”videoId”:”world/2017/10/25/who-is-mohammed-bin-salman-lon-orig-mkd.cnn”,”videoUrl”:”/videos/world/2017/10/25/who-is-mohammed-bin-salman-lon-orig-mkd.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Fatimah Baeshen, spokeswoman for Saudi Embassy, talks to Brooke Baldwin about the misconceptions and cultural norms on women’s rights in Saudi Arabia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170927133328-saudi-women-driving-large-169.jpg”,”title”:”Spokeswoman defends progress in Saudi Arabia”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/28/saudi-arabia-lifts-ban-women-drivers-bts-nr.cnn/index.xml”,”videoId”:”world/2017/09/28/saudi-arabia-lifts-ban-women-drivers-bts-nr.cnn”,”videoUrl”:”/videos/world/2017/09/28/saudi-arabia-lifts-ban-women-drivers-bts-nr.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”The Yemeni Air Force targeted King Khalid International Airport in the Saudi capital of Riyadh with a ballistic missile, according to Yemen’s Houthi-controlled Defense Ministry.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171104151539-king-khalid-international-airport-riyadh-saudi-arabia-large-169.jpg”,”title”:”Saudi Arabia intercepts ballistic missile”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/11/04/saudi-arabia-ballistic-missile-nr.cnn/index.xml”,”videoId”:”world/2017/11/04/saudi-arabia-ballistic-missile-nr.cnn”,”videoUrl”:”/videos/world/2017/11/04/saudi-arabia-ballistic-missile-nr.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Prince Turki bin Saud bin Al-Kabeer of Saudi Arabia has been put to death for the shooting death of a man during a “group quarrel.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160211202556-cnnmoney-saudi-flag-large-169.jpg”,”title”:”Saudi Arabia executes royal family member”,”videoCMSUrl”:”/video/data/3.0/video/world/2016/10/19/saudi-arabia-royal-execution-orig-vstop.cnn/index.xml”,”videoId”:”world/2016/10/19/saudi-arabia-royal-execution-orig-vstop.cnn”,”videoUrl”:”/videos/world/2016/10/19/saudi-arabia-royal-execution-orig-vstop.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”A Saudi production company has released a music video that promotes women’s rights in the country. It has now gone viral with 2.5 million views & counting”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170104114159-saudi-music-1-large-169.jpg”,”title”:”Saudi music video on women’s rights goes viral “,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/01/04/saudi-music-video-women-rights-mkd-orig.cnn/index.xml”,”videoId”:”tv/2017/01/04/saudi-music-video-women-rights-mkd-orig.cnn”,”videoUrl”:”/videos/tv/2017/01/04/saudi-music-video-women-rights-mkd-orig.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Saudi Arabia’s guardianship system means that men have the power to make a range of critical decisions on a woman’s behalf. Now, some Saudi women are using social media to push back.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160915161558-saudi-woman-1-large-169.jpg”,”title”:”‘I’m a prisoner and my crime is that I’m a Saudi woman'”,”videoCMSUrl”:”/video/data/3.0/video/world/2016/09/15/saudi-arabian-women-social-campaign-orig.cnn/index.xml”,”videoId”:”world/2016/09/15/saudi-arabian-women-social-campaign-orig.cnn”,”videoUrl”:”/videos/world/2016/09/15/saudi-arabian-women-social-campaign-orig.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”President Donald Trump was criticized as a hypocrite for seemingly bowing before the Saudi King, an act for which he had criticized then-President Barack Obama for doing back in 2012.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170520204237-trump-slammed-hypocrite-bowing-saudi-king-smith-nr-00005811-large-169.jpg”,”title”:”Trump called a hypocrite for Saudi King bow”,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/05/21/trump-slammed-hypocrite-bowing-saudi-king-smith-nr.cnn/index.xml”,”videoId”:”politics/2017/05/21/trump-slammed-hypocrite-bowing-saudi-king-smith-nr.cnn”,”videoUrl”:”/videos/politics/2017/05/21/trump-slammed-hypocrite-bowing-saudi-king-smith-nr.cnn/video/playlists/saudi-arabia/”},{“descriptionPlainText”:”Saudi Arabia’s king has removed his nephew as crown prince in favor of his son, Mohammed bin Salman bin Abdulaziz..”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170621015900-prince-mohammed-bin-naif-2-large-169.jpg”,”title”:”Saudi king appoints son as heir”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/06/21/saudi-arabia-crown-prince-son.cnn/index.xml”,”videoId”:”world/2017/06/21/saudi-arabia-crown-prince-son.cnn”,”videoUrl”:”/videos/world/2017/06/21/saudi-arabia-crown-prince-son.cnn/video/playlists/saudi-arabia/”}],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, 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/06/saudi-arabia-whats-going-on-lon-orig-mkd-ejk.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-201tv9z’,videoDescriptionDivId: ‘js-video_description-201tv9z’,videoDurationDivId: ‘js-video_duration-201tv9z’,videoTitleDivId: ‘js-leaf-video_headline-201tv9z’,videoSourceDivId: ‘js-video_sourceName-201tv9z’});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