Skip to content
Wilkin Santana edited this page Nov 29, 2026 · 1 revision

This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.

Radio 2.0 defines seven event types: now_playing, show_change, live_start, live_end, schedule_change, value_change and heartbeat. Each is a small JSON object whose type names it. This article lists what each carries and when it is sent.

Defined in Specification 5.3
Schema https://radio2.org/schema/v0.2/event.schema.json
Examples examples/events/ (nine files)
Transport See Live events
Status Draft

Ordering rule

show_change, live_start and live_end must be sent immediately before the now_playing that reflects the change. A consumer that handles only now_playing therefore still has the full state.

now_playing

Sent on every change of the item, the show, live state or on-air state. It carries the whole current state: item, live, and show (an object or null), with optional onAir (default true), listeners and value.

The item has kind (song, live, break, station or other), title and startedAt as required members, plus artists, album, year, artwork, isrc, url and durationMs (an integer, or null when unknown). The show has a required title and optional presenters, startsAt, endsAt and url.

{
  "type": "now_playing",
  "id": "k3x9-1-1",
  "sentAt": "2026-12-01T06:00:00Z",
  "item": { "kind": "station", "title": "Dune FM", "startedAt": "2026-12-01T06:00:00Z", "durationMs": null },
  "live": false,
  "onAir": false,
  "show": null
}

That is the off-air example: the station name stands in as the item.

show_change

The show changed without a change of live state. Carries show.

{
  "type": "show_change",
  "id": "k3x9-1101-1",
  "sentAt": "2026-12-02T01:00:00Z",
  "show": { "title": "Lounge: Guest Mix", "presenters": ["Alex Vance", "Mira Sol"] }
}

live_start and live_end

live_start says a live programme began and carries show. live_end says it ended and carries no extra members.

{ "type": "live_end", "id": "k3x9-1180-1", "sentAt": "2026-12-02T02:00:05Z" }

schedule_change

The schedule changed. It carries nothing more. Consumers that show a schedule should fetch it again; see Schedule.

{ "type": "schedule_change", "id": "k3x9-1181-1", "sentAt": "2026-12-02T02:03:00Z" }

value_change

Carries value, a support override for the current item, or null to clear it. An override lasts until the next now_playing; see Value for value.

{ "type": "value_change", "id": "k3x9-1044-1", "sentAt": "2026-12-01T19:13:00Z", "value": null }

heartbeat

Keeps the stream alive. It has no id and no other members. The invalid test file event--heartbeat-with-id.json shows that a heartbeat with an id is rejected.

{ "type": "heartbeat", "sentAt": "2026-12-01T19:12:29Z" }

Common mistakes

  • Sending an event type not in the list. event--unknown-type.json must fail.
  • Leaving item out of a now_playing.
  • Announcing a song before it starts.

See also

References

Clone this wiki locally