Class MatrixRtcNames
LiveKit room names and participant identities of MatrixRTC calls, as lk-jwt-service makes them: SHA-256 of a JSON array of strings, in unpadded Base64, so that they hide the Matrix names and every client and service arrives at the same ones.
Inheritance
MatrixRtcNames
Assembly: Uniform.LiveKit.Protocol.dll
public static class MatrixRtcNames
Fields
|
Edit this page
View Source
The slot of the room's call, which the legacy /sfu/get request implies.
Declaration
public const string RoomCallSlot = "m.call#ROOM"
Field Value
Methods
|
Edit this page
View Source
Return SHA-256 of values as a compact JSON array, in unpadded standard Base64.
Declaration
public static string Hash(IEnumerable<string> values)
Parameters
Returns
|
Edit this page
View Source
Return the LiveKit identity of a call member, which /get_token hands out.
Declaration
public static string Identity(string userId, string deviceId, string memberId)
Parameters
| Type |
Name |
Description |
| string |
userId |
The member's verified Matrix user.
|
| string |
deviceId |
The device the member claims.
|
| string |
memberId |
The member's id in its membership event.
|
Returns
|
Edit this page
View Source
Return values as a compact JSON array, escaped as Rust's serde_json does: quote, backslash, the short control escapes, and other controls as lowercase \u00xx; everything else as is.
Declaration
public static string JsonArray(IEnumerable<string> values)
Parameters
Returns
|
Edit this page
View Source
Return the LiveKit identity of the legacy /sfu/get request, @user:server:DEVICE.
Declaration
public static string LegacyIdentity(string userId, string deviceId)
Parameters
Returns
|
Edit this page
View Source
Return the LiveKit identity of a member by its user and member id, which newer lk-jwt-service requests from homeservers hand out.
Declaration
public static string MemberIdentity(string userId, string memberId)
Parameters
Returns
|
Edit this page
View Source
Return the LiveKit room of slot slotId of Matrix room roomId.
Declaration
public static string RoomAlias(string roomId, string slotId)
Parameters
Returns