Maverick Viñales dodges disaster after bailing out at 228 kph

0
830



‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.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/200824083643-maverick-vinales-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”A week after miraculously avoiding a flying motorcycle that almost hit him at close to 200kph, Yamaha MotoGP rider Maverick Viñales was again counting his lucky stars after a terrifying incident during Sunday’s MotoGP of Styria, in Austria.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200824083643-maverick-vinales-large-169.jpg”,”title”:”Maverick Viñales dodges disaster after bailing out at 228 kph”,”videoCMSUrl”:”/videos/sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.cnn”,”videoLeafUrl”:”/videos/sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.cnn”,”surrogateKey”:”video_11755C4F-4465-75D6-7C0E-203F65B4D401″},{“descriptionPlainText”:”World champion ice climber Will Gadd says he is one of the last people to climb an iconic route to the Kilimanjaro summit before it melted away for good. He’s been named “Mountain Hero” for his work exploring the impact of climate change on mountains.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201009130431-will-gadd-tease-image-large-169.jpg”,”title”:”Will Gadd: ‘Mountain Hero’ climbs Kilimanjaro’s now-melting ice cap”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/10/08/will-gadd-kilimanjaro-ice-climbing-climate-change-africa-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/10/08/will-gadd-kilimanjaro-ice-climbing-climate-change-africa-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/10/08/will-gadd-kilimanjaro-ice-climbing-climate-change-africa-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/10/08/will-gadd-kilimanjaro-ice-climbing-climate-change-africa-spt-intl-lon-orig-cmd.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_968667F4-DEE9-6398-AC9A-088B1B1350DD”},{“descriptionPlainText”:”AS Roma legend Francesco Totti visited Ilenia Matilli at the Gemelli Hospital in Rome on September 28. This is the moment the soccer superstar surprised her after she awoke from a coma.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200929154418-totti-visits-fan-hospital-large-169.jpg”,”title”:”Roma legend Totti visits young fan who awoke from coma”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/29/francesco-totti-visits-fan-in-hospital-rome-as-roma-football-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/29/francesco-totti-visits-fan-in-hospital-rome-as-roma-football-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/09/29/francesco-totti-visits-fan-in-hospital-rome-as-roma-football-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/09/29/francesco-totti-visits-fan-in-hospital-rome-as-roma-football-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_4AB735BD-3B94-DF47-8831-DA3D0C8E9C72″},{“descriptionPlainText”:”2020 French Open champion Iga Swiatek tells Christina Macfarlane what it was like to win at Roland Garros and how she’s looking forward to playing Naomi Osaka in the future.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201012102845-iga-swiatek-trophy-french-open-tease-large-169.jpg”,”title”:”Iga Swiatek on winning 2020 French Open”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/10/12/iga-swiatek-french-open-2020-champion-roland-garros-poland-naomi-osaka-tennis-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/10/12/iga-swiatek-french-open-2020-champion-roland-garros-poland-naomi-osaka-tennis-spt-intl.cnn”,”videoId”:”sports/2020/10/12/iga-swiatek-french-open-2020-champion-roland-garros-poland-naomi-osaka-tennis-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/10/12/iga-swiatek-french-open-2020-champion-roland-garros-poland-naomi-osaka-tennis-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_8BA5AF2F-CBF1-08BD-03BF-1C1C8F5B56A3″},{“descriptionPlainText”:”Karting driver Luca Corberi is being investigated by the FIA after he threw his bumper into traffic at another driver and attacked the competitor who he blamed for his own crash.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201006143116-luca-corberi-bumper-throw-tease-large-169.jpg”,”title”:”Karting driver investigated over attack on track”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/10/06/luca-corberi-throws-bumper-fia-karting-championship-incident-motorsport-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/10/06/luca-corberi-throws-bumper-fia-karting-championship-incident-motorsport-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/10/06/luca-corberi-throws-bumper-fia-karting-championship-incident-motorsport-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/10/06/luca-corberi-throws-bumper-fia-karting-championship-incident-motorsport-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_17222FD7-7E81-A008-FFEA-FE0C7BF57BB7″},{“descriptionPlainText”:”Priscilla Frederick-Loomis wants to make it to Hollywood and play a Marvel superhero. And the Olympic high jumper is going to do everything it takes, even if that involves defying body ideals and racial barriers.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201006093913-loomis-large-169.jpg”,”title”:”Told she was ‘too heavy’ by model agency, she became an Olympian instead”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/10/priscilla-frederick-loomis-body-image-eating-disorders-racism-olympics-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/10/priscilla-frederick-loomis-body-image-eating-disorders-racism-olympics-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/09/10/priscilla-frederick-loomis-body-image-eating-disorders-racism-olympics-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/09/10/priscilla-frederick-loomis-body-image-eating-disorders-racism-olympics-spt-intl-lon-orig-cmd.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_2868D35D-1CCC-E195-0FFD-78646EEBE4CA”},{“descriptionPlainText”:”Double Olympic gold medalist Mikaela Shiffrin chats to CNN about Covid-19 and the unexpected and tragic loss of her father earlier this year.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201006205543-mikaela-shiffrin-father-accident-coronavirus-spt-intl-00013928-large-169.jpg”,”title”:”Catching up with Mikaela Shiffrin”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/10/07/mikaela-shiffrin-father-accident-coronavirus-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/10/07/mikaela-shiffrin-father-accident-coronavirus-spt-intl.cnn”,”videoId”:”sports/2020/10/07/mikaela-shiffrin-father-accident-coronavirus-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/10/07/mikaela-shiffrin-father-accident-coronavirus-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_FF5E8016-53FE-0F44-4D6C-008455EBDD4F”},{“descriptionPlainText”:”Arnaud Jerald broke the world record for the deepest sea dive in bi-fins at a depth of 354 feet. Now, in a dive lasting three minutes and 24 seconds, he’s surpassed his own record, descending to almost 367.5 feet.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200929142939-arnauld-jerald-diving-world-record-still-large-169.jpg”,”title”:”Free diving 112 meters into the depths”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/29/arnaud-jerald-deep-sea-diver-world-record-holder-free-diving-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/29/arnaud-jerald-deep-sea-diver-world-record-holder-free-diving-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/09/29/arnaud-jerald-deep-sea-diver-world-record-holder-free-diving-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/09/29/arnaud-jerald-deep-sea-diver-world-record-holder-free-diving-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_F785891F-49BB-DAF7-ACB8-D9E6E4367CBB”},{“descriptionPlainText”:”Matthias Dandois had always dreamed of becoming a pro soccer player, but fate had other plans. After realizing that he “sucked at it,” Dandois turned to flatland biking instead and found his true calling.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200916121906-matthias-dandois-tease-image-large-169.jpg”,”title”:”Matthias Dandois: The world champion BMX rider and photographer”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/16/matthias-dandois-bmx-world-champion-flatland-biking-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/16/matthias-dandois-bmx-world-champion-flatland-biking-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/09/16/matthias-dandois-bmx-world-champion-flatland-biking-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/09/16/matthias-dandois-bmx-world-champion-flatland-biking-spt-intl-lon-orig-cmd.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_F50C8B5C-17A5-22EC-DF10-969CCA4D0A58″},{“descriptionPlainText”:”Spanish triathlete Diego Mentrida showed the ultimate sportsmanship over the weekend when he gave up a podium finish to his competitor, who went the wrong way on the course mistakenly.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200921145840-02-diego-mentrida-grab-large-169.jpg”,”title”:”Diego Mentrida: The act of sportsmanship that made Will Smith cry”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/21/diego-mentrida-sportsmanship-spanish-triathlete-santander-triathlon-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/21/diego-mentrida-sportsmanship-spanish-triathlete-santander-triathlon-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/09/21/diego-mentrida-sportsmanship-spanish-triathlete-santander-triathlon-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/09/21/diego-mentrida-sportsmanship-spanish-triathlete-santander-triathlon-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_9E2AABA4-DCDA-CFA0-3CD0-B0EAA6277AB6″},{“descriptionPlainText”:”2020 US Open champion Naomi Osaka talks about her push for further awareness of the names of victims she wore on her masks, the journey to the title and using her voice moving forward.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200913090421-naomi-osaka-tamir-rice-large-169.jpg”,”title”:”Naomi Osaka on raising awareness for racial injustice with her masks”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/14/naomi-osaka-us-open-2020-champion-masks-racial-injustice-tennis-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/14/naomi-osaka-us-open-2020-champion-masks-racial-injustice-tennis-spt-intl.cnn”,”videoId”:”sports/2020/09/14/naomi-osaka-us-open-2020-champion-masks-racial-injustice-tennis-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/09/14/naomi-osaka-us-open-2020-champion-masks-racial-injustice-tennis-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_614FC42B-3DD4-41E3-88A5-8BEEBF8917DF”},{“descriptionPlainText”:”Yashasvi Jaiswal grew up in a rural village in India dreaming of becoming a cricket star. Now, the 18-year old batsman is set to make his debut for the Rajasthan Royals in the Indian Premier League.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200917155204-yashasvi-jaiswal-large-169.jpg”,”title”:”Yashasvi Jaiswal, the Indian ex-street vendor set to make IPL debut”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/17/yashasvi-jaiswal-rajasthan-royals-indian-premier-league-cricket-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/17/yashasvi-jaiswal-rajasthan-royals-indian-premier-league-cricket-spt-intl.cnn”,”videoId”:”sports/2020/09/17/yashasvi-jaiswal-rajasthan-royals-indian-premier-league-cricket-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/09/17/yashasvi-jaiswal-rajasthan-royals-indian-premier-league-cricket-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_C0DA99CD-637A-5544-9418-9C8AFB6B504D”},{“descriptionPlainText”:”Four-year-old Rocco hits his very first hole-in-one on a par 3 golf course in West Virginia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200824122927-rocco-hole-in-one-large-169.jpg”,”title”:”See four-year-old hit a hole-in-one”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/25/four-year-old-hole-in-one-orig-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/25/four-year-old-hole-in-one-orig-spt-intl.cnn”,”videoId”:”sports/2020/08/25/four-year-old-hole-in-one-orig-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/08/25/four-year-old-hole-in-one-orig-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_8F56EC0B-977B-8633-C32B-256F1DA9F7CC”},{“descriptionPlainText”:”Magnus Carlsen will take on the legendary Garry Kasparov in the Champions Showdown chess tournament in the US. The two world champions, widely considered the best players of all time, have a fascinating history of their own.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200911112727-kasparov-carlsen-tease-large-169.jpg”,”title”:”Magnus Carlsen aims for ‘redemption’ against Garry Kasparov”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/11/magnus-carlsen-redemption-garry-kasparov-rivalry-chess-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/11/magnus-carlsen-redemption-garry-kasparov-rivalry-chess-spt-intl.cnn”,”videoId”:”sports/2020/09/11/magnus-carlsen-redemption-garry-kasparov-rivalry-chess-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/09/11/magnus-carlsen-redemption-garry-kasparov-rivalry-chess-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_338CB3DB-D756-D5F9-EDFD-7CAD4BD2CCBC”},{“descriptionPlainText”:”Andri Ragettli is taking social media by storm. The 22-year-old Swiss has over 7 million views on his YouTube videos, catching the attention of many including football giants Real Madrid.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200831092144-01-andri-ragettli-ski-x-games-viral-spt-intl-large-169.jpg”,”title”:”Andri Ragettli: Pro skiing champion lives double life as social media star”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/19/andri-ragettli-pro-skier-social-media-sensation-world-cup-x-games-ski-switzerland-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/19/andri-ragettli-pro-skier-social-media-sensation-world-cup-x-games-ski-switzerland-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/08/19/andri-ragettli-pro-skier-social-media-sensation-world-cup-x-games-ski-switzerland-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/08/19/andri-ragettli-pro-skier-social-media-sensation-world-cup-x-games-ski-switzerland-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_20F4EB82-5393-8F5D-F085-07373F11AC2D”},{“descriptionPlainText”:”A Russian footballer who was hit by a lightning bolt while on the football pitch has recovered. FC Znamya Truda goalkeeper Ivan Zaborovsky was training when lightning struck him on July 4.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200722140743-ivan-zaborovsky-lightning-strike-tease-large-169.jpg”,”title”:”Russian footballer hit by lightning is back in training”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/07/22/ivan-zaborovsky-lightning-strike-recovery-znamya-truda-russia-football-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/07/22/ivan-zaborovsky-lightning-strike-recovery-znamya-truda-russia-football-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/07/22/ivan-zaborovsky-lightning-strike-recovery-znamya-truda-russia-football-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/07/22/ivan-zaborovsky-lightning-strike-recovery-znamya-truda-russia-football-spt-intl-lon-orig.cnn/video/playlists/international-sport-playlist-general-videos/”,”surrogateKey”:”video_6541E424-52D1-0B11-2F01-75F0B0B924EC”}],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:”sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.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-29ad61n’,videoDescriptionDivId: ‘js-video_description-29ad61n’,videoDurationDivId: ‘js-video_duration-29ad61n’,videoTitleDivId: ‘js-leaf-video_headline-29ad61n’,videoSourceDivId: ‘js-video_sourceName-29ad61n’});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 link

LEAVE A REPLY