mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
feat: add descriptions for mode tag
This commit is contained in:
parent
eb650ebd4e
commit
22d6158ea7
10
61.md
10
61.md
|
@ -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": "<...>",
|
||||
|
|
Loading…
Reference in New Issue
Block a user