Radio 2.0 Station Manifest #
- Version: 0.2.4-draft. Manifests still declare
"specVersion": "0.2"; draft revisions of 0.2 change no wire format. - Status: working draft, open for comment; not stable.
- Licence: MIT.
- Name: Radio 2.0. Home: https://radio2.org.
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 2119 and RFC 8174 when, and only when, they appear in all capitals.
1. Overview #
A live station publishes one JSON document, the manifest: who the station is, how to hear it, where its live events and schedule are, how to reach it and how to support it. Players and directories find the manifest from a stream URL or a homepage (section 3), check that the station really publishes it (section 4), and follow the station by its guid when its streams or hosts change.
Terms: a publisher serves manifests and events; a consumer reads them (a player, an app or a directory); a directory is a consumer that lists many stations.
ICY metadata and the Icecast and SHOUTcast protocols stay as they are. The manifest adds to them; nothing here asks a publisher to change what existing players receive.
2. The manifest #
2.1 Format #
- A manifest MUST be a single JSON object (RFC 8259) in UTF-8, valid against
schema/manifest.schema.json(JSON Schema 2020-12), and no larger than 256 KiB. - Publishers SHOULD serve it as
application/radio-manifest+json; consumers MUST also acceptapplication/json. (The media type is not registered yet; see section 11.) - Times are RFC 3339 strings. URLs in a manifest are absolute.
- Validators are strict, consumers are lenient. The schemas allow no members beyond those defined here (in a manifest, except inside
extensions). A validator checking a document against this version MUST report any other member as an error, so publishers find typos. A consumer reading documents to use them MUST ignore members it does not know, so a document of a later minor version still works for it. The same split applies to events and schedule documents. - Text fields are plain text. Consumers MUST NOT interpret them as HTML.
- Every country code (
country,area.country,address.country, and the country part of a regulatorauthority) MUST be an officially assigned ISO 3166-1 alpha-2 code, orXKfor Kosovo (user-assigned, but the code in common use there). Reserved codes are not:UKis writtenGB, andEUand other regional codes are not countries (a regional or international regulator usesint). Validators check codes against the ISO list.
2.2 Root members #
| Member | Type | Req. | Meaning |
|---|---|---|---|
specVersion |
string | REQUIRED | "0.2". |
guid |
UUID string | REQUIRED | The station's permanent identity (section 4.1). Lower-case canonical form. |
manifestUrl |
URL | REQUIRED | The canonical address of this manifest (section 4.2). |
locked |
boolean | OPTIONAL | Default false. true asks directories never to move the station to a new owner automatically (section 4.4). |
name |
string | REQUIRED | 1 to 120 characters. |
tagline |
string | OPTIONAL | Up to 160 characters. |
description |
string | RECOMMENDED | Up to 4000 characters. |
homepage |
URL | REQUIRED | The station's own web page; the anchor of ownership (section 4.3). |
language |
string | REQUIRED | BCP 47 tag of the main broadcast language; und when unknown. |
country |
string | OPTIONAL | ISO 3166-1 alpha-2, upper case. |
location |
object | OPTIONAL | city, region (each up to 80 characters). |
genres |
string[] | OPTIONAL | Up to 10 distinct tags of up to 40 characters; lower case RECOMMENDED. |
branding |
object | RECOMMENDED | Section 2.3. |
streams |
Stream[] | REQUIRED | 1 to 32 audio streams (section 2.4). |
broadcast |
object | OPTIONAL | Whether and how the station is on the air (section 2.6). Absent means not stated. |
events |
object | OPTIONAL | Live event addresses (section 5). |
schedule |
object | OPTIONAL | Section 6. |
contact |
object | OPTIONAL | Section 7. |
value |
object | OPTIONAL | Listener support (section 8). |
videoStreams |
VideoStream[] | OPTIONAL | Visual radio (section 9). |
extensions |
object | OPTIONAL | Publisher-specific members, keyed by a reverse domain name or a URL the publisher controls. |
2.3 Branding #
logo (square, at least 512 by 512, PNG, JPEG, WebP or SVG; RECOMMENDED), icon (square, 32 to 64 pixels), banner (16:9, at least 1280 by 720), themeColor (#RRGGBB). All OPTIONAL; images are absolute URLs.
2.4 Streams #
| Member | Type | Req. | Meaning |
|---|---|---|---|
id |
string | REQUIRED | Unique within the manifest; [A-Za-z0-9._-], 1 to 64 characters; stable across manifest versions. |
url |
URL | REQUIRED | Where a player opens the stream. |
mimeType |
string | REQUIRED | For example audio/mpeg, audio/aac, audio/ogg; codecs=opus, audio/flac, application/vnd.apple.mpegurl. |
protocol |
string | RECOMMENDED | icecast (ICY-capable HTTP), http (plain progressive HTTP), hls or ll-hls. |
bitrate |
integer | RECOMMENDED | Nominal kbit/s. |
sampleRate |
integer | OPTIONAL | Hz. |
channels |
integer | OPTIONAL | 1 to 8. |
typicalDelayMs |
integer | RECOMMENDED | Typical time, in milliseconds, from an item's startedAt (section 5.3) to the moment a listener who has just connected with default buffering hears it. |
default |
boolean | OPTIONAL | The stream a player opens first. |
carries |
string[] | RECOMMENDED | What the stream carries: the ids of the transmissions it is the feed of, or ["web"] for an internet-only stream (section 2.6). Absent means not stated. |
Exactly one stream SHOULD set default: true. A consumer that finds none MUST treat the first stream as the default; one that finds several MUST keep the first and ignore the others' flag. A consumer SHOULD try the next stream that it can play when the default fails.
All streams in one manifest carry the same programme: the same audio in different formats, bitrates or transports, for example Opus at 64 kbit/s, AAC at 96 kbit/s, MP3 at 128 kbit/s and an HLS playlist (which may itself hold several bitrates and counts as one stream). A different programme, such as a sister channel, an HD2 sub-channel with its own programming, or an AM and an FM service that share a brand but not their programming, is a different station with its own manifest and guid; one manifest has one set of events, one schedule and one value, so it cannot describe two programmes.
Publishers SHOULD list streams in their order of preference. A consumer SHOULD open the default stream when it can play it. Otherwise, or when it chooses for its own needs (bandwidth, battery, codec support), it SHOULD take the first stream in list order whose mimeType it can decode and whose bitrate suits its connection.
2.5 Normalisation #
A consumer that keeps or passes on a manifest SHOULD store it normalised, so every reader sees the same values: set default on exactly one stream and on exactly one video stream by the rule above, and write events.pollInterval as 15 when it is absent. Normalisation changes nothing else.
2.6 Over the air #
broadcast says whether the station is on the air, on which services, and what each stream carries, so a directory can show "102.7 FM WXYZ" or "Web only" next to each stream and filter stations without guessing.
mode(REQUIRED):on_airorweb_only. Withon_air,transmissionsMUST list at least one transmission; withweb_onlyit MUST be empty or absent.transmissions: up to 32 Transmission objects, below.regulatorIds: up to 10 identifiers of the station or licensee (below). Identifiers of a single facility go on its transmission.
Per stream. streams[].carries is the primary statement. A stream carries a transmission when it is that transmission's programme feed, as its listeners hear it, apart from ad breaks or rights blackouts that differ on the internet. One stream may carry several transmissions of the same programme (an FM signal and its HD1, an FM and an AM simulcast). ["web"] means the stream is not the feed of any listed transmission. web MUST NOT be combined with transmission ids, and every id MUST name a transmission of this manifest; web is reserved and MUST NOT be a transmission id.
Which wins. A consumer labels each stream from its own carries, and treats the station as on the air when any stream carries a listed transmission, even if mode says web_only. Otherwise mode gives the station-level answer; without broadcast it is unknown. A validator reports any such disagreement as an error. A consumer ignores carries values that name no transmission.
Transmission. id (REQUIRED, as stream ids) and band (REQUIRED). Members a band does not list below MUST NOT appear; a validator reports them.
band |
Service | Required | Range | Also allowed |
|---|---|---|---|---|
fm |
FM, analog VHF | frequencyMhz |
64 to 108 MHz | rds, ecc |
am |
AM on medium wave | frequencyKhz |
520 to 1710 kHz | |
lw |
AM on long wave | frequencyKhz |
148 to 284 kHz | |
sw |
AM on short wave | frequencyKhz |
2300 to 26100 kHz | |
hd_fm, hd_am |
HD Radio on an FM or AM host | frequencyMhz (FM, 87.5 to 108) or frequencyKhz (AM, 520 to 1710), subchannel 1 to 8 |
||
dab, dab_plus |
DAB, DAB+ | block, for example 12B |
Band III 5A to 13F, L-band LA to LW |
serviceId, ensembleId, ecc |
drm |
DRM below 30 MHz | frequencyKhz |
148 to 30000 kHz | |
drm_plus |
DRM+ in VHF | frequencyMhz |
47 to 230 MHz | |
satellite, cable, dtv |
Satellite radio, cable audio, a TV multiplex's audio service | channel (as the provider numbers it, for example 23 or 7.3) |
provider, for example SiriusXM |
The unit is in the member's name, so a frequency is never ambiguous. The ranges span the world's allocations (for example FM from the OIRT band and Japan's 76 MHz to 108 MHz); a national plan may be narrower.
Every band also allows:
callSign: as issued, upper case, 1 to 10 letters or digits with an optional-suffix of up to 5, for exampleWXYZ-FM,CJAD,XEW-AM,2GBorDZBB. Where a country issues no call signs,licensedName(up to 120 characters) gives the name as licensed. Both MAY appear.rds(fmonly):pi(four upper-case hex digits) andps(up to 8 characters). Fordabanddab_plus,serviceId(4 or 8 hex digits) andensembleId(4).eccis the two-hex-digit extended country code that makes a PI code or service id unique worldwide.area:city,region,country(ISO 3166-1 alpha-2) served.coverage: anote(up to 300 characters) and/or aurlof a map.site: the transmitter'slatitudeandlongitude. OPTIONAL and never required: a publisher MAY leave it out for privacy or security.regulatorIds: identifiers of this facility.
Labels. A directory SHOULD label a transmission as: fm "102.7 FM", am "1060 AM", lw "198 kHz LW", sw "9410 kHz SW", hd_fm "102.7 HD2", hd_am "1060 HD1", dab "DAB 12B", dab_plus "DAB+ 12B", drm "DRM 3965 kHz", drm_plus "DRM+ 87.6 MHz", and satellite, cable or dtv as the provider and channel ("SiriusXM 23"), followed by the call sign or, without one, the licensed name. MHz values are written with at least one decimal.
Regulator identifiers. Each is {authority, kind, id}. authority is the regulator's country code (ISO 3166-1 alpha-2, lower case; int for international bodies), a dot and its usual short name, for example us.fcc, gb.ofcom, ca.crtc, ca.ised, mx.ift, au.acma. kind (OPTIONAL, lower case with _) names the identifier where an authority issues several, for example facility_id or licence. The list is open: no registry is needed to use a new authority.
Cross-checking (informative). A directory may look up a regulator identifier, call sign, PI code or service id in the authority's public records and compare the frequency, call sign, community served and licensee with the manifest, and flag a mismatch. Such records are public, so a match does not prove who publishes the manifest; ownership still rests on the homepage origin (section 4.3). This version sets no rules for such lookups.
3. Discovery #
A publisher MUST offer at least one of the following and SHOULD offer all that its hosting allows.
- Well-known address.
GET https://<homepage host>/.well-known/radio-manifest.jsonanswers the manifest (or redirects to it with 301, 302, 307 or 308). - HTML link. The homepage carries, in its
<head>:<link rel="alternate" type="application/radio-manifest+json" href="<manifestUrl>"> - HTTP Link header on every stream response (also on
HEAD, and on HLS playlists):Link: <manifestUrl>; rel="radio-manifest"; type="application/radio-manifest+json"This reaches players that only know a stream URL, including streams already listed in old directories. A relative reference resolves against the stream URL (RFC 8288).
A consumer that has a stream URL SHOULD look for the Link header first. It SHOULD send HEAD first; when that fails or carries no Link, it SHOULD send one GET with Range: bytes=0-0 and Icy-Metadata: 0, read only the response headers and close the connection (live streams often ignore Range). A publisher MUST send the Link header on both. When there is none and the stream sends an icy-url header with an http or https URL, the consumer MAY take that URL as a homepage.
A consumer that has a homepage SHOULD read the HTML link and then try the well-known address. When the two disagree, the HTML link of the homepage wins. When the linked manifest cannot be used (a network failure, a status other than 200, or a document that does not parse), the consumer SHOULD try the well-known address next; it MUST NOT do so after a refusal under section 10.2 or a guid mismatch under section 4.2, which end discovery.
Discovery does not confer trust: whatever way a manifest is found, the consumer applies section 4.
4. Identity, ownership and moves #
4.1 guid #
The guid is a UUID (RFC 9562) created once, when the station first publishes, and never changed: not when the station renames itself, changes hosts, streams or software. A random (version 4) or name-based (version 5) UUID MAY be used. A station that moves to new software MUST carry its guid over.
A publisher MUST create a new guid for each station and MUST NOT copy one from an example or from another station. The guids in this document and its examples/ are for documentation only: 9b2f6c1e-4d3a-5b8e-9f10-2a6c7d8e9f01, 3f0c9a52-7e1b-5d24-8c6a-0b9e4f2d7a13, 6d1e2f30-8a4b-5c6d-9e7f-1a2b3c4d5e6f and 0e9d8c7b-6a5f-4e3d-8c2b-1a0f9e8d7c6b. Validators MAY warn when a manifest uses one of them, and directories SHOULD NOT list a station under one.
Informative. Two stations do not end up with the same guid by chance: a version 4 UUID has 122 random bits, so even a billion stations would collide with a probability of about one in ten billion billion. A shared guid therefore means a copy, by mistake or on purpose. The guid is not a secret and gives no control over a listing: anyone can read it in a published manifest, and a directory accepts a manifest only under the verification and move rules of sections 4.3 and 4.4, which rest on the homepage origin.
4.2 manifestUrl #
A publisher MAY serve the same manifest at several addresses, but manifestUrl names one. A consumer that fetched the manifest from another address MUST fetch manifestUrl and use that copy; if the two differ in guid, it MUST discard both. The fetched address is the final one after redirects.
Wherever this document compares two URLs (here, in section 4.3 and in section 4.4), they are equal when, after parsing (RFC 3986), the scheme and host match without regard to case, the ports match (a missing port equals the scheme's default, 443 or 80), the paths match exactly (an empty path equals /; case and percent-encoding are not normalised), and the queries match exactly. Fragments are ignored.
4.3 Verification #
A manifest is verified when both hold:
- its
manifestUrlis/.well-known/radio-manifest.jsonon the origin of itshomepage, or thehomepagedocument's HTML link (section 3, item 2) names exactly itsmanifestUrl; and - in production (section 10),
homepageandmanifestUrlusehttps.
A development-tier manifest (section 10.2) is never verified. A consumer MAY still apply the first condition to it and report that it passed, so publishers can test their setup before going public.
The origin is the unit of trust: whoever controls the homepage's origin controls the station's manifest. Directories SHOULD show unverified manifests as unverified, or not list them. A publisher hosting many stations on one origin MUST NOT serve the well-known address for more than one of them.
4.4 Moves and claims #
A directory keeps, per guid, the verified manifestUrl and homepage origin it last accepted. When it meets a verified manifest with a known guid at a different manifestUrl:
- Same homepage origin: it MUST accept the new address.
- New homepage origin, accepted when either (a) the old
manifestUrlanswers 301 or 308 to the new one, or (b) the manifest now served at the oldmanifestUrlnames the new one as itsmanifestUrl. - Otherwise, when
lockedisfalsein the last accepted manifest, a directory MAY accept the new address after the old one has answered 404 or 410 for at least 30 days. Whenlockedistrue, it MUST NOT accept the new address without review by a person. - An unverified manifest MUST NOT change any stored record.
When a directory refuses a verified manifest because its guid already belongs to another station (a different homepage origin and no move proof under the rules above), it SHOULD tell the submitter plainly that the guid is taken by another station and that each station must create its own. An API that takes submissions SHOULD answer with the error code guid_taken. It MUST NOT reveal anything about the other station beyond what that station's own manifest publishes.
A manifest that is temporarily unavailable SHOULD be answered with 503 and Retry-After. Consumers MUST NOT treat 503 or a network failure as removal; 404 and 410 mean the station no longer publishes at that address.
5. Live events #
5.1 Transport #
events.sse is a Server-Sent Events stream (text/event-stream); events.poll answers the latest now_playing event as a JSON document. When events is present, both MUST work. events.pollInterval (seconds, 5 to 300, default 15) is how often a polling consumer SHOULD ask; it MUST NOT ask more often than every 5 seconds.
Every event is a JSON object valid against schema/event.schema.json, no larger than 64 KiB, sent as one SSE message whose event field equals the object's type and whose id field equals its id. URLs inside events MAY be relative; they resolve against the address the event came from.
5.2 Common members #
type: one ofnow_playing,show_change,live_start,live_end,schedule_change,value_change,heartbeat.id: REQUIRED except onheartbeat; unique within the stream, 1 to 128 printable ASCII characters. Consumers MUST treat it as opaque.sentAt: when the publisher sent the event.
5.3 Event types #
| Type | Members | When |
|---|---|---|
now_playing |
item, live, show (object or null); OPTIONAL onAir (default true), listeners, value |
On every change of the item, the show, live state or on-air state. Carries the whole current state. |
show_change |
show (object or null) |
The show changed without a change of live state. |
live_start |
show (object or null) |
A live programme began. |
live_end |
none | The live programme ended. |
schedule_change |
none | The schedule changed; consumers that show it SHOULD fetch it again. |
value_change |
value (object or null) |
A support override for the current item (section 8.2). |
heartbeat |
none (no id) |
Keeps the stream alive (section 5.4). |
item: kind (song, live, break, station or other; REQUIRED), title (REQUIRED), artists (names), album, year, artwork (URL), isrc, url, startedAt (REQUIRED), durationMs (integer or null when unknown).
show: title (REQUIRED), presenters (names), startsAt, endsAt, url.
show_change, live_start and live_end MUST be sent immediately before the now_playing that reflects the change, so a consumer that handles only now_playing still has the full state. Publishers MUST NOT announce items that have not started: there is no "next" in this version.
listeners is OPTIONAL. A publisher that does not show its listener count elsewhere MUST leave it out.
5.4 Timing #
item.startedAtis the air time: when the item started at the station's output, before any stream delay. A player SHOULD show an item atstartedAtplus thetypicalDelayMsof the stream it plays, or plus its own measured delay when it has one. Players ofhlsandll-hlsstreams SHOULD instead matchstartedAtagainstEXT-X-PROGRAM-DATE-TIME(RFC 8216) when the playlist carries it.- A publisher MUST send an SSE message or comment at least every 30 seconds; a
heartbeatevent is RECOMMENDED because browserEventSourceclients cannot see comments. A consumer SHOULD reconnect after 60 seconds without any message. - A publisher SHOULD send an SSE
retryfield.
5.5 Resume #
A reconnecting consumer sends the last id it received in Last-Event-ID. The publisher MUST then either send every event after that id that it still holds, or send the current state as one now_playing event. When the id is the newest the publisher has, it MAY send nothing until the next change. A consumer MUST treat any now_playing as the complete current state.
5.6 Poll fallback #
events.poll answers the same JSON object as the latest now_playing event, with an ETag that changes when the event does, and honours If-None-Match with 304.
6. Schedule #
schedule.timeZone (an IANA zone name) is REQUIRED when schedule is present, with at least one of:
schedule.json: a document valid againstschema/schedule.schema.json:timeZoneanditems, earliest first, each withtitle,startsAt,endsAtand OPTIONALid,description,presenters,live,url,artwork. It SHOULD cover at least the next 7 days. Like events, it lists programmes, never individual songs. Each item MUST end after it starts, and items MUST be listed bystartsAt, earliest first. Gaps are allowed and mean that nothing is announced for that time. Items SHOULD NOT overlap; where they do, the item that starts later takes precedence for the overlapping time.schedule.ical: an iCalendar feed (RFC 5545).
7. Contact #
All members are OPTIONAL and opt-in: a publisher MUST NOT fill them from account or billing data, and MUST publish only what the station chose to make public. email, phone (E.164 RECOMMENDED), whatsapp, requestsUrl (a page for song requests or shout-outs), address and social.
address is a postal address: OPTIONAL label (up to 60 characters, for example "Studio"), street (up to 300 characters, lines separated by \n), locality (the city or town), region, postalCode and country (ISO 3166-1 alpha-2). When address is present it MUST have at least one of street, locality or country. The address is for display and contact only: consumers MUST NOT use it to rank stations by location or to verify them. The places a station serves are the area of its transmissions (section 2.6); its home is location (section 2.2).
social lists up to 30 pages as {platform, label, url}; only url is REQUIRED. platform is a lower-case token matching ^[a-z0-9_]{1,30}$. These tokens are RECOMMENDED: facebook, instagram, x, threads, tiktok, youtube, bluesky, mastodon, linkedin, snapchat, telegram, whatsapp_channel, discord, twitch, spotify, apple_podcasts, soundcloud, mixcloud, website and other. Other tokens are allowed so new platforms need no new version. Players and directories SHOULD show a platform's own name and icon when they know the token; otherwise they show label, and without one the host of url.
8. Listener support (value for value) #
8.1 The value block #
value follows the Podcasting 2.0 <podcast:value> and <podcast:valueRecipient> tags, in JSON, so apps that already pay podcasts can pay stations:
type:lightning.method:keysendorlnaddress.suggested: OPTIONAL amount per payment, as in Podcasting 2.0.recipients: 1 to 50 objects withtype(nodefor a node public key,lnaddressfor a Lightning Address),address,split(shares, an integer), and OPTIONALname,fee,customKey,customValue.role(station,host,artist,producer,app,other) is a display hint added by this standard; wallets MUST NOT send it.- The sum of
splitover recipients MUST be greater than 0. A recipient receivesamount × split ÷ sum of splits. A recipient withfee: trueis an intermediary and MUST be shown as one.
8.2 Live overrides #
An item-level value replaces the manifest's value, as an item's value replaces a channel's in Podcasting 2.0. It arrives in now_playing.value or in a value_change after it, and applies until the next now_playing. A now_playing without value restores the manifest's value; a value_change with value: null does so at once. A publisher that wants an override to last a whole show repeats it with each now_playing.
8.3 Non-custodial #
Payments go from the listener's wallet straight to each recipient. This standard defines no payment flow through a publisher, a directory or a player, and none of them may receive, hold or forward a payment for someone else under it; an intermediary that takes a share MUST appear as its own recipient with fee: true. A publisher MUST list only addresses their owners gave for this purpose.
9. Visual radio (optional, delivery deferred) #
videoStreams lists video for stations that have it: id, url, mimeType, protocol (whep, ll-hls, hls; REQUIRED), and OPTIONAL kind (studio_camera, visualizer, screen), width, height, frameRate, syncStreamId (the audio stream it is timed with), typicalDelayMs, default. default follows the rule of section 2.4 among the video streams. A syncStreamId that names no stream in streams is an error for a validator; a consumer ignores it and plays the video unsynchronised. whep means the WebRTC-HTTP Egress Protocol, still an IETF draft (draft-ietf-wish-whep); ll-hls means Low-Latency HLS as described in draft-pantos-hls-rfc8216bis. This version sets no delivery or synchronisation rules; a consumer MAY ignore videoStreams, and nothing else in this document depends on it.
10. Caching and security #
10.1 Caching #
- The manifest and
schedule.jsonMUST be served with anETagand SHOULD carryCache-Control: max-age=300. Consumers MUST sendIf-None-Matchwhen they hold a copy, and SHOULD NOT fetch a manifest more often than every 5 minutes. - The event stream MUST NOT be cached. The poll address SHOULD carry
max-ageof at most 5 seconds. - Public manifests, events and schedules SHOULD send
Access-Control-Allow-Origin: *, so web players on other sites can read them.
10.2 Security tiers #
- Production.
manifestUrl,homepage,eventsandscheduleURLs MUST usehttps. Stream URLs SHOULD usehttpsand MAY usehttpfor older players and devices; a consumer that can use TLS SHOULD prefer anhttpsstream of the same content. No URL in a production-tier manifest, streams included, may name a development host: a validator reports one as an error, and a consumer skips the stream or link. - Development. A manifest is in the development tier when its
manifestUrl,homepage,eventsorscheduleURLs usehttpor name a development host.httpis allowed only forlocalhost,*.localhost,*.local,*.internal,*.test, loopback addresses,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16andfc00::/7. A development-tier manifest is never verified (section 4.3). - Fetching for others. A directory or any server that fetches URLs taken from manifests MUST refuse development-tier addresses (and any address that resolves to one) unless it is configured for development, follow at most 5 redirects, stop after 256 KiB (64 KiB per event) and give up after 10 seconds.
11. Open issues for this draft #
- The media type
application/radio-manifest+json, the link relationradio-manifestand the well-known nameradio-manifest.jsonare provisional. They will be registered with IANA (RFC 6838, RFC 8288, RFC 8615) once the public name is chosen, and may change with it. - Combining an artist's own value block (for example a Podcasting 2.0 music feed) with a station's splits during a song.
- Delivery and synchronisation rules for visual radio.
- An embedding of the manifest in RSS for podcast feeds.
- Linking sister channels of one broadcaster (for example a
relatedlist of other stations'guidandmanifestUrl), so players can offer them together.
12. Conformance checklist #
Publisher: manifest
- [ ] Manifest validates against
schema/manifest.schema.json;specVersionis"0.2". - [ ]
guidis permanent;manifestUrlnames the canonical address. - [ ] At least one discovery method of section 3; stream responses carry the
Linkheader where the server allows it. - [ ] The manifest is verified by its homepage (section 4.3).
- [ ]
ETag,Cache-Control: max-age=300, 304 onIf-None-Match. - [ ] 503 with
Retry-Afterfor temporary unavailability; 404 or 410 only when the manifest is withdrawn. - [ ] Contact fields only as the station chose; no listener counts it hides elsewhere; no upcoming songs.
- [ ] When stated,
broadcastmatches the streams'carries; each transmission has the members its band requires and no others.
Publisher: events (when events is present)
- [ ] Every event validates against
schema/event.schema.json; SSEeventandidequaltypeandid. - [ ]
now_playingon every state change; edge events immediately before it. - [ ]
item.startedAtis the air time; streams declaretypicalDelayMs. - [ ] A message at least every 30 seconds;
Last-Event-IDresume as in section 5.5. - [ ] The poll address answers the latest
now_playingwith anETag. - [ ] A value override lasts only until the next
now_playing.
Consumer
- [ ] Ignores unknown members when reading (a validator reports them); reads
application/jsontoo. - [ ] Stores manifests normalised (section 2.5).
- [ ] Uses
manifestUrl's copy and applies verification before trusting a manifest. - [ ] Follows the move rules of section 4.4; never treats 503 as removal.
- [ ] Shows titles at air time plus stream delay.
- [ ] Labels each stream from its own
carries; a stream carrying a transmission makes the station on the air. - [ ] Polls no faster than every 5 seconds and fetches manifests no faster than every 5 minutes.
- [ ] Renders text as plain text; applies section 10.2 when fetching for others.
- [ ] Pays recipients directly, by their splits, with fees shown.