This update completely rewrote Mediabunny's reading stack, laying a necessary strong foundation for all use cases of Mediabunny.
UrlSourceis now no longer in beta! Use it to read media files across the network. It's now heavily optimized with batch loading and smart prefetch patterns to minimize request count and latency.- Added
FilePathSourcefor direct access to the native file system in server-side environments such as Node, Deno or Bun - Reading performance across all formats has been optimized. Mediabunny now spends less time waiting for I/O and parses all files faster!
StreamSource'sreadfunction is now allowed to return instances ofReadableStream- New
StreamSourceoptions:maxCacheSizeandprefetchBehavior BlobSourceandUrlSourcenow have amaxCacheSizeoption (defaulting to 8 MiB and 64 MiB respectively)- Fixed
VideoSampledimensions being wrong in some cases