fixeded the hardcoded values AGAIN
This commit is contained in:
@@ -47,15 +47,17 @@ public static class RtcEndpoints
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Store a new SDP answer for the specified channel call.
|
// Store a new SDP answer for the specified channel call.
|
||||||
app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) =>
|
app.MapPost("/api/rtc/answer", async (RtcOffer request, RtcCallService rtcCallService) =>
|
||||||
{
|
{
|
||||||
await rtcCallService.WriteAnswerAsync(
|
await rtcCallService.WriteAnswerAsync(request.ChannelId, request.SessionDescription);
|
||||||
request.ChannelId,
|
//DON'T FUCKING HARDCODE STRINGS INTO API REQUESTS
|
||||||
new RtcSessionDescription
|
// await rtcCallService.WriteAnswerAsync(
|
||||||
{
|
// request.ChannelId,
|
||||||
Type = "answer",
|
// new RtcSessionDescription
|
||||||
Sdp = request.Sdp
|
// {
|
||||||
});
|
// Type = "answer",
|
||||||
|
// Sdp = request.Sdp
|
||||||
|
// });
|
||||||
|
|
||||||
RtcNotificationService.Broadcast(new RtcNotificationMessage
|
RtcNotificationService.Broadcast(new RtcNotificationMessage
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user