# host/screen_agent.py mss>=9 # Windows / macOS / X11 擷取 Pillow>=10 # JPEG 編碼 numpy>=1.24 # 與 aiortc 的 PyAV 一起用在 Windows/macOS/X11 的 H.264 編碼(沒有就只走 JPEG) websockets>=14 # 14 起 websockets.connect 是新的 asyncio 實作(additional_headers:agent 把 token 放在標頭而不是網址) jeepney>=0.8; sys_platform == "linux" # GNOME Wayland:xdg-desktop-portal(D-Bus) dxcam>=0.0.5; sys_platform == "win32" # Windows:DXGI Desktop Duplication 抓圖(比 mss 的 GDI 快好幾倍;沒有或起不來就退回 mss) pyserial>=3.5 # 找插在這台電腦上的 dongle(USB 通道);agent 靠它向 dongle 查位址,沒裝就連不上 aiortc>=1.9 # WebRTC:網頁選了 WebRTC 時畫面由 agent 直接傳給瀏覽器(不經 dongle)。體積大(含 PyAV、cryptography),安裝要一些時間