making ice candidates write to DB properly
This commit is contained in:
@@ -71,7 +71,7 @@ public class ServerAPI
|
||||
return response.Headers.Location;
|
||||
}
|
||||
|
||||
public static async Task<Uri> PostIceCandidateAsync(IceCandidate candidate)
|
||||
public static async Task<Uri> PostIceCandidateAsync(DBIceCandidate candidate)
|
||||
{
|
||||
HttpResponseMessage response = await client.PostAsJsonAsync("api/rtc/candidate", candidate);
|
||||
response.EnsureSuccessStatusCode();
|
||||
@@ -127,8 +127,18 @@ public class DBOffer
|
||||
}
|
||||
public class IceCandidate
|
||||
{
|
||||
public string type { get; set; }
|
||||
public string sdp { get; set; }
|
||||
public required string candidate { get; set; }
|
||||
public required string sdpMid { get; set; }
|
||||
public required int sdpMLineIndex { get; set; }
|
||||
public required string usernameFragment { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class DBIceCandidate
|
||||
{
|
||||
public required string ChannelId { get; set; }
|
||||
public required string Username { get; set; }
|
||||
public required IceCandidate Candidate { get; set; }
|
||||
}
|
||||
|
||||
public class RtcLeave
|
||||
|
||||
Reference in New Issue
Block a user