#हिन्दी_ख़बर_स्पेशल: 'राम-राम, #जय_सीताराम' #LIVE

var embedId = {jw:[],yt:[],dm:[]};function pauseVideos(vid){var players=Object.keys(embedId); players.forEach(function (key){var ids=embedId[key]; switch (key){case "jw": ids.forEach(function (id){if (id !=vid){var player = jwplayer(id); if(player.getState() === "playing"){player.pause();}}}); break; case "yt": ids.forEach(function (id){if (id !=vid){id.pauseVideo();}}); break;case "dm": ids.forEach(function (id){if (id !=vid && !id.paused){id.pause();}}); break;}});}var YTevent;function autoPlayYtVideo(player) {if(typeof NHCommand != "undefined" && NHCommand.isAutoPlayAllowed && NHCommand.isAutoPlayAllowed()){player.playVideo();ytVideoAutoPlayed = true;}}var ytOnLoadFn=[];function onYouTubePlayerAPIReady(){ytOnLoadFn.forEach(function(name){window[name]();});}function onYTEmbedLoad(ytp){embedId.yt.push(ytp);ytp.addEventListener("onStateChange", function(event){if(event.data === YT.PlayerState.PLAYING)pauseVideos(ytp);});}function pause(){pauseVideos()}var p; function yt(){p = new YT.Player("div_", {height: document.getElementById("div_").offsetWidth * (9/16),width: document.getElementById("div_").offsetWidth,videoId: "",events: {'onReady': onPlayerReady}, playerVars:{'playsinline': 1,'modestbranding':1,'fs':0,'autoplay':1,'loop':1,'mute':1}});onYTEmbedLoad(p)}ytOnLoadFn.push("yt");function onPlayerReady(event) {if(typeof NHCommand != 'undefined' && NHCommand.isAutoPlayAllowed && NHCommand.isAutoPlayAllowed() && !window.ytVideoAutoPlayed){ event.target.playVideo(); window.ytVideoAutoPlayed = true; }}

अन्य समाचार