Embedding Windows Media Player for Shoutcast and Icecast
How to Embed Windows Media Player for SHOUTcast and Icecast Streaming
Are you looking to embed Windows Media Player on your website to stream audio from your SHOUTcast or Icecast server? This guide walks you through the process step-by-step, offers troubleshooting tips, and suggests modern alternatives to ensure your listeners enjoy seamless streaming across devices.
What You Need to Embed Windows Media Player
- A SHOUTcast or Icecast streaming server with a working stream URL
- Basic knowledge of HTML to embed code on your website
- Windows Media Player installed (for testing)
- A website or page where you want to embed the player
Step-by-Step Guide to Embedding Windows Media Player
- Get Your Stream URL:
Find your SHOUTcast or Icecast stream URL. It typically looks like this:http://yourserver.com:8000/stream
orhttp://yourserver.com:8000/mountpoint
- Create the Embed Code:
Use the following HTML code snippet, replacingSTREAM_URL
with your actual stream URL:<object id="MediaPlayer" width="300" height="70" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <param name="URL" value="STREAM_URL"> <param name="AutoStart" value="true"> <param name="uiMode" value="mini"> <embed type="application/x-mplayer2" src="STREAM_URL" width="300" height="70" autostart="1" uiMode="mini"></embed> </object>
- Paste the Code:
Insert this embed code into the HTML editor of your webpage or use a Custom HTML block in WordPress. - Test the Player:
Open your webpage in different browsers to confirm the player loads and streams audio correctly.
Troubleshooting Common Issues
- Player Not Showing: Ensure your browser supports ActiveX controls or the embed tag; note that modern browsers may restrict these features.
- Stream Not Playing: Verify the stream URL is correct and accessible publicly.
- No Sound: Check your server’s stream is active and broadcasting audio.
- Compatibility: Windows Media Player embedding is not supported on all devices, especially mobile. Consider alternatives for wider reach.
Modern Alternatives to Windows Media Player for Streaming
Due to limitations with Windows Media Player support on mobile devices and modern browsers, here are better options you can use:
- HTML5 Audio Player: Use native HTML5 <audio> tags for cross-platform compatibility.
- JW Player or Video.js: Popular third-party media players supporting advanced streaming protocols.
- ShoutCheap Embedded Player: Our custom player optimized for SHOUTcast and Icecast streams, supporting mobile devices and modern browsers.
Embedding a Simple HTML5 Audio Player
Example code:
<audio controls autoplay>
<source src="STREAM_URL" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Replace STREAM_URL
with your actual stream URL.
Frequently Asked Questions
While Windows Media Player works on some desktop browsers, it lacks support on mobile devices and many modern browsers, so alternatives are recommended.
Yes, both SHOUTcast and Icecast streams can be embedded using the same HTML5 or third-party players, as long as the stream URL is correct.
Using an HTML5 audio player or a modern third-party player is the best way to ensure your stream plays on desktop and mobile devices.
Check your SHOUTcast or Icecast server dashboard or ask your hosting provider for the direct stream URL, typically ending with .mp3 or a mount point.
Ready to Start Streaming?
Explore our SHOUTcast hosting plans and get your internet radio station online quickly and reliably!