mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 00:14:10 +00:00
79e763a04d
MJPEG costs several megabits a second for a camera, where H.264 needs
well under one. With the `camera_h264` extension set to true the device
offers H.264 at the four sizes ahead of the four MJPEG ones, so the
server can pick either. The callback's start message now carries the
format the server started: `{ type: 'start', width, height, fps, format
}` with `format` "h264" or "mjpeg".
Every H.264 picture but a key frame depends on the ones before it, so a
dropped frame spoils the picture until the next key frame. A held H.264
frame therefore queues behind any other held frame (at most 30, beyond
which the queue is dropped with a warning), where an MJPEG frame still
replaces the held one. `camera_sample` now returns true when a frame
went out and none is left held. JS asks `camera_wanted` through
`invokeExtension` before it encodes an H.264 frame: it returns the
Sample Requests no held frame answers, plus one, so a frame waits ready
for the server's next request. The server asks for one sample at a time,
so a frame encoded only on request would add the encode and the wait for
the next captured frame to every round trip.
`iron-remote-desktop-rdp` exports `cameraH264` and `cameraWanted`, and
its README documents the format field and the queue. Follows #2463, the
MJPEG camera; together they are the camera item of #2425. It also
carries the three polish items of #2463's third review round, which
landed after the merge: the spelled-out `StreamDescription` in
`offers_one_color_stream`, the INVARIANT on the held frames, and the
reason the uplink frames bytes written on `CameraUplink`.
IronRDP Web Client
IronRDP also supports the web browser as a first class target.
Prerequisites
- Node.js >= 24 LTS (type definitions target
@types/node^24.0.0)
Overview
See the iron-remote-desktop for the reusable Web Component, and iron-svelte-client for a demonstration.
Note that the demonstration client is not intended to be used in production as-is. Devolutions is shipping well-integrated, production-ready IronRDP web clients as part of:
- Devolutions Gateway’s Standalone Web Interface which is a completely free product (shipped since v2024.1.0).
- Devolutions Server, our self-hosted credential manager.
- Devolutions Hub, our cloud-based credential manager.