1.1.0
✨ Features
Multiple sources
- New
sourcesprop accepts an array of{ src, type?, media? }entries, rendered as native<source>children so the browser plays the first format it can decode — the standard cross‑browser / adaptive‑delivery mechanism (e.g. VP9/WebM with an H.264/MP4 fallback). - Each entry supports an optional
type(MIME, lets the browser skip formats it can't decode) andmedia(a media query for resolution‑based selection). - New
fallbackSrcprop (mirrors MantineImage) is loaded once if everysourcesentry fails at runtime (404, decode error). sourcestakes precedence oversrcwhen non‑empty; passing a singlesrckeeps working exactly as before.
⚡ Improvements
— none in this release.
🐛 Bug Fixes
— none in this release.
💥 Breaking changes
— none. sources / fallbackSrc are additive; existing src usage is unchanged.
🛠️ Other
- Raised the
@mantine/core/@mantine/hookspeer‑dependency floor to>=9.0.0to match the Mantine 9 baseline. - Added a self‑hosted
manta.webm(VP9) sample alongside the existing MP4 so the new “Multiple sources” demo shows real codec negotiation.
📝 Summary
@gfazioli/mantine-video v1.1.0 adds first‑class support for multiple media sources. Pass a sources array to ship several formats/codecs and let the browser pick the first it can play (each entry takes an optional type and media), with fallbackSrc loaded if every source fails at runtime — the same pattern Mantine Image uses. Single‑src usage is unaffected.
What's Changed
New Contributors
Full Changelog: 1.0.0...1.1.0