if (window.innerWidth < 481) { $('#' + currId + ' .jw-title-primary').text('Mira el video'); if ($("#"+ currId + " .videoCustomFooter").length > 0) { $($("#"+ currId + " .videoCustomFooter")).text(currTitle); } else { $($("#" + currId)[0].parentElement).append("
“);}} var currDuration = $ (‘#’ + currId + ‘.jw-text-countdown’)[0].textContent; $ (‘#’ + currId + ‘.jw-title-secondary p’). text (currDuration); }} if ($ (“#embeb_WpvNVXyL”). children (). length> 0) {setTitle (“embeb_WpvNVXyL”); } else {jwplayer (“embeb_WpvNVXyL”). on (‘ready’, function (event) {setTitle (“embeb_WpvNVXyL”);}); } jwplayer (“embeb_WpvNVXyL”). on (‘pause’, function (event) {var passId = “embeb_WpvNVXyL”; var site = “clarin”; if (site == ‘clarin’) {if ($ (‘#customTitleFor ‘ + passId) .length == 0) {var title = jwplayer (“embeb_WpvNVXyL”). getPlaylist ()[0].title; // $ ($ (“#” + passId + “.genoaPlayerV3 .vjs-overlay.vjs-overlay-top.vjs-overlay-background”)). addClass (‘disabled’); $ (“#” + passId) .append (“
” + title +”
“); $ (“#customTitleFor ” + passId) .attr (‘style’, ‘display: block’); $ (“#” + passId +” .jw-media “). addClass (‘degraded’);} else {var curTitle = $ (“#customTitleFor” + passId)[0].textContent; var newTitle = jwplayer (“embeb_WpvNVXyL”). getPlaylist ()[0].title; if (newTitle! = curTitle) {$ (“#customTitleFor” + passId) .text (newTitle); } $ (“#customTitleFor” + passId) .attr (‘style’, ‘display: block’); $ (“#” + passId + “.jw-media”). addClass (‘degraded’); } // $ (“#” + passId + “.jw-controlbar”). addClass (‘disabled’); $ (“#” + passId + “.jw-svg-icon-play”). css (“display”, “block”); $ (“#” + passId + “.jw-svg-icon-pause”). css (“display”, “none”); } else {$ (“#” + passId + “.jw-media”). addClass (‘degraded’); $ (“#” + passId + “.jw-title”). css (‘display’, ‘block’); $ (“#” + passId + “.jw-controlbar”). css (‘display’, ‘none’); $ (“#” + passId + “.jw-display”). css (‘display’, ‘flex’); $ (“#” + passId + “.jw-display-icon-rewind”). css (‘display’, ‘none’); $ (“#” + passId + “.jw-display-icon-next”). css (‘display’, ‘none’); } sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘pause’); }); jwplayer (“embeb_WpvNVXyL”). on (‘play’, function (event) {var passId = “embeb_WpvNVXyL”; var site = “clarin”; if (site == ‘clarin’) {if ($ (‘#customTitleFor’ + passId) .length! = 0) {$ (“#customTitleFor” + passId) .attr (‘style’, ‘display: none’); $ (“#” + passId + “.jw-media”). removeClass (‘degraded’);} // $ (“#” + passId + “.jw-controlbar”). removeClass (‘disabled’); $ (“#” + passId + “.jw-svg-icon-play” ) .css (“display”, “none”); $ (“#” + passId + “.jw-svg-icon-pause”). css (“display”, “block”);} else {$ (” #” + passId +” .jw-media “). removeClass (‘degraded’); $ (“#” + passId +” .jw-title “). css (‘display’, ‘none’); $ (” #” + passId +” .jw-controlbar “). css (‘display’, ‘block’); $ (“#” + passId +” .jw-display “). css (‘display’, ‘flex’) ; $ (“#” + passId + “.jw-display-icon-rewind”). css (‘display’, ‘none’); $ (“#” + passId + “.jw-display-icon-next” ) .css (‘display’, ‘none’);} sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘resume’);}); jwplayer (“embeb_WpvNVXyL”). on (‘firstFrame’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘start’);}); jwplayer (“embeb_WpvNVXyL”). on (‘complete’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘complete’);}); jwplayer (“embeb_WpvNVXyL”). on (‘adStarted’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘adstart’);}); jwplayer (“embeb_WpvNVXyL”). on (‘adPlay’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘adplay’);}); jwplayer (“embeb_WpvNVXyL”). on (‘adPause’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘adpause’);}); jwplayer (“embeb_WpvNVXyL”). on (‘adComplete’, function (event) {sendData (jwplayer (“embeb_WpvNVXyL”). getPlaylist (), ‘adcomplete’);});
Source: Clarin