Discord Activity
Your station inside Discord, for listening together in a call.
The Discord Activity puts your station's player inside Discord. Anyone in a voice call or chat can press the Activities button, open your station, and listen together, with what's playing on screen. While they listen, their Discord profile shows the song and your station.
You set it up once, with a free application of your own in Discord. Owners and administrators can do this, under Integrations.
What you need
- Your station on HTTPS. Discord only loads Activities from secure addresses, so
APP_URLmust start withhttps://. - Your AzuraCast stream on HTTPS too, because the stream reaches Discord through Discord's own proxy.
Setting it up
-
Open the Discord Developer Portal and press New Application. Name it after your station; listeners see this name.
-
On General Information, copy the Application ID.
-
On OAuth2, press Reset Secret and copy the Client Secret. Under Redirects, add
https://127.0.0.1. Discord asks for one, but the Activity never uses it. -
Under Activities, open URL Mappings and add the two mappings shown on your Integrations page:
Prefix Target /streamyour AzuraCast stream's address, such as azura.example.com/your station's address, such as radio.example.com -
Under Activities, Settings, tick Enable Activities, and under Supported Platforms tick the ones you want: web, desktop, iOS and Android.
-
In Auvyra, under Integrations, Discord Activity, tick Turn on the Discord Activity, paste the Application ID and the Client Secret, and save.
While your application is unpublished, only you and your Discord team can launch it. To let everyone use it, install it in your Discord server, or follow Discord's steps to make it public.
What listeners see
The Activity shows what's on, any live presenter, and a Listen button. Discord asks each listener once whether your station may see their Discord name and set their activity. If they agree, their profile shows the song and your station while they listen. If they don't, the Activity still plays.
How it works
Discord opens your station's home page with its own details in the address, and Auvyra shows the Activity there instead. Only that address can be shown inside Discord; every other page still refuses to be framed by other sites. The Client Secret is encrypted, and only used by your server to finish Discord's sign-in.
A listening status outside the Activity, while someone listens on your website or in the mobile app, isn't possible: Discord only lets programs on the listener's own computer set it.