mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Sort members.
This commit is contained in:
parent
09a9000748
commit
fc628a3cab
@ -313,6 +313,33 @@ namespace Remotely.Desktop.Core.Services
|
||||
TimeSpan.MaxValue);
|
||||
}
|
||||
|
||||
public void ToggleWebRtcVideo(bool toggleOn)
|
||||
{
|
||||
RtcSession.ToggleWebRtcVideo(toggleOn);
|
||||
}
|
||||
|
||||
private async void AudioCapturer_AudioSampleReady(object sender, byte[] sample)
|
||||
{
|
||||
await SendAudioSample(sample);
|
||||
}
|
||||
|
||||
private async void ClipboardService_ClipboardTextChanged(object sender, string clipboardText)
|
||||
{
|
||||
await SendClipboardText(clipboardText);
|
||||
}
|
||||
|
||||
private Task SendToViewer(Func<Task> webRtcSend, Func<Task> websocketSend)
|
||||
{
|
||||
if (IsUsingWebRtc)
|
||||
{
|
||||
return webRtcSend();
|
||||
}
|
||||
else
|
||||
{
|
||||
return websocketSend();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateImageQuality()
|
||||
{
|
||||
if (AutoAdjustQuality && DateTimeOffset.Now - _lastQualityAdjustment > TimeSpan.FromSeconds(2))
|
||||
@ -330,29 +357,5 @@ namespace Remotely.Desktop.Core.Services
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ToggleWebRtcVideo(bool toggleOn)
|
||||
{
|
||||
RtcSession.ToggleWebRtcVideo(toggleOn);
|
||||
}
|
||||
private async void AudioCapturer_AudioSampleReady(object sender, byte[] sample)
|
||||
{
|
||||
await SendAudioSample(sample);
|
||||
}
|
||||
private async void ClipboardService_ClipboardTextChanged(object sender, string clipboardText)
|
||||
{
|
||||
await SendClipboardText(clipboardText);
|
||||
}
|
||||
private Task SendToViewer(Func<Task> webRtcSend, Func<Task> websocketSend)
|
||||
{
|
||||
if (IsUsingWebRtc)
|
||||
{
|
||||
return webRtcSend();
|
||||
}
|
||||
else
|
||||
{
|
||||
return websocketSend();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user