Class LiveKitIngressService
Service for managing media ingress (RTMP, WHIP, URL pull).
Provides methods for creating and managing ingress endpoints for bringing external media into LiveKit rooms. See LiveKit Ingress API Documentation for more information.
public sealed class LiveKitIngressService : TwirpClient, ILiveKitIngressService
- Inheritance
-
LiveKitIngressService
- Implements
- Inherited Members
Constructors
LiveKitIngressService(HttpClient, ILogger<LiveKitIngressService>, ILiveKitTokenService)
Initializes a new instance of the LiveKitIngressService class.
public LiveKitIngressService(HttpClient httpClient, ILogger<LiveKitIngressService> logger, ILiveKitTokenService _tokenService)
Parameters
httpClientHttpClientloggerILogger<LiveKitIngressService>_tokenServiceILiveKitTokenService
Methods
CreateIngressAsync(CreateIngressRequest, CancellationToken)
Creates a new ingress endpoint.
public Task<IngressInfo> CreateIngressAsync(CreateIngressRequest request, CancellationToken cancellationToken = default)
Parameters
requestCreateIngressRequestcancellationTokenCancellationToken
Returns
Exceptions
- LiveKitApiException
Thrown when the server returns a non-success HTTP status code.
DeleteIngressAsync(DeleteIngressRequest, CancellationToken)
Deletes an ingress endpoint.
public Task<IngressInfo> DeleteIngressAsync(DeleteIngressRequest request, CancellationToken cancellationToken = default)
Parameters
requestDeleteIngressRequestcancellationTokenCancellationToken
Returns
Exceptions
- LiveKitApiException
Thrown when the server returns a non-success HTTP status code.
ListIngressAsync(ListIngressRequest, CancellationToken)
Lists ingress endpoints.
public Task<ListIngressResponse> ListIngressAsync(ListIngressRequest request, CancellationToken cancellationToken = default)
Parameters
requestListIngressRequestcancellationTokenCancellationToken
Returns
Exceptions
- LiveKitApiException
Thrown when the server returns a non-success HTTP status code.
UpdateIngressAsync(UpdateIngressRequest, CancellationToken)
Updates an existing ingress. Ingress can only be updated when in ENDPOINT_WAITING state.
public Task<IngressInfo> UpdateIngressAsync(UpdateIngressRequest request, CancellationToken cancellationToken = default)
Parameters
requestUpdateIngressRequestcancellationTokenCancellationToken
Returns
Exceptions
- LiveKitApiException
Thrown when the server returns a non-success HTTP status code.