diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-08 14:51:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-08 14:52:28 +0200 |
commit | 6ccdf9d53e4d68bcdf49bb7098c382d059988c4e (patch) | |
tree | 2f6bc3008bc9fbc8b15115827e32f5a1cf88904b /support/doc/api | |
parent | afd1a6ed49e44858848461614e2438c82e521d21 (diff) | |
download | PeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.tar.gz PeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.tar.zst PeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.zip |
Add duration in embed api playbackStatusUpdate
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/embeds.md | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
113 | 113 | ||
114 | ## Event `playbackStatusUpdate` | 114 | ## Event `playbackStatusUpdate` |
115 | 115 | ||
116 | Fired every half second to provide the current status of playback. The parameter of the callback will resemble: | 116 | Fired every half second to provide the current status of playback. |
117 | The parameter of the callback will resemble: | ||
117 | 118 | ||
118 | ```json | 119 | ```json |
119 | { | 120 | { |
120 | "position": 22.3, | 121 | "position": 22.3, |
121 | "volume": 0.9, | 122 | "volume": 0.9, |
123 | "duration": "171.37499", | ||
122 | "playbackState": "playing" | 124 | "playbackState": "playing" |
123 | } | 125 | } |
124 | ``` | 126 | ``` |