Skip to content

Commit

Permalink
registry: add data info for track.v1.trackStarted (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Jan 3, 2022
1 parent 4412333 commit 818bb1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ This event type registry is non-normative. It SHOULD be taken into consideration

This event SHOULD be emitted by audio players. Subscribers MAY use it for a wide range of purposes, [nowplaying](https://github.com/radiorabe/nowplaying) might use it for updating the current track from [Klangbecken](https://github.com/radiorabe/klangbecken), but it could also trigger other workflows depending on the source of the track.

The `data` field MUST contain `item.artist` and `item.title`. It SHOULD contain `item.length` which MAY be used to generate internal `ch.rabe.api.events.track.v1.trackFinished` events in case it misses the event from the player or none gets sent. The `data` field MAY contain additional fields based on `nowplaypadgen.dlplus.CONTENT_TYPES`.

**Example:**
```
{
Expand Down

0 comments on commit 818bb1a

Please sign in to comment.