public Form1() { InitializeComponent(); ScrcpySrvSharp.Get().OnDeviceConnected += OnDeviceConnected; ScrcpySrvSharp.Get().OnImageArrived += OnImageReady; ScrcpySrvSharp.Get().RunServer(9090); }
void OnDeviceConnected(object sender, UsbDeviceEventArgs e) { ScrcpySrvSharp.Get().StartScrcpyServer(e); }