aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/api/embeds.md
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-08 14:51:44 +0200
committerChocobozzz <me@florianbigard.com>2020-04-08 14:52:28 +0200
commit6ccdf9d53e4d68bcdf49bb7098c382d059988c4e (patch)
tree2f6bc3008bc9fbc8b15115827e32f5a1cf88904b /support/doc/api/embeds.md
parentafd1a6ed49e44858848461614e2438c82e521d21 (diff)
downloadPeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.tar.gz
PeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.tar.zst
PeerTube-6ccdf9d53e4d68bcdf49bb7098c382d059988c4e.zip
Add duration in embed api playbackStatusUpdate
Diffstat (limited to 'support/doc/api/embeds.md')
-rw-r--r--support/doc/api/embeds.md4
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
116Fired every half second to provide the current status of playback. The parameter of the callback will resemble: 116Fired every half second to provide the current status of playback.
117The 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```