v1.46.0

magicuidesign/magicuiv1.46.0Jun 2, 2026by Vanilagy

AI Summary

Adds configuration options for media servers and enhances video encoding capabilities with per-frame settings and performance optimizations.

Key Highlights

  • Added `options` to `registerMediabunnyServer` for custom hardware context
  • Added `VideoSample.encodeOptions` for per-frame encoding settings
  • `keyFrame` now always takes precedence over `keyFrameInterval`
  • Improved error messages for insufficient canvas support
  • Improved `clone()` performance for `ArrayBuffer`-backed samples

New Features

  • Custom hardware context in `registerMediabunnyServer`
  • `VideoSample.encodeOptions` and `VideoSample.setEncodeOptions()`
  • Performance improvements for `VideoSample.clone()`

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