MotoGP's rock-and-roll nearly-man finally tops the bill

0
852



‘);$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/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.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/200908174101-poncharal-smile-motogp-gb-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”When Miguel Oliveira crossed the finish line at the 2020 Styrian Grand Prix in Austria, he became the first rider to win a race for Tech3 Racing. The moment fulfilled team co-founder and principal Hervé Poncharal’s teenage dream.​”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200908174101-poncharal-smile-motogp-gb-large-169.jpg”,”title”:”MotoGP’s rock-and-roll nearly-man finally tops the bill”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_C8925276-11B6-A140-9377-73189A20FCB5″},{“descriptionPlainText”:”Teenage karting champion Ella Stevens tells CNN Sport about her quest to reach the top of motorsport.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200814121104-ella-stevens-karting-f1-large-169.jpg”,”title”:”Ella Stevens: The 13-year-old aiming to become Ferrari’s first female Formula 1 driver”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/14/ella-stevens-karting-ferrari-women-f1-cmd-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/14/ella-stevens-karting-ferrari-women-f1-cmd-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/08/14/ella-stevens-karting-ferrari-women-f1-cmd-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/08/14/ella-stevens-karting-ferrari-women-f1-cmd-spt-intl-lon-orig.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_17222FD7-7E81-A008-FFEA-FE0C7BF57BB7″},{“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”:”/video/data/3.0/video/sports/2020/08/24/maverick-vinales-moto-gp-crash-austria-spt-intl-lon-orig.cnn/index.xml”,”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/video/playlists/the-circuit/”,”surrogateKey”:”video_5E0E1469-78FB-66B0-EA69-C4D16A2C2BF1″},{“descriptionPlainText”:”South Africa’s star Brad Binder had a front row seat for one of the most terrifying crashes motorsport has ever seen at this weekend’s Austrian MotoGP, which he discusses with Don Riddell.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200818091854-maverick-vinales-large-169.jpg”,”title”:”Brad Binder: MotoGP riders must keep risks ‘in the back of our minds'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/18/moto-gp-crash-brad-binder-valentino-rossi-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/18/moto-gp-crash-brad-binder-valentino-rossi-spt-intl.cnn”,”videoId”:”sports/2020/08/18/moto-gp-crash-brad-binder-valentino-rossi-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/08/18/moto-gp-crash-brad-binder-valentino-rossi-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_1188F227-A906-BAB2-3D37-B5EBB32AB0C8″},{“descriptionPlainText”:”Fresh off the back of a stunning victory in the 70th Anniversary Grand Prix at Silverstone, Red Bull driver Max Verstappen has said that while he appreciates being compared to F1 great Michael Schumacher, he is his own man.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200809102318-verstappen-celeb-large-169.jpg”,”title”:”F1 star Max Verstappen says he’s not the new Michael Schumacher”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/14/max-verstappen-formula-one-red-bull-grand-prix-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/14/max-verstappen-formula-one-red-bull-grand-prix-spt-intl.cnn”,”videoId”:”sports/2020/08/14/max-verstappen-formula-one-red-bull-grand-prix-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/08/14/max-verstappen-formula-one-red-bull-grand-prix-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_C8925276-11B6-A140-9377-73189A20FCB5″},{“descriptionPlainText”:”Six-time Formula One champion Lewis Hamilton will forever be remembered as one of the greatest drivers in F1 history, but his legacy off the track – fighting for racial equality – will arguably be remembered more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200701114626-lewis-hamilton-large-169.jpg”,”title”:”How Lewis Hamilton is carving his legacy off the F1 track”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/07/01/lewis-hamilton-legacy-off-the-track-equality-racism-formula-one-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/07/01/lewis-hamilton-legacy-off-the-track-equality-racism-formula-one-spt-intl.cnn”,”videoId”:”sports/2020/07/01/lewis-hamilton-legacy-off-the-track-equality-racism-formula-one-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/07/01/lewis-hamilton-legacy-off-the-track-equality-racism-formula-one-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_A6934810-F817-A774-EC04-EC7159EDAA64″},{“descriptionPlainText”:”Willy T. Ribbs is a pioneering figure in the world of motorsport. He became the first Black driver to test drive a Formula One car and race in the prestigious Indy 500 and NASCAR.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200630144310-willy-t-ribbs-profile-large-169.jpg”,”title”:”Willy T. Ribbs, motorsport’s Black pioneer”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/06/30/willy-t-ribbs-black-motorsport-pioneer-formula-one-nascar-indy500-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/06/30/willy-t-ribbs-black-motorsport-pioneer-formula-one-nascar-indy500-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/06/30/willy-t-ribbs-black-motorsport-pioneer-formula-one-nascar-indy500-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/06/30/willy-t-ribbs-black-motorsport-pioneer-formula-one-nascar-indy500-spt-intl-lon-orig-cmd.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_11755C4F-4465-75D6-7C0E-203F65B4D401″},{“descriptionPlainText”:”Bernie Ecclestone in his role as CEO transformed Formula 1 into a global, billion-dollar business with races across the world. Despite its progress off the track, on it, the sport has and continues to face questions over its lack of diversity.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200625155249-bernie-ecclestone-large-169.jpg”,”title”:”‘In a lot of cases, Black people are more racist than White people'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/06/26/bernie-ecclestone-racism-sport-society-lewis-hamilton-formula-one-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/06/26/bernie-ecclestone-racism-sport-society-lewis-hamilton-formula-one-spt-intl.cnn”,”videoId”:”sports/2020/06/26/bernie-ecclestone-racism-sport-society-lewis-hamilton-formula-one-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/06/26/bernie-ecclestone-racism-sport-society-lewis-hamilton-formula-one-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_3CFCADA7-FECA-8523-964E-00F7D7C13A0E”},{“descriptionPlainText”:”2016/17 Formula E world champion Lucas Di Grassi speaks to Christina Macfarlane about what he’s been up to in lockdown.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200605131240-di-grassi-tease-large-169.jpg”,”title”:”Time Out: Lucas di Grassi on lockdown in Brazil and Formula E in 2020″,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/06/17/lucas-di-grassi-time-out-workout-children-brazil-coronavirus-formula-e-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/06/17/lucas-di-grassi-time-out-workout-children-brazil-coronavirus-formula-e-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/06/17/lucas-di-grassi-time-out-workout-children-brazil-coronavirus-formula-e-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/06/17/lucas-di-grassi-time-out-workout-children-brazil-coronavirus-formula-e-spt-intl-lon-orig.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_36518997-2A53-936A-BA49-EC2C73A35228″},{“descriptionPlainText”:”Six-time MotoGP champion Marc Marquez talks to Christina Macfarlane about burning himself while cooking pizza and cutting his brother’s hair.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/190522120121-marquez-1-large-169.jpg”,”title”:”Time Out: Marc Marquez learns to cook pizza and snails in lockdown”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/05/07/marc-marquez-time-out-lockdown-fun-motogp-memories-cervera-spain-spt-intl-lon-orig-cmd.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/05/07/marc-marquez-time-out-lockdown-fun-motogp-memories-cervera-spain-spt-intl-lon-orig-cmd.cnn”,”videoId”:”sports/2020/05/07/marc-marquez-time-out-lockdown-fun-motogp-memories-cervera-spain-spt-intl-lon-orig-cmd.cnn”,”videoUrl”:”/videos/sports/2020/05/07/marc-marquez-time-out-lockdown-fun-motogp-memories-cervera-spain-spt-intl-lon-orig-cmd.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_0C6C8D3B-81A7-E9DE-849E-09FC82EB3D94″},{“descriptionPlainText”:”Scuderia Ferrari Formula One driver Charles Leclerc says he is surprised at how much he enjoys gaming and streaming for fans on Twitch, playing up to five hours a day.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191201132057-leclerc-cnn-large-169.jpg”,”title”:”Charles Leclerc enjoys streaming and gaming during lockdown”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/04/29/charles-leclerc-ferrari-formula-one-f1-gaming-keeping-busy-lockdown-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/04/29/charles-leclerc-ferrari-formula-one-f1-gaming-keeping-busy-lockdown-spt-intl.cnn”,”videoId”:”sports/2020/04/29/charles-leclerc-ferrari-formula-one-f1-gaming-keeping-busy-lockdown-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/04/29/charles-leclerc-ferrari-formula-one-f1-gaming-keeping-busy-lockdown-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_87FDD72E-9044-16C8-4A3C-05F62704DD33″},{“descriptionPlainText”:”Racing Point F1 CEO and Team Principal Otmar Szafnauer says Formula One should have raced in Australia and that he thinks the season will likely start in Austria.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200422190459-fixed-otmar-szafnauer-racing-point-large-169.jpg”,”title”:”Racing Point F1 CEO: F1 should have raced in Australia”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/04/23/otmar-szafnauer-racing-point-f1-ceo-formula-one-2020-season-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/04/23/otmar-szafnauer-racing-point-f1-ceo-formula-one-2020-season-spt-intl.cnn”,”videoId”:”sports/2020/04/23/otmar-szafnauer-racing-point-f1-ceo-formula-one-2020-season-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/04/23/otmar-szafnauer-racing-point-f1-ceo-formula-one-2020-season-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_4DD2D80E-54F0-E1DA-3EF1-EFD1B007A7CF”},{“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/the-circuit/”,”surrogateKey”:”video_023ECED0-DFAD-775B-CD08-C2F72959FE00″},{“descriptionPlainText”:”British racer Nicolas Hamilton, the half brother of six-time F1 champion Lewis Hamilton, talks about the challenges his brother faces as the only Black F1 driver.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200925092047-nicolas-hamilton-large-169.jpg”,”title”:”Nicolas Hamilton on brother Lewis’ impact on motorsport”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/25/nicolas-hamilton-lewis-mercedes-formula-one-f1-racial-justice-equality-motorsport-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/25/nicolas-hamilton-lewis-mercedes-formula-one-f1-racial-justice-equality-motorsport-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/09/25/nicolas-hamilton-lewis-mercedes-formula-one-f1-racial-justice-equality-motorsport-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/09/25/nicolas-hamilton-lewis-mercedes-formula-one-f1-racial-justice-equality-motorsport-spt-intl-lon-orig.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_037D4E90-28C1-8F29-7B00-EFB515EA7F49″},{“descriptionPlainText”:”The Le Mans 24hrs race made history with two all-female teams taking part in the iconic competition. The last time that happened was in 1977. Tatiana Calderon was part of the Richard Mille Racing Team alongside other recognizable names in the world of motorsport.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200922141657-tatiana-calderon-tease-large-169.jpg”,”title”:”Tatiana Calderon, the driver leading the way for an all-female team”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/09/22/tatiana-calderon-24-hours-le-mans-racing-colombia-richard-mille-motorsport-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/09/22/tatiana-calderon-24-hours-le-mans-racing-colombia-richard-mille-motorsport-spt-intl.cnn”,”videoId”:”sports/2020/09/22/tatiana-calderon-24-hours-le-mans-racing-colombia-richard-mille-motorsport-spt-intl.cnn”,”videoUrl”:”/videos/sports/2020/09/22/tatiana-calderon-24-hours-le-mans-racing-colombia-richard-mille-motorsport-spt-intl.cnn/video/playlists/the-circuit/”,”surrogateKey”:”video_44B42CE2-FBF7-ED32-19B8-C5222DAF3BA7″}],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/09/09/herve-poncharal-tech3-racing-motogp-miguel-oliveira-motorsport-spt-intl-lon-orig-cmd.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-1mro0ib’,videoDescriptionDivId: ‘js-video_description-1mro0ib’,videoDurationDivId: ‘js-video_duration-1mro0ib’,videoTitleDivId: ‘js-leaf-video_headline-1mro0ib’,videoSourceDivId: ‘js-video_sourceName-1mro0ib’});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