Professor explains why Texas power system is struggling

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-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/210217134550-cohan-keilar-intv-texas-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”CNN’s Brianna Keilar speaks with Daniel Cohan, a professor at Rice University, about the power outages in Texas due to the severe winter weather.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210217134550-cohan-keilar-intv-texas-large-169.jpg”,”title”:”Professor explains why Texas power system is struggling”,”videoCMSUrl”:”/videos/weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-vpx.cnn”,”videoLeafUrl”:”/videos/weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-vpx.cnn”,”videoId”:”weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-vpx.cnn”,”videoUrl”:”/videos/weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-vpx.cnn”,”surrogateKey”:”video_18465258-D4CA-C205-85C5-B13EA6B8EE9D”},{“descriptionPlainText”:”Texas is taking another punch from old man winter after already being debilitated by ice, snow and cold. CNN meteorologist Pedram Jsvaheri has the details.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210217044508-daily-weather-forecast-ice-snow-freezing-rain-sleet-record-cold-texss-00005704-large-169.png”,”title”:”Another winter storm battering Texas”,”videoCMSUrl”:”/video/data/3.0/video/weather/2021/02/17/daily-weather-forecast-ice-snow-freezing-rain-sleet-record-cold-texss.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2021/02/17/daily-weather-forecast-ice-snow-freezing-rain-sleet-record-cold-texss.cnn”,”videoId”:”weather/2021/02/17/daily-weather-forecast-ice-snow-freezing-rain-sleet-record-cold-texss.cnn”,”videoUrl”:”/videos/weather/2021/02/17/daily-weather-forecast-ice-snow-freezing-rain-sleet-record-cold-texss.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_5107F708-D642-ACE9-9BD6-AF505637E83A”},{“descriptionPlainText”:”Metro areas across Texas and Oklahoma were buried in inches of snow which caused power outages and disrupted travel.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210215184739-texas-snow-large-169.jpg”,”title”:”Rare snowfall blankets Texas and Oklahoma “,”videoCMSUrl”:”/video/data/3.0/video/weather/2021/02/16/texas-oklahoma-snow-winter-storm-uri-orig-jk-llr.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2021/02/16/texas-oklahoma-snow-winter-storm-uri-orig-jk-llr.cnn”,”videoId”:”weather/2021/02/16/texas-oklahoma-snow-winter-storm-uri-orig-jk-llr.cnn”,”videoUrl”:”/videos/weather/2021/02/16/texas-oklahoma-snow-winter-storm-uri-orig-jk-llr.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_3F27A94B-DEB5-9EFD-B0B5-A8495B6BC718″},{“descriptionPlainText”:”Newly released videos paint an alarming picture of just how much worse the Capitol attack could have been. CNN’s Tom Foreman takes a closer look.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210215171817-new-capitol-riot-footage-foreman-dnt-vpx-large-169.jpg”,”title”:”New Capitol riot video shows extreme levels of coordination”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/15/capitol-insurrection-newly-released-video-foreman-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/15/capitol-insurrection-newly-released-video-foreman-dnt-lead-vpx.cnn”,”videoId”:”politics/2021/02/15/capitol-insurrection-newly-released-video-foreman-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/15/capitol-insurrection-newly-released-video-foreman-dnt-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_96FA30EE-1DDC-0046-C010-A7A7B577DAD6″},{“descriptionPlainText”:”New York Gov. Andrew Cuomo says all the coronavirus deaths in the nursing homes and in the hospitals “were always fully, publicly and accurately reported” following allegations of a cover-up and calls for impeachment. CNN’s Brynn Gingras reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210215153549-gov-andrew-cuomo-02152021-large-169.jpg”,”title”:”‘We made a mistake’: Gov. Cuomo denies covering up Covid-19 deaths”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/02/15/andrew-cuomo-coronavirus-nursing-home-deaths-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/02/15/andrew-cuomo-coronavirus-nursing-home-deaths-vpx.cnn”,”videoId”:”health/2021/02/15/andrew-cuomo-coronavirus-nursing-home-deaths-vpx.cnn”,”videoUrl”:”/videos/health/2021/02/15/andrew-cuomo-coronavirus-nursing-home-deaths-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_77AC64AA-F768-D834-00ED-A761B0FC28C9″},{“descriptionPlainText”:”Duke University is testing Pfizer’s coronavirus vaccine on 2,000 children between the ages of 12 and 15 years old. CNN’s Pamela Brown speaks with trial participant Caleb Chung and his father Dr. Richard Chung about the 12-year-old’s experience.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210214200742-pfizer-coronavirus-vaccine-trial-kids-duke-caleb-richard-chung-intv-nr-vpx-00002530-large-169.jpg”,”title”:”12-year-old vaccine trial participant shares his experience”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/02/15/pfizer-coronavirus-vaccine-trial-kids-duke-caleb-richard-chung-intv-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/02/15/pfizer-coronavirus-vaccine-trial-kids-duke-caleb-richard-chung-intv-nr-vpx.cnn”,”videoId”:”health/2021/02/15/pfizer-coronavirus-vaccine-trial-kids-duke-caleb-richard-chung-intv-nr-vpx.cnn”,”videoUrl”:”/videos/health/2021/02/15/pfizer-coronavirus-vaccine-trial-kids-duke-caleb-richard-chung-intv-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6C6E637D-F64C-18D0-34AD-A3309E0F60CF”},{“descriptionPlainText”:”Prince Harry and Meghan, the Duchess of Sussex, announced they are expecting their second child. CNN’s Max Foster reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201215074825-meghan-harry-0107-file-large-169.jpg”,”title”:”Meghan and Harry announce they’re expecting second child”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/02/14/prince-harry-meghan-markle-sussex-baby-announcement-foster-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/02/14/prince-harry-meghan-markle-sussex-baby-announcement-foster-nr-vpx.cnn”,”videoId”:”world/2021/02/14/prince-harry-meghan-markle-sussex-baby-announcement-foster-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/02/14/prince-harry-meghan-markle-sussex-baby-announcement-foster-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_DC1298D3-9877-F296-A447-A223E2558CD6″},{“descriptionPlainText”:”CDC Director Dr. Rochelle Walensky talks with CNN’s Jake Tapper about the guidance to safely reopen US schools.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210214102132-tapper-walensky-sotu-intv-2-14-21-large-169.jpg”,”title”:”Jake Tapper presses CDC director on reopening schools”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/02/14/cdc-director-rochelle-walensky-reopening-schools-tapper-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/02/14/cdc-director-rochelle-walensky-reopening-schools-tapper-sotu-vpx.cnn”,”videoId”:”health/2021/02/14/cdc-director-rochelle-walensky-reopening-schools-tapper-sotu-vpx.cnn”,”videoUrl”:”/videos/health/2021/02/14/cdc-director-rochelle-walensky-reopening-schools-tapper-sotu-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_FEA3F550-F293-2010-2137-A116AD51FE8E”},{“descriptionPlainText”:”Del. Stacey Plaskett (D-VI), one of the House impeachment managers for Trump’s second trial, reacts to the Senate vote acquitting the former president.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210214093518-sotu-stacey-plaskett-large-169.jpg”,”title”:”Plaskett: We didn’t need more witnesses, we needed more senators with spines”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/14/stacey-plaskett-trump-impeachment-trial-acquittal-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/14/stacey-plaskett-trump-impeachment-trial-acquittal-sotu-vpx.cnn”,”videoId”:”politics/2021/02/14/stacey-plaskett-trump-impeachment-trial-acquittal-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/14/stacey-plaskett-trump-impeachment-trial-acquittal-sotu-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_403C07C3-232A-5FEC-4226-A0F227B0E4CD”},{“descriptionPlainText”:”The Senate acquitted former President Donald Trump in his second impeachment trial, voting that Trump was not guilty of inciting the deadly January 6 riot at the US Capitol. CNN’s Ryan Nobles reports the verdict amounted to a bipartisan rebuke of the former President with seven Republicans finding him guilty.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210213202046-trump-impeachment-vote-acquittal-day-5-wrap-trial-two-nobles-nr-vpx-00021619-large-169.jpg”,”title”:”Senate acquits Donald Trump of inciting the Capitol riot”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/14/trump-impeachment-vote-acquittal-day-5-wrap-trial-two-nobles-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/14/trump-impeachment-vote-acquittal-day-5-wrap-trial-two-nobles-nr-vpx.cnn”,”videoId”:”politics/2021/02/14/trump-impeachment-vote-acquittal-day-5-wrap-trial-two-nobles-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/14/trump-impeachment-vote-acquittal-day-5-wrap-trial-two-nobles-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_4E4F4163-583C-247E-FC25-9E0BBF443B1A”},{“descriptionPlainText”:”White House deputy press secretary TJ Ducklo has resigned following a Vanity Fair report that he threatened a reporter who was working on a story about his romantic relationship with another reporter. CNN’s Arlette Saenz reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210212130217-tj-ducklo-0209-large-169.jpg”,”title”:”White House deputy press secretary TJ Ducklo resigns “,”videoCMSUrl”:”/video/data/3.0/video/media/2021/02/14/tj-ducklo-resigns-deputy-white-house-press-secretary-saenz-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/02/14/tj-ducklo-resigns-deputy-white-house-press-secretary-saenz-nr-vpx.cnn”,”videoId”:”media/2021/02/14/tj-ducklo-resigns-deputy-white-house-press-secretary-saenz-nr-vpx.cnn”,”videoUrl”:”/videos/media/2021/02/14/tj-ducklo-resigns-deputy-white-house-press-secretary-saenz-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_4BDD7E8C-6885-CD64-4951-9DED7A6B7C9C”},{“descriptionPlainText”:”House impeachment managers Rep. Jamie Raskin (D-MD) and Del. Stacey Plaskett (D-USVI) defend their decision not to call witnesses in the second impeachment trial of former President Donald Trump.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210213173906-raskin-with-house-impeachment-managers-january-13-2021-01-large-169.jpg”,”title”:”Impeachment managers defend not calling witnesses”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/13/raskin-plaskett-defend-not-calling-witnesses-trump-second-impeachment-acquittal-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/13/raskin-plaskett-defend-not-calling-witnesses-trump-second-impeachment-acquittal-sot-vpx.cnn”,”videoId”:”politics/2021/02/13/raskin-plaskett-defend-not-calling-witnesses-trump-second-impeachment-acquittal-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/13/raskin-plaskett-defend-not-calling-witnesses-trump-second-impeachment-acquittal-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_12EF964F-797B-4AF3-FE92-9D84F6D711B2″},{“descriptionPlainText”:”Senate Minority Leader Mitch McConnell (R-KY) said that there was no question that former President Donald Trump was “practically and morally responsible” for provoking the January 6 US Capitol insurrection despite the Senate voting to acquit Trump for inciting the riot.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210213165012-mitch-mcconnell-february-13-2021-02-large-169.jpg”,”title”:”McConnell: No question Trump is responsible for provoking riot”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/13/mitch-mcconnell-trump-responsible-for-riot-impeachment-acquittal-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/13/mitch-mcconnell-trump-responsible-for-riot-impeachment-acquittal-sot-vpx.cnn”,”videoId”:”politics/2021/02/13/mitch-mcconnell-trump-responsible-for-riot-impeachment-acquittal-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/13/mitch-mcconnell-trump-responsible-for-riot-impeachment-acquittal-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_0AE1E2D6-1371-9823-2EF3-9D5240E7E0DA”},{“descriptionPlainText”:”Senate Majority Leader Chuck Schumer (D-NY) delivers remarks after senators voted to acquit former President Donald Trump in his second impeachment trial. Seven Republican senators voted to convict Trump for inciting the Capitol riot on January 6.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210213161240-schumer-post-acquittal-trump-impeachment-large-169.jpg”,”title”:”Schumer: GOP lacked courage to condemn Trump’s despicable act”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/13/trump-impeachment-vote-acquittal-schumer-bts-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/13/trump-impeachment-vote-acquittal-schumer-bts-vpx.cnn”,”videoId”:”politics/2021/02/13/trump-impeachment-vote-acquittal-schumer-bts-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/13/trump-impeachment-vote-acquittal-schumer-bts-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_DEF10337-78E7-4E6C-5C57-9D5B9ABD2D6C”},{“descriptionPlainText”:”CNN’s Daniel Dale fact-checks several claims made by former President Donald Trump’s defense attorneys during his second impeachment trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210212213831-dale-large-169.jpg”,”title”:”‘Insultingly misleading’: Dale on Trump lawyer’s claim”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/13/trump-impeachment-lawyers-fact-check-dale-sot-vpx-ac360.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/13/trump-impeachment-lawyers-fact-check-dale-sot-vpx-ac360.cnn”,”videoId”:”politics/2021/02/13/trump-impeachment-lawyers-fact-check-dale-sot-vpx-ac360.cnn”,”videoUrl”:”/videos/politics/2021/02/13/trump-impeachment-lawyers-fact-check-dale-sot-vpx-ac360.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_09D95ACA-3B6B-438D-ACCD-9934C894FCBA”},{“descriptionPlainText”:”During remarks at the National Institutes of Health, President Joe Biden said that Donald Trump’s administration did not do their job getting enough coronavirus vaccines and forming a distribution plan to get shots out to Americans.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210211172539-biden-covid-19-vaccines-trump-did-not-do-his-job-sot-vpx-00000525-large-169.png”,”title”:”Biden slams Trump over Covid-19 vaccine rollout”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/02/11/biden-covid-19-vaccines-trump-did-not-do-his-job-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/02/11/biden-covid-19-vaccines-trump-did-not-do-his-job-sot-vpx.cnn”,”videoId”:”health/2021/02/11/biden-covid-19-vaccines-trump-did-not-do-his-job-sot-vpx.cnn”,”videoUrl”:”/videos/health/2021/02/11/biden-covid-19-vaccines-trump-did-not-do-his-job-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_258CA0CF-896C-EF00-C427-9326355AC867″},{“descriptionPlainText”:”A civilian contractor was killed and a US service member was injured along with five other contractors when rocket fire landed on coalition forces near Erbil International Airport in Iraq, according to Col. Wayne Marotto, the spokesman for Operation Inherent Resolve. CNN’s Oren Liebermann reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210216103819-erbil-rocket-attacks-us-coalition-forces-02152021-large-169.jpg”,”title”:”Rocket attack hits US and coalition forces in Iraq”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/02/16/erbil-iraq-rocket-attacks-us-coalition-forces-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/02/16/erbil-iraq-rocket-attacks-us-coalition-forces-ldn-vpx.cnn”,”videoId”:”politics/2021/02/16/erbil-iraq-rocket-attacks-us-coalition-forces-ldn-vpx.cnn”,”videoUrl”:”/videos/politics/2021/02/16/erbil-iraq-rocket-attacks-us-coalition-forces-ldn-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6B38A7BF-08DC-4FF9-170D-AA64D2FE2512″}],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:”weather/2021/02/17/texas-weather-power-natural-gas-keilar-cohan-nr-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-4cbg2z’,videoDescriptionDivId: ‘js-video_description-4cbg2z’,videoDurationDivId: ‘js-video_duration-4cbg2z’,videoTitleDivId: ‘js-leaf-video_headline-4cbg2z’,videoSourceDivId: ‘js-video_sourceName-4cbg2z’});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