Example #1
0
        public async Task SendScreenCapture(byte[] encodedImageBytes, int left, int top, int width, int height)
        {
            PendingSentFrames.Enqueue(DateTimeOffset.Now);

            await SendToViewer(() =>
            {
                RtcSession.SendCaptureFrame(left, top, width, height, encodedImageBytes, ImageQuality);
            }, async() =>
            {
                await CasterSocket.SendScreenCapture(encodedImageBytes, ViewerConnectionID, left, top, width, height, ImageQuality);
            });
        }
Example #2
0
 public async Task SendScreenCapture(byte[] encodedImageBytes, int left, int top, int width, int height)
 {
     await SendToViewer(() =>
     {
         RtcSession.SendCaptureFrame(left, top, width, height, encodedImageBytes, ImageQuality);
         WebSocketBuffer = 0;
     }, async() =>
     {
         await CasterSocket.SendScreenCapture(encodedImageBytes, ViewerConnectionID, left, top, width, height, ImageQuality);
         WebSocketBuffer += encodedImageBytes.Length;
     });
 }