Skip to content

1.10.0

Choose a tag to compare

@farid023 farid023 released this 15 Oct 06:26
· 16 commits to master since this release
426ea2a

Fractional video bitrates (#22). videoBitrateInMbps now accepts
values such as 1.5 in Video, compressVideos and
getCompressionEstimate, on Android, iOS and macOS. Integer values work
as before. The value is validated: it must be finite and greater than 0,
since a non-finite value could otherwise crash the app on iOS and macOS.
Thanks @khlebobul (#24).

macOS 27: compressVideo always failed with INVALID_ARGS. A Dart
null argument arrives in Swift as NSNull. On the OS 27 runtimes,
NSNull as? Int? no longer yields .some(nil), so the macOS plugin's
argument bindings failed and every single-video compression was rejected
before it started. Already-built apps were affected too, because this is a
runtime change. Optional arguments are now read in a way that behaves the
same on old and new runtimes. Batch compression, iOS and Android were not
affected.

Verified on macOS 27 (full integration suite, 41/41), the iOS 27
simulator and an Android 16 emulator, including a new integration test
that checks a fractional bitrate actually reaches the encoder.

Full changes: #24, #25.