‘Cancer will evolve but can be defeated in its current form’ – head of Gamaleya research institute
'),
link: "https://www.rt.com/shows/rt-interview/609851-gamaleya-institute-cancer-vaccine/"
},
events: {
onReady: function () {
if(ga && mediaMute === false) {
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) {
if (mediaMute === false) {
ga('send', 'event', 'JWPLAYER-GA', 'CLICK PLAY', location.href);
ga('send', 'event', 'JW Player Article', 'Play', location.href);
}
}
var playingVideoId = 'js-mediaplayer-676ab43385f54044df582c90'; // id текущего плеера
pauseMedia(playingVideoId); //запускаем функцию остановки всех играющих плееров кроме этого Код функции ниже по коду
if (recomedationBlock676ab43385f54044df582c90) {
recomedationBlock676ab43385f54044df582c90.classList.remove('recomendation_active');
}
if (mediaplayerContainer676ab43385f54044df582c90) {
mediaplayerContainer676ab43385f54044df582c90.classList.add('mediaplayer_played');
}
localStorage.setItem('canfixed', true);
},
onPause: function () {
myStreamingTag.stop();
if (mediaMute === false) {
if (ga) ga('send', 'event', 'JWPLAYER-GA', 'CLICK PAUSE', location.href);
}
if (recomedationBlock676ab43385f54044df582c90) {
recomedationBlock676ab43385f54044df582c90.classList.add('recomendation_active');
}
},
onComplete: function () {
myStreamingTag.stop();
if (ga && mediaMute === false) {
ga('send', 'event', 'JWPLAYER-GA', 'COMPLETE', location.href);
ga('send', 'event', 'JW Player Article', 'Complete', location.href);
}
if (recomedationBlock676ab43385f54044df582c90) {
recomedationBlock676ab43385f54044df582c90.classList.add('recomendation_active');
}
}
}
});
jwplayer("js-mediaplayer-676ab43385f54044df582c90").addButton(
"https://www.rt.com/static/libs/jwplayer/img/download.png",
"Download",
function () {
window.location.href = "https://mf.b37mrtl.ru/files/2024.12/676ab43385f54044df582c90.mp4?download=1";
},
"download"
);
function pauseMedia(playingMediaId) {
var players = document.querySelectorAll('.jwplayer, object');
var fixPlayer = document.querySelector('.mediaplayer_fixed');
let shadowDiv = document.querySelector('.div_shadow');
var plId = playingMediaId.split('-')[2];
for (var i = 0, max = players.length; i < max; i++) {
var currentMediaId = players[i].id;
if(currentMediaId !== playingMediaId){
jwplayer(players[i]).play(false);
players[i].parentElement.classList.remove('mediaplayer_played');
if(fixPlayer && shadowDiv){
if(fixPlayer.id !== 'mediaplayer-container' + plId){
if (shadowDiv.parentElement) {
shadowDiv.parentElement.removeChild(shadowDiv);
}
fixPlayer.classList.remove('mediaplayer_fixed');
}
}
}
}
}