v1.46.0
nats-io/nats-serverv1.46.0Jun 2, 2026by Vanilagy
AI Summary
Adds configuration options for server registration and introduces per-frame encoding settings for video samples.
Key Highlights
- Added `options` to `registerMediabunnyServer` for custom hardware context
- Added `VideoSample.encodeOptions` for per-frame encoding settings
- `keyFrame` encoding option now takes precedence over `keyFrameInterval`
- Improved `VideoSample.clone()` performance for ArrayBuffer-backed samples
New Features
- Custom hardware context specification
- Per-frame encoding settings
Full Release Notes
- Added `options` to `registerMediabunnyServer`, allowing you to specify a custom hardware context (#389) - Added `VideoSample.encodeOptions` and `VideoSample.setEncodeOptions()` for providing per-frame encoding settings - `keyFrame` encoding option now always takes precedence over `keyFrameInterval` when defined - Improved VideoSample error messages when the environment has insufficient canvas support - Improved `VideoSample.clone()` performance for `ArrayBuffer`-backed samples