added todos

This commit is contained in:
2026-04-02 13:51:04 -04:00
parent c193061fe3
commit cb59cc4409
2 changed files with 3 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ public static class RtcEndpoints
app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) => app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) =>
{ {
await rtcCallService.WriteAnswerAsync(request.ChannelId, request.OfferUser, request.AnswerUser, request.Sdp); await rtcCallService.WriteAnswerAsync(request.ChannelId, request.OfferUser, request.AnswerUser, request.Sdp);
//TODO: Add call to clients already in call that a new answer has been made with answer details
return Results.Ok(); return Results.Ok();
}); });
@@ -45,6 +46,7 @@ public static class RtcEndpoints
request.SdpMLineIndex, request.SdpMLineIndex,
request.Direction request.Direction
); );
//TODO: Add call to clients already in call that a new ICE candidate has been made with ICE candidate details
return Results.Ok(); return Results.Ok();
}); });

View File

@@ -140,6 +140,7 @@ public sealed class RtcCallService
if (activeCall.OfferUser == username) if (activeCall.OfferUser == username)
{ {
//TODO: Fix to only make inactive if all users leave
activeCall.IsActive = false; activeCall.IsActive = false;
activeCall.UpdatedAt = DateTime.UtcNow; activeCall.UpdatedAt = DateTime.UtcNow;
await _db.Merge<RtcActiveCall, RtcActiveCall>(activeCall); await _db.Merge<RtcActiveCall, RtcActiveCall>(activeCall);