Class MatrixRtcAuthorizationClient
Asks a MatrixRTC authorization service, e.g. lk-jwt-service from a homeserver's rtc_foci, for LiveKit's URL and a token to join a call with.
Inherited Members
Namespace: Uniform.LiveKit
Assembly: Uniform.LiveKit.dll
Syntax
public sealed class MatrixRtcAuthorizationClient
Constructors
| Edit this page View SourceMatrixRtcAuthorizationClient(HttpClient, string)
Asks a MatrixRTC authorization service, e.g. lk-jwt-service from a homeserver's rtc_foci, for LiveKit's URL and a token to join a call with.
Declaration
public MatrixRtcAuthorizationClient(HttpClient http, string serviceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClient | http | The client of the requests. |
| string | serviceUrl | The service's base URL, |
Methods
| Edit this page View SourceGetLegacyAsync(LegacySfuRequest, CancellationToken)
Return the URL and token for request from the legacy /sfu/get, which older services only have.
Declaration
public Task<SfuResponse> GetLegacyAsync(LegacySfuRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| LegacySfuRequest | request | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<SfuResponse> |
GetTokenAsync(TokenRequest, CancellationToken)
Return the URL and token for request from /get_token.
Declaration
public Task<SfuResponse> GetTokenAsync(TokenRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TokenRequest | request | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<SfuResponse> |