IAEA mission arrived at Zaporozhye NPP

IAEA mission arrived at Zaporozhye NPP

jwplayer("js-mediaplayer-631098044236041c952dd2a6").setup({ // primary: "html5", advertising: { client: "vast", schedule: { preroll: { offset: 'pre', tag: 'https://ads.adfox.ru/258144/getCode?pp=kmk&ps=doud&p2=fzqt' } } }, file: "https://cdnv.russiatoday.com/media/vids/2022.09/631098044236041c952dd2a6.mp4", image: "https://cdni.russiatoday.com/media/pics/2022.09/article/631097f742360476dc452eb7.png", title: "", aspectratio: "16:9", skin: { name: "five", active: "#77bd1e", background: "rgba(0, 0, 0, 0.5)", inactive: "#FFFFFF"

}, width: "100%", startparam: "start",

sharing: {},

events: { onPlay: function(){ if(ga) ga('send', 'event', 'JWPLAYER-GA', 'CLICK PLAY', location.href); myStreamingTag.playVideoContentPart(metadata); var playingVideoId = 'js-mediaplayer-631098044236041c952dd2a6'; // id текущего плеера pauseMedia(playingVideoId); //запускаем функцию остановки всех играющих плееров кроме этого Кол }, onPause: function(){ if(ga) ga('send', 'event', 'JWPLAYER-GA', 'CLICK PAUSE', location.href); myStreamingTag.stop(); }, onComplete: function(){ if(ga) ga('send', 'event', 'JWPLAYER-GA', 'COMPLETE', location.href); myStreamingTag.stop(); } } });

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

for (var i = 0, max = players.length; i < max; i++) { var currentMediaId = players[i].id; if( jwplayer(players[i]).getState() == "PLAYING" || jwplayer(players[i]).getState() == "BUFFERING" ) { if(currentMediaId != playingMediaId){ jwplayer(players[i]).play(false); //or jwplayer(this).stop(); } } } };

Related Stories

Leave a Reply