mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Don't send IceCandidate when UseWebRtc is false.
This commit is contained in:
parent
894c4300b1
commit
5a512b984e
@ -191,7 +191,12 @@ namespace Remotely.Server.Services
|
||||
}
|
||||
public Task SendIceCandidateToBrowser(string candidate, int sdpMlineIndex, string sdpMid, string viewerID)
|
||||
{
|
||||
return RCBrowserHub.Clients.Client(viewerID).SendAsync("ReceiveIceCandidate", candidate, sdpMlineIndex, sdpMid);
|
||||
if (AppConfig.UseWebRtc)
|
||||
{
|
||||
return RCBrowserHub.Clients.Client(viewerID).SendAsync("ReceiveIceCandidate", candidate, sdpMlineIndex, sdpMid);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task SendScreenCapture(byte[] captureBytes, string rcBrowserHubConnectionID, int left, int top, int width, int height, DateTime captureTime)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user