diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-05 14:16:39 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:58:29 +0200 |
commit | 9054a8b6e522dd8d46260dca85e9de94a2d806cf (patch) | |
tree | 5699e0c2853c17cbaef037eec4cb48cfbf0ec06d /support/doc/api | |
parent | 2a71d286cec31964e0b70b5a7c53bfad401af554 (diff) | |
download | PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.gz PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.tar.zst PeerTube-9054a8b6e522dd8d46260dca85e9de94a2d806cf.zip |
Handle playlist methods in embed api
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/embeds.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/support/doc/api/embeds.md b/support/doc/api/embeds.md index e3df35efc..d64615764 100644 --- a/support/doc/api/embeds.md +++ b/support/doc/api/embeds.md | |||
@@ -115,6 +115,18 @@ Update current caption using the caption id. | |||
115 | 115 | ||
116 | Get video captions. | 116 | Get video captions. |
117 | 117 | ||
118 | ## `playNextVideo(): Promise<void>` | ||
119 | |||
120 | Play next video in playlist. | ||
121 | |||
122 | ## `playPreviousVideo(): Promise<void>` | ||
123 | |||
124 | Play previous video in playlist. | ||
125 | |||
126 | ## `getCurrentPosition(): Promise<void>` | ||
127 | |||
128 | Get current position in playlist (starts from 1). | ||
129 | |||
118 | # Events | 130 | # Events |
119 | 131 | ||
120 | You can subscribe to events by using `addEventListener()`. See above for details. | 132 | You can subscribe to events by using `addEventListener()`. See above for details. |