v1.46.0

Vanilagy/mediabunnyv1.46.0Jun 2, 2026by Vanilagy

AI Summary

Introduces options for custom hardware contexts and per-frame encoding settings, while improving error messages and clone performance for VideoSamples.

Key Highlights

  • Added `options` to `registerMediabunnyServer` for custom hardware context.
  • Added `VideoSample.encodeOptions` and `setEncodeOptions()` for per-frame settings.
  • Updated `keyFrame` encoding option precedence logic.
  • Improved `VideoSample.clone()` performance.

New Features

  • Custom hardware context configuration
  • Per-frame encoding options

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