I saved Russia from the abyss, I protected its sovereignty from the West – best moments from Direct Line with Vladimir Putin
'),
link: "https://www.rt.com/shows/rt-interview/609668-putin-direct-line-best-moments/"
},
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-67651d0e85f5401f77369387'; // id текущего плеера
pauseMedia(playingVideoId); //запускаем функцию остановки всех играющих плееров кроме этого Код функции ниже по коду
if (recomedationBlock67651d0e85f5401f77369387) {
recomedationBlock67651d0e85f5401f77369387.classList.remove('recomendation_active');
}
if (mediaplayerContainer67651d0e85f5401f77369387) {
mediaplayerContainer67651d0e85f5401f77369387.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 (recomedationBlock67651d0e85f5401f77369387) {
recomedationBlock67651d0e85f5401f77369387.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 (recomedationBlock67651d0e85f5401f77369387) {
recomedationBlock67651d0e85f5401f77369387.classList.add('recomendation_active');
}
}
}
});
jwplayer("js-mediaplayer-67651d0e85f5401f77369387").addButton(
"https://www.rt.com/static/libs/jwplayer/img/download.png",
"Download",
function () {
window.location.href = "https://mf.b37mrtl.ru/files/2024.12/67651d0e85f5401f77369387.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');
}
}
}
}
}