Skip to content

1.1.0

Choose a tag to compare

@gfazioli gfazioli released this 27 May 15:02
· 12 commits to master since this release

✨ Features

Multiple sources

  • New sources prop 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) and media (a media query for resolution‑based selection).
  • New fallbackSrc prop (mirrors Mantine Image) is loaded once if every sources entry fails at runtime (404, decode error).
  • sources takes precedence over src when non‑empty; passing a single src keeps 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/hooks peer‑dependency floor to >=9.0.0 to 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

  • feat: support multiple elements + fallbackSrc by @gfazioli in #2

New Contributors

Full Changelog: 1.0.0...1.1.0