我正在创建TCP
远程桌面广播应用程序。(类似于 Team Viewer 或 VNC)服务器应用程序将
1. run on a PC listening for multiple clients on one Thread
2. and on another thread it will record the desktop every second
3. and it will broadcast the desktop for each connected client.
我需要使这个应用程序能够在具有 12KBps 上传和 50KBps 下载 DSL 连接(客户端和服务器)的连接上运行。
所以..我必须减少每秒发送的数据/图像的大小。
我试图通过执行以下操作来减少。
I. first i send a Bitmap frame of the desktop and each other time i send only the difference of the previously sent frame.
II. the second way i tried was, each time i send a JPEG frame.
我未能成功发送 JPEG 帧,然后每次下一次发送之前发送的 JPEG 帧的差异。
当我传输位图的差异时,我尝试使用lzma
压缩(7zip SDK)。
但我未能将数据减少到 12KBps。我能够达到的最大值约为 50KBps。
有人可以建议我这样做的算法/程序吗?