CALL WORKS, NEEDS TO HAVE LEAVE CALL SETUP AND HOTSWAP FIXED

This commit is contained in:
2026-04-08 22:29:29 -04:00
parent c03e5102fb
commit dad5de3d7f
6 changed files with 60 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
using RelayServer.Models.Rtc;
using System.Text.Json;
using RelayServer.Models.Rtc;
using RelayServer.Services.Rtc;
namespace RelayServer.Endpoints;
@@ -86,7 +87,6 @@ public static class RtcEndpoints
request.Candidate.candidate,
request.Candidate.sdpMid,
request.Candidate.sdpMLineIndex
// request.Candidate.direction
);
RtcNotificationService.BroadcastToChannel(new RtcNotificationMessage
@@ -94,7 +94,7 @@ public static class RtcEndpoints
Type = "rtc_candidate_added",
ChannelId = request.ChannelId,
Username = request.Username,
/*Direction = request.Direction*/
Direction = JsonSerializer.Serialize(request.Candidate)
});
return Results.Ok();