Skip to content

Instantly share code, notes, and snippets.

@frytg
Last active January 19, 2021 10:57
Show Gist options
  • Save frytg/01fe156c342b1318d49465a5a9eece77 to your computer and use it in GitHub Desktop.
Save frytg/01fe156c342b1318d49465a5a9eece77 to your computer and use it in GitHub Desktop.
ARD Meta Exchange
#########################
#########################
#########################
Future discussions and schemas => https://github.com/swrlab/ard-eventhub/
#########################
#########################
#########################
/* A track object is the entity POST'ed on every playback */
{
"id": "1234", /* unique and generated by exchange service */
"trackId": "1234B", /* not unique and provided by broadcaster */
"epgId": "28476",
"start": 1591153200000, /* UNIX timestamp in MS */
"end": 1591167600000,
"duration": 240000, /* duration in MS */
"artist": "Herbert Grönemeyer",
"title": "Was soll das",
"type": "music", /* music, news, voice, weather, traffic */
"cover": cover, /* see cover.js */
"program": program, /* see program.js */
"station": station, /* see station.js, not required for POST, looked up by epgId */
"isrcCode": "U12345", /* nullable */
"upcCode": "DE67890", /* nullable */
"mpnId": "98765", /* nullable */
}
/* anchor is a sub-element of program and can be an array */
{
"id": 492,
"title": "Jan Malte Andresen",
"webUrl": "https://www1.wdr.de/radio/wdr2/ueber-uns/jan-malte-andresen-moderator-wdr-100.html",
"image": {
"imageUrl": "https://www1.wdr.de/radio/wdr2/ueber-uns/andresen-jan-malte100~_v-original.jpg",
"imageTemplate": "https://www1.wdr.de/radio/wdr2/ueber-uns/andresen-jan-malte100~_v-original.jpg?width={width}",
"title": "Jan Malte Andresen im Porträt | Bildquelle: wdr",
"alt": "Jan Malte Andresen im Porträt"
}
}
/* cover is a sub-element of track */
{
"imageUrl": "https://www1.wdr.de/global/coverbilder/coverbild-381ee1d5-216~_v-original.jpg",
"imageTemplate": "https://www1.wdr.de/global/coverbilder/coverbild-381ee1d5-216~_v-original.jpg?width={width}", /* dynamic sizing if supported */
"title": "Herbert Grönemeyer - Was soll das",
"alt": "Cover: Herbert Grönemeyer mit Was soll das"
}
/* program is a sub-element of track */
{
"id": 1234, /* id reference provided by broadcaster, should be unique within a station */
"start": 1591153200000, /* UNIX timestamp in MS */
"end": 1591167600000,
"title": "WDR aktuell und Lokalzeit auf WDR 2",
"subtitle": "Darin: Kirche in WDR 2",
"anchorList": [
anchor, /* see anchor.js */
anchor
]
}
/* station is a sub-element of track and provided by exchange service */
{
"id": "28476", /* equals epdId */
"imageUrl": "https://img.ardmediathek.de/img/standard/00/42/92/13/76/-295433861/1x1/448?mandant=ard",
"imageTemplate": "https://img.ardmediathek.de/img/standard/00/42/92/13/76/-295433861/1x1/{width}?mandant=ard", /* dynamic sizing if supported */
"title": "WDR 2",
"subtitle": "Der Sender.",
"organizationId: "638",
"webUrl": "https://www1.wdr.de/radio/wdr2/index.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment