How to Create a Modern Pop-Up Player for SHOUTcast and Icecast in 2026
If you run an online radio station, you may want a small pop-up player that allows listeners to keep your stream playing while they browse your website.
Years ago, pop-up players relied on outdated embed methods and browser plugins. In 2026, the correct approach is much simpler and more reliable, using HTML5 audio, secure HTTPS streaming, and click-triggered pop-ups that work with modern browser policies.
If you are looking for a standard embedded player instead of a pop-up window, see our guide on the best HTML5 player for SHOUTcast and Icecast. That method is usually recommended for maximum compatibility.
When Does a Pop-Up Player Make Sense?
A pop-up player can be useful if you want:
- A dedicated mini player window
- Clean separation between your website and audio playback
- A simple “Listen Live” button that opens a lightweight player
However, keep in mind that mobile browsers may block pop-ups, and modern browsers restrict autoplay unless the listener interacts with the page. For many stations, an embedded player or floating player is often the better choice.
Requirements Before Creating Your Pop-Up Player
Before setting up your pop-up player, make sure you have:
- A working SHOUTcast or Icecast stream URL
- MP3 or AAC format enabled
- HTTPS streaming enabled to avoid browser warnings
- A reliable streaming server
If you do not yet have secure streaming enabled, read our explanation of SSL streaming and why it matters for internet radio. Modern browsers are increasingly strict with mixed content.
If you are still choosing a hosting provider, see our Internet Radio Hosting plans for SHOUTcast and Icecast with SSL streaming, AutoDJ, and global compatibility.
Step 1, Create a Dedicated Player Page
Create a new page on your site called Player (or create a file named player.html). This page will be the content shown inside the pop-up window. Keep it lightweight, mobile friendly, and focused only on playback.
Paste the following code into the Player page using a Custom HTML block, then replace the stream URL with your own.
Important: if you are using AAC, change type="audio/mpeg" to type="audio/aac" and confirm your server sends the correct MIME type. MP3 is usually the most universally compatible option.
Step 2, Add a Pop-Up Button to Your Website
Now add a button on your homepage, header, or listen page. The button click opens the Player page in a small pop-up window. Pop-ups generally only work reliably when opened by a direct click.
Paste the following code into a Custom HTML block where you want the button to appear. Replace the placeholder URL with the full link to your own Player page.
Autoplay Rules in 2026
Most modern browsers block autoplay with sound unless the user clicks a button or interacts with the page. That is why this guide uses a button click to open the player. If the audio does not start automatically, the listener can press play in the pop-up window.
Mobile Note
Many mobile browsers block pop-ups or open them in a new tab. If you want the best mobile experience, consider also adding an embedded player on a normal page as a fallback.
Troubleshooting
- Pop-up blocked: the listener must click the button, and they may need to allow pop-ups for your site.
- No audio: verify your stream URL works in a browser, and confirm your stream is online.
- HTTPS issues: if your site is HTTPS but your stream is HTTP, some browsers may warn or block playback.
- Wrong format: MP3 is usually easiest. AAC works well too, but confirm MIME types.
If you want a cleaner alternative, consider a normal embedded HTML5 player instead of pop-ups, especially for mobile listeners.
FAQ
Most browsers block autoplay with sound unless the user clicks a button or interacts with the page. That is why the player is opened by a click, and listeners may still need to press play inside the player window.
Pop-ups are often blocked unless they are opened by a direct user click. If it is still blocked, the listener may need to allow pop-ups for your website in their browser settings.
Some mobile browsers block pop-ups or open them in a new tab. For the best mobile experience, add an embedded player on a normal page as a fallback.
MP3 usually has the best compatibility across devices and browsers. AAC also works well, but your server must send the correct MIME type.
Sometimes it will, but some browsers may warn or block mixed content. For best results, use HTTPS streaming so your website and stream are both secure.