mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
31 lines
1008 B
C#
31 lines
1008 B
C#
using Remotely.ScreenCast.Core;
|
|
using Remotely.ScreenCast.Core.Capture;
|
|
using Remotely.ScreenCast.Core.Interfaces;
|
|
using Remotely.ScreenCast.Core.Services;
|
|
using Remotely.ScreenCast.Linux.Capture;
|
|
using Remotely.Shared.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remotely.ScreenCast.Linux.Services
|
|
{
|
|
public class LinuxScreenCaster : ScreenCasterBase, IScreenCaster
|
|
{
|
|
public async Task BeginScreenCasting(ScreenCastRequest screenCastRequest)
|
|
{
|
|
try
|
|
{
|
|
await Conductor.Current.CasterSocket.SendCursorChange(new CursorInfo(null, Point.Empty, "default"), new List<string>() { screenCastRequest.ViewerID });
|
|
_ = BeginScreenCasting(screenCastRequest.ViewerID, screenCastRequest.RequesterName, new X11Capture());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Logger.Write(ex);
|
|
}
|
|
}
|
|
}
|
|
}
|