Skip to content

Commit

Permalink
Add instructions about simple text file.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Jul 23, 2024
1 parent c5c0977 commit f9dd4c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/content/docs/docs/developers/now-playing-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ http://your-azuracast-site.example.com/api/nowplaying_static/station_shortcode.j

Implementations of this method look exactly the same as for the Standard Now Playing API (above), except with the URL updated to the static URL for the station.

## Simple Text File

AzuraCast also generates a simple text file containing `Artist - Title` for each station. This can be useful if you need to fetch the current playing track for display or in automation tools.

The URL of the text file follows the format:

```
http://your-azuracast-site.example.com/api/nowplaying_static/station_shortcode.txt
```

...replacing `station_shortcode` with the station's abbreviated name (i.e. `azuratest_radio` for "AzuraTest Radio").

## High-Performance Updates

We deliver a high-performance (low-latency and low server CPU burden) Now Playing feed thanks to a realtime messaging library called [Centrifugo](https://centrifugal.dev/). Using this connection method, each listener gets immediate track updates while only maintaining a single lightweight HTTP connection.
Expand Down

0 comments on commit f9dd4c2

Please sign in to comment.