1. Home
  2. Docs
  3. API Documentation
  4. Widgets / Players
  5. Live Stream Player

Live Stream Player

To use Caster.fm API embeddable live stream player simply paste the following code into your website at the location you desire the player to show.

<div data-type="streamPlayer" 
data-publicToken="ba4c226e-22d8-49f1-b262-89168aeaf2da" 
data-theme="dark" 
data-color="e83e8c" 
data-channelId="46f98db5-406d-4d4b-a966-409729934190" 
data-rendered="false" class="cstrEmbed">
    <a href="https://www.caster.fm">Shoutcast Hosting</a> <a href="https://www.caster.fm">Stream Hosting</a> <a href="https://www.caster.fm">Radio Server Hosting</a>
</div>
<script src="https://cdn.api.caster.fm/widgets/embed.js"></script>

settings Parameters

  • data-publicToken REQUIRED– insert your public token from the console
  • data-theme REQUIRED– dark/light layout
  • data-color REQUIRED– a hex value of the desired accent color without the hash symbol
  • data-channelId OPTIONAL– If provided with a valid channel id the player will be a single channel player, if this parameter is empty or missing, a multi-channel player will be displayed.

Back Links

The back links to Caster.fm are required, they will be hidden from view but the player will not be loaded without them.

Was this article helpful to you? Yes No