Introducing a crypto-digest with RT’s Miguel Francis-Santiago — RT Business News

‘),
link: “https://www.rt.com/business/418290-cryptolium-introducing-crypto-digest-with/”
},
events: {
onReady: function () {
if(ga) {
ga(‘send’, ‘event’, ‘JWPLAYER-GA’, ‘CLICK PLAY’, location.href);
ga(‘send’, ‘event’, ‘JW Player Article’, ‘Ready’, location.href); // Временно эти дублирующие счетчики остаются
}
},
onPlay: function () {
myStreamingTag.playVideoContentPart(metadata);
if(ga) {
ga(‘send’, ‘event’, ‘JWPLAYER-GA’, ‘CLICK PAUSE’, location.href);
ga(‘send’, ‘event’, ‘JW Player Article’, ‘Play’, location.href);
}

var playingVideoId = ‘js-mediaplayer-5a7d5a45dda4c880708b4595’; // id текущего плеера
pauseMedia(playingVideoId); //запускаем функцию остановки всех играющих плееров кроме этого Код функции ниже по коду
},
onPause: function () {
myStreamingTag.stop();
},
onComplete: function () {
myStreamingTag.stop();
if(ga) {
ga(‘send’, ‘event’, ‘JWPLAYER-GA’, ‘COMPLETE’, location.href);
ga(‘send’, ‘event’, ‘JW Player Article’, ‘Complete’, location.href);
}
}
}
});

jwplayer(“js-mediaplayer-5a7d5a45dda4c880708b4595”).addButton(
“https://www.rt.com/static/libs/jwplayer/img/download.png”,
“Download”,
function () {
window.location.href = “https://cdnv.rt.com/files/2018.02/5a7d5a45dda4c880708b4595.mp4?download=1”;
},
“download”
);

function pauseMedia(playingMediaId) {
var players = document.querySelectorAll(‘.jwplayer, object’);

for (var i = 0, max = players.length; i



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *