From 6ccdf9d53e4d68bcdf49bb7098c382d059988c4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Apr 2020 14:51:44 +0200 Subject: Add duration in embed api playbackStatusUpdate --- support/doc/api/embeds.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'support/doc/api') diff --git a/support/doc/api/embeds.md b/support/doc/api/embeds.md index 80e03b487..80d6c2279 100644 --- a/support/doc/api/embeds.md +++ b/support/doc/api/embeds.md @@ -113,12 +113,14 @@ You can subscribe to events by using `addEventListener()`. See above for details ## Event `playbackStatusUpdate` -Fired every half second to provide the current status of playback. The parameter of the callback will resemble: +Fired every half second to provide the current status of playback. +The parameter of the callback will resemble: ```json { "position": 22.3, "volume": 0.9, + "duration": "171.37499", "playbackState": "playing" } ``` -- cgit v1.2.3