Publicado:
';$container.append(template);};//COPIA AL PORTAPAPELES LIBconst copiaAlportapapeles = function(str) {const el = document.createElement('textarea');el.value = str;el.setAttribute('readonly','');el.style.position ='absolute';el.style.left = '-99999px';document.body.appendChild(el);el.select();document.execCommand('copy');document.body.removeChild(el);}// ================================================================// CUSTOM RIGHT CLICK - LIBvar initCustomRightClick = function() {var $contextMenu;var contextMenuInterval = false;var disableContextMenu = function() {document.addEventListener('contextmenu', function (e) {e.preventDefault();}, false);createContextMenu();}var createContextMenu = function() {$('body').append('' + abouttext + '');$contextMenu = $('.player-context-menu');}var rightClickListener = function() {$(document).on('contextmenu', function(event) {var cursorY = event.clientY;var cursorX = event.clientX;var windowWidth = window.innerWidth;var contextMenuWidth = $contextMenu.outerWidth();if ((contextMenuWidth + cursorX) >= windowWidth) {$contextMenu.css({ top: cursorY, left: (cursorX - contextMenuWidth) });} else {$contextMenu.css({ top: cursorY, left: cursorX });}$contextMenu.removeClass('is-hidden');if (contextMenuInterval !== false) clearInterval(contextMenuInterval);contextMenuInterval = setTimeout(function() {$contextMenu.addClass('is-hidden');}, 2500);});}disableContextMenu();//rightClickListener();}// FIN CUSTOM RIGHT CLICK//GET BROWSER LIBvar isEdge = false;isEdge = navigator.appName == 'Microsoft Internet Explorer' || (navigator.appName == "Netscape" && navigator.appVersion.indexOf('Edge') > -1) || (navigator.appName == "Netscape" && navigator.appVersion.indexOf('Trident') > -1);var ua = navigator.userAgent.toLowerCase();var isChrome = false;var isSafari = false;var isFirefox = false;if (ua.indexOf('safari') != -1) {if (ua.indexOf('chrome') > -1){isChrome=true;} else {isSafari=true;}}var isFirefox = typeof InstallTrigger !== 'undefined';//GET BROWSER//DE BAJA/*function playPromise(){var promise = player.play();console.log(promise);if (promise !== undefined) {promise.then(function() {console.log("canplay");}).catch(function(error) {console.log("please press start");});}}*///DE BAJA// INIT PLAYERvar player = videojs('rudo-video-20240830140507', VideoJs._settings._options);// SET TRANSMISION LIVE LIBS - APIif(VideoJs._settings.streamType=='live'){player.nuevo({relatedMenu: false,shareMenu: false,errordisplay: false});}// SET TRANSMISION VOD LIBS - APIif(VideoJs._settings.streamType=='vod'){player.vttThumbnails({src:VideoJs._settings.thumbnailsURL});player.nuevo(VideoJs._settings._sharing);}player.src({src:VideoJs._settings.streamURL,type:VideoJs._settings.typeStreamURL});try {player.ima(VideoJs._settings._publicidad);}catch(e){console.error("Error ima: "+e);};player.on('ready', function(){try {player.volume(VideoJs._settings.streamVolume);}catch(e) {console.error("Error Volumen: "+e);}});try {player.on("adsready", function(){player.ima.addEventListener(google.ima.AdEvent.Type.AD_BUFFERING, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.SKIPPED, function(){console.log("SKIPPED");});player.ima.addEventListener(google.ima.AdEvent.Type.AD_PROGRESS, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.COMPLETE, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED, function(){});player.ima.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, function(){//MODO LIVE STREAMING$(".vjs-loading-spinner").removeClass("vjs-block");if((isEdge)&&(streamType=='live')){player.src({src: streamURL,type: typeStreamURL});}if(player.muted()===false){player.volume(0.7);}});});}catch(e) { console.error("Error adsready: "+e);}try {player.on('firstplay', function(e){/*console.log("Player-"+player.id_+"- Firstplay");console.log(e);*/});player.on("ads-ad-started", function(e){/*console.log("Player-"+player.id_+"- Ads-ad-started");console.log(e);*/});player.on("contentresumed", function(e){/*console.log("Player-"+player.id_+"- contentresumed");console.log(e);*/});player.on("nopreroll", function(e){/*console.log("Player-"+player.id_+"- nopreroll");console.log(e);*/});player.on("adscanceled", function(e){/*console.log("Player-"+player.id_+"- adscanceled");console.log(e);*/});player.on('volumechange', function(){});player.on('adend', function(e){/*console.log("Player-"+player.id_+"- Ads-Ended");console.log(e);*/});player.on('adskip', function(e){/*console.log("Player-"+player.id_+"- Adskip");console.log(e);*/});let contador_play = 0;player.on('play', function(){//SHARINGif(contador_play < 1){addEmbedIcon();contador_play++;}let _boton_embed = document.getElementById('embed-button-20240830140507');_boton_embed.onclick = function(){let _embed_code = setEmbedCode();copiaAlportapapeles(_embed_code);};//SHARING});player.on('ended', function() {// //var frameYoutube = '
'; document.getElementById("rudo-video-20240830140507").innerHTML = frameYoutube; //////FIN VIDEOS DESDE YOUTUBE });}catch(e) { console.error("VIDEOJS - COOPERATIVA - Error:"+e);}player.on('timeupdate', function(){});var contentPlayer = document.getElementById('rudo-video_html5_api');if ((navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) && contentPlayer.hasAttribute('controls')) {contentPlayer.removeAttribute('controls');}var startEvent = 'click';if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) {startEvent = 'touchend';}// if(streamAutoplay==0){// player.one(startEvent, function() {// player.ima.initializeAdDisplayContainer();// player.el_.removeEventListener(// startEvent()// );// });// }window.addEventListener('message', function(event) {if (~event.origin.indexOf('')) {var msg = event.data;if (msg == "start") {startPlayer();}if (msg == "stop") {stopPlayer();}if (msg == "mute") {mutePlayer();}if (msg == "unmute") {unMutePlayer();}} else {return;}});function stopPlayer() {player.pause();}function startPlayer() {player.play();}function mutePlayer() {player.muted(true);}function unMutePlayer() {player.muted(false);}//==== TRACK EVENTOS ANALÍTICOS =======================================//ComScore - 18062020let _comscorePlugin = false;(player.ComScore) ? _comscorePlugin = player.ComScore({"publisherId": "7290944"}) : null;let contentMetadata = {'ns_st_ci':'20240830140507','ns_st_pu':'Radio Cooperativa','ns_st_pr':'[Video] Cooperativa Deportes: La antesala de la fecha 23 del Campeonato Nacional - Cooperativa.cl','ns_st_st':'cooperativa.cl','ns_st_ge':'Deportes','ns_st_ep':'*null','ns_st_ia':'*null','ns_st_ce':'*null','ns_st_ddt':'*null','ns_st_tdt':'*null','c3':'cooperativa.cl','c4':'*null','c6':'*null'};for (var labelName in contentMetadata) {if (contentMetadata.hasOwnProperty(labelName)) {//HTML5 video element used for VideoJS.player.el_.dataset[labelName] = contentMetadata[labelName];};};//- ComScore - 18062020//GA Set Variables para Datalayer let _titular = '[Video] Cooperativa Deportes: La antesala de la fecha 23 del Campeonato Nacional - Cooperativa.cl';_titular = _titular.replace(/"/gi,'"');let _art_page = "/noticias/deportes/cooperativa-deportes/opinion/cooperativa-deportes-la-antesala-de-la-fecha-23-del-campeonato-nacional/2024-08-30/140507.html";//let _seccion = EventosPlayer.categoriaContenido('1');let _seccion = "Deportes";let _ga_data = new Array; _evento_play = 'PLAY-YT'; _evento_complete = 'COMPLETE-YT'; _ga_data['_ga_category'] = 'Youtube';_ga_data['_ga_evento_play'] = 'PLAY'; _ga_data['_ga_evento_complete'] = 'COMPLETE'; let contador = 0;// Fin Set Variablesplayer.on('play', function(){if(contador == 0){dataLayer.push({'event':'COOP-20190121-video','accion':_evento_play,'pageTitle':_titular,'pagePath':_art_page,'art_categoria':_seccion,'_ga_category': _ga_data['_ga_category'],'_ga_evento': _ga_data['_ga_evento_play']});contador ++ }});player.on('ended', function(){dataLayer.push({'event':'COOP-20190121-video','accion':_evento_complete,'pageTitle':_titular,'pagePath':_art_page,'art_categoria':_seccion,'_ga_category': _ga_data['_ga_category'],'_ga_evento': _ga_data['_ga_evento_complete']});});//==== FIN TRACK EVENTOS ANALÍTICOS=======================================
Llévatelo:
Videos Destacados
Videos Recientes
Videos + Vistos
En la edición de este viernes 30 de agosto, el panel de Cooperativa Deportes hace la antesala del inicio de la fecha 23 del Campeonato Nacional.
LEER ARTICULO COMPLETO
Las + leídas
Suscríbete a nuestro newsletter
Relacionados