🎡 CrazyGames Radio - Basic Integration

Simple example of integrating the CrazyGames Radio Player

1. Basic Setup

This example shows the simplest way to add radio to your website or game.

<script src="https://cdn.crazygames.com/radio/v1/crazygames-radio-complete.min.js"></script> <script> // Show the radio player CrazyGamesRadio.showPlayer(); </script>

2. Manual Initialization

For more control, you can initialize the radio programmatically.

await CrazyGamesRadio.initialize(); const stations = await CrazyGamesRadio.getPlaylists(); await CrazyGamesRadio.loadPlaylist(stations[0].id);
Click "Initialize Radio" to start

3. Playback Controls

Control radio playback with simple method calls.

4. Volume Control

Adjust volume and mute settings.

5. Current State

Check the current player state.

Click "Show Current State" to see player information