diff --git a/RelayServer/Endpoints/RtcEndpoints.cs b/RelayServer/Endpoints/RtcEndpoints.cs index 8990147..0a74fc3 100644 --- a/RelayServer/Endpoints/RtcEndpoints.cs +++ b/RelayServer/Endpoints/RtcEndpoints.cs @@ -27,6 +27,7 @@ public static class RtcEndpoints app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) => { 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(); }); @@ -45,6 +46,7 @@ public static class RtcEndpoints request.SdpMLineIndex, 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(); }); diff --git a/RelayServer/Services/Rtc/RtcCallService.cs b/RelayServer/Services/Rtc/RtcCallService.cs index be10411..aa7aa28 100644 --- a/RelayServer/Services/Rtc/RtcCallService.cs +++ b/RelayServer/Services/Rtc/RtcCallService.cs @@ -140,6 +140,7 @@ public sealed class RtcCallService if (activeCall.OfferUser == username) { + //TODO: Fix to only make inactive if all users leave activeCall.IsActive = false; activeCall.UpdatedAt = DateTime.UtcNow; await _db.Merge(activeCall);