diff options
| -rw-r--r-- | 29.md | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -58,6 +58,8 @@ The `Authorization` event should be of kind `27235` and contain a tag `["u", "ht | |||
| 58 | 58 | ||
| 59 | Relays should enforce access control at the LiveKit JWT creation time according to the group settings. | 59 | Relays should enforce access control at the LiveKit JWT creation time according to the group settings. |
| 60 | 60 | ||
| 61 | Relays MUST set the `sub` property on the issued JWT (called "identity" in the standard LiveKit libraries) such that the initial 64 characters correspond to the lowercase hex public key of the Nostr user. The same user can be issued multiple JWTs and join the same LiveKit room multiple times, so relays are expected to appending a random identifier to those 64 characters. | ||
| 62 | |||
| 61 | In order to inform clients about relay support for AV (so they can display that option for users when creating or editing groups) relays should serve a status code `204` at `https://relay.tld/.well-known/nip29/livekit`. | 63 | In order to inform clients about relay support for AV (so they can display that option for users when creating or editing groups) relays should serve a status code `204` at `https://relay.tld/.well-known/nip29/livekit`. |
| 62 | 64 | ||
| 63 | ## Event definitions | 65 | ## Event definitions |
| @@ -238,7 +240,7 @@ This is an event that MAY be published by the relay informing users and clients | |||
| 238 | 240 | ||
| 239 | This should be updated whenever a new user leaves or joins a group, clients are expected to be actively subscribed to it. | 241 | This should be updated whenever a new user leaves or joins a group, clients are expected to be actively subscribed to it. |
| 240 | 242 | ||
| 241 | The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex and their identity in the LiveKit context (the identity is defined by the relay at JWT creation time and recorded in the JWT `sub` field). | 243 | The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex. |
| 242 | 244 | ||
| 243 | ```jsonc | 245 | ```jsonc |
| 244 | { | 246 | { |
| @@ -246,7 +248,7 @@ The event MUST contain zero or more `participant` tags with the participant's pu | |||
| 246 | "content": "", | 248 | "content": "", |
| 247 | "tags": [ | 249 | "tags": [ |
| 248 | ["d", "<group-id>"], | 250 | ["d", "<group-id>"], |
| 249 | ["participant", "<pubkey>", "<jwt-identity>"], | 251 | ["participant", "<pubkey>"], |
| 250 | // other participants... | 252 | // other participants... |
| 251 | ], | 253 | ], |
| 252 | // other fields... | 254 | // other fields... |