Please Wait For Few Seconds To Play The TV ! link 1Link 2Link 3link 4link 5 Click to Unmute Stream // Block pop-ups, redirects, and new tab openings in the iframe function blockIframePopups() { var iframe = document.getElementById('cricketIframe'); // Check if iframe content is loaded if (iframe.contentWindow) { var iframeDocument = iframe.contentWindow.document; // Block links that attempt to open in new tabs (e.g., ads) var links = iframeDocument.getElementsByTagName('a'); for (var i = 0; i < links.length; i++) { links[i].addEventListener('click', function(event) { event.preventDefault(); // Prevent opening a new tab for links (ads) console.log("Redirect blocked!"); }); } // Block any pop-ups from the iframe iframe.contentWindow.open = function() { console.log("Popup blocked!"); }; // Block any form submission or window location changes iframe.contentWindow.location = function() { console.log("Location change blocked!"); }; // Disable navigation (if not controlled by the iframe content) iframe.contentWindow.onbeforeunload = function(event) { event.preventDefault(); // Block navigation from the iframe console.log("Navigation blocked inside the iframe!"); }; } } // Listen for pop-up and redirect blocking when the iframe is loaded window.addEventListener('load', function() { blockIframePopups(); }); // Handle Unmute Button Click document.getElementById('unmuteBtn').addEventListener('click', function() { var iframe = document.getElementById('cricketIframe'); // Show overlay while the iframe is being interacted with document.getElementById('iframe-overlay').style.display = 'block'; // Send message to iframe to simulate clicking the unmute button if (iframe && iframe.contentWindow) { // Send the message to the iframe to trigger unmute action (this will work if iframe supports postMessage) iframe.contentWindow.postMessage('unmute', '*'); } // Wait for a response from iframe to verify unmute action var unmuteSuccess = false; var timeoutDuration = 5000; // 5 seconds timeout // Listen for a response from the iframe about the unmute action window.addEventListener('message', function(event) { if (event.origin === "https://streamcrichd.com") { if (event.data === 'unmuted') { unmuteSuccess = true; document.getElementById('iframe-overlay').style.display = 'none'; // Hide overlay after successful unmute alert("Stream unmuted successfully! You can now interact with the video."); } } }); // Timeout to prevent hanging if iframe doesn't respond within a certain time setTimeout(function() { if (!unmuteSuccess) { document.getElementById('iframe-overlay').style.display = 'none'; alert("Failed to unmute the stream. Try clicking the button inside the video."); } }, timeoutDuration); }); Refresh Stream Alternate Stream