‘), link: “https://www.rt.com/news/418370-jews-feel-safer-iran/” }, 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-5a7d5266fc7e93f2138b463b’; // 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-5a7d5266fc7e93f2138b463b”).addButton( “https://www.rt.com/static/libs/jwplayer/img/download.png”, “Download”, function () { window.location.href = “https://cdnv.rt.com/files/2018.02/5a7d5266fc7e93f2138b463b.mp4?download=1”; }, “download” ); function pauseMedia(playingMediaId) { var players = document.querySelectorAll(‘.jwplayer, object’); for (var i = 0, max = players.length; i

You must be logged in to post a comment Login

Leave a Reply