2020-08-21 14:46:25 +02:00
|
|
|
# PeerTube video annotation
|
2020-08-21 15:04:10 +02:00
|
|
|
|
|
|
|
Add a field in the video form so users can set annotation to their video.
|
|
|
|
|
2022-05-02 08:33:29 +02:00
|
|
|

|
|
|
|

|
2020-08-21 15:04:10 +02:00
|
|
|
|
2020-08-24 14:42:10 +02:00
|
|
|
By default, the annotation will be on the top-right of the player.
|
|
|
|
|
2020-08-21 15:04:10 +02:00
|
|
|
Annotations format:
|
|
|
|
|
|
|
|
```
|
|
|
|
start --> stop
|
|
|
|
options: align=top-left (or top, top-right, right, bottom-right, bottom, bottom-left, left)
|
|
|
|
HTML
|
|
|
|
```
|
|
|
|
|
|
|
|
* `start` (in seconds): When to show the annotation
|
|
|
|
* `stop` (in seconds): When to hide the annotation
|
|
|
|
* `options: ...` (this line is optional): Set options for your annotation
|
|
|
|
* `HTML`: Content of your annotation
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
|
|
|
--> 4
|
|
|
|
Hello, how are you?
|
|
|
|
|
|
|
|
5-->10
|
|
|
|
See <a href="https://cpy.re" target="_blank">this document</a> for more information
|
|
|
|
|
|
|
|
12-->
|
|
|
|
options: align=top-left
|
|
|
|
This annotation will be at the top-left of the player
|
|
|
|
```
|