This isn't FULLY functional, but it's what I've made thus far... I'm still working on a Ice Disconnect somewhere at least for me - welcome to test.
This commit is contained in:
@@ -71,11 +71,10 @@ public static class RtcEndpoints
|
||||
return Results.Ok(await rtcCallService.GetAnswersAsync(channelId));
|
||||
});
|
||||
|
||||
//app.MapGet("/api/rtc/participants/{channelId}", (string channelId) => // TODO: UNCOMMENT AND ADD
|
||||
//{
|
||||
// var participants = RtcChannelPresenceService.GetUsernamesInChannel(channelId);
|
||||
// return Results.Ok(participants);
|
||||
//});
|
||||
app.MapGet("/api/rtc/participants/{channelId}", (string channelId) =>
|
||||
{
|
||||
return Results.Ok(RtcChannelPresenceService.GetUsersInChannel(channelId));
|
||||
});
|
||||
|
||||
// Return the latest answer stored for the specified channel.
|
||||
app.MapGet("/api/rtc/answer/{channelId}", async (string channelId, RtcCallService rtcCallService) =>
|
||||
|
||||
Reference in New Issue
Block a user