added todos
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user