Compare commits

...

2 Commits

Author SHA1 Message Date
65eb163482 fixed params in function call 2026-04-02 13:59:06 -04:00
6d9c3c9a40 additional TODOs 2026-04-02 13:58:51 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ async function ensurePeerConnection2()
});
}
async function channelCallJoin(activeCall, channelId)
async function channelCallJoin(activeCall)
{
await ensurePeerConnection2();

View File

@@ -17,11 +17,12 @@ public static class RtcEndpoints
await rtcCallService.WriteOfferAsync(request.ChannelId, request.Username, request.Sdp);
return Results.Ok();
});
//TODO: Add call for if channelId has active call returning boolean value
app.MapGet("/api/rtc/offer/{channelId}", async (string channelId, RtcCallService rtcCallService) =>
{
var offer = await rtcCallService.GetOfferAsync(channelId);
return offer is null ? Results.NotFound() : Results.Ok(offer);
//TODO: Needs to include offer data as JSON
});
app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) =>