making ice candidates write to DB properly
This commit is contained in:
@@ -78,15 +78,15 @@ public static class RtcEndpoints
|
||||
});
|
||||
|
||||
// Store a new ICE candidate for the specified channel call.
|
||||
app.MapPost("/api/rtc/candidate", async (RtcIceCandidate request, RtcCallService rtcCallService) =>
|
||||
app.MapPost("/api/rtc/candidate", async (DBIceCandidate request, RtcCallService rtcCallService) =>
|
||||
{
|
||||
await rtcCallService.WriteIceCandidateAsync(
|
||||
request.ChannelId,
|
||||
request.Username,
|
||||
request.Candidate,
|
||||
request.SdpMid,
|
||||
request.SdpMLineIndex,
|
||||
request.Direction
|
||||
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 = request.Direction*/
|
||||
});
|
||||
|
||||
return Results.Ok();
|
||||
|
||||
Reference in New Issue
Block a user