feat: add descriptions for mode tag

This commit is contained in:
codytseng 2024-09-01 14:49:11 +08:00
parent eb650ebd4e
commit 22d6158ea7

10
61.md
View File

@ -22,9 +22,15 @@ The list of tags are as follows:
* `duration` (optional) the duration of the danmaku comment shown in seconds.
* `speed` (optional) the speed of the danmaku comment in pixels per second.
* `color` (optional) the color of the danmaku comment in hexadecimal format.
* `mode` (optional) the display mode of the danmaku comment. The following values are possible:
* `rtl` the danmaku comment scrolls from right to left.
* `top` the danmaku comment is displayed at the top of the screen.
* `bottom` the danmaku comment is displayed at the bottom of the screen.
Any other styling tags are allowed. And, client implementations should ignore any tags they do not understand.
### Example
```jsonc
{
"id": "<...>",
@ -32,7 +38,9 @@ Any other styling tags are allowed. And, client implementations should ignore an
"kind": 2333,
"tags": [
["i", "youtube:aA-jiiepOrE"],
["time", "3.018597"]
["time", "3.018597"],
["color", "#FFFFFF"],
["mode", "rtl"]
],
"content": "Hello Nostr!",
"sig": "<...>",