better_player_windows 1.5.1
better_player_windows: ^1.5.1 copied to clipboard
The Windows implementation of the better_player plugin, providing video playback using libmpv and FFI for Flutter desktop apps.
1.5.1 #
- Updated: Bumped
better_player_platform_interfaceconstraint to^1.8.0for consistency across platform packages.
1.5.0 #
- Added:
getAudioTracksimplementation to query container and stream audio tracks from mpvtrack-list. - Updated: Increased playback speed ceiling from
4.0to10.0insetSpeed.
1.4.2 #
- Updated: Modernized
analysis_options.yamlto inherit root options and resolved static analysis lints.
1.4.1 #
- Fixed: Restricted
MpvEventId.endFilecompletion events toMpvEndFileReason.eof, restarted playback from0.0whenplay()is called after EOF, and preserved position ontime-posproperty query errors. - Fixed: Queried native video display dimensions (
dwidth/dheight) inCopyPixelBufferto avoid black frames prior to first decode and unnecessary CPU scaling. - Fixed: Eliminated deadlocks during
dispose,clear, and plugin destruction by releasing mutex prior to tearing down player instances. - Fixed: Guarded zero or negative video frame dimensions in
CopyPixelBufferto prevent allocating temporary frame buffers before first frame presentation. - Fixed: Awaited pending native player cleanup during startup in
create()to prevent race conditions with newly initialized players. - Fixed: Removed Linux shared library lookup candidates from Windows
mpv_ffibindings.
1.4.0 #
- Added: Window screen capture protection via Win32
SetWindowDisplayAffinity(WDA_EXCLUDEFROMCAPTURE). - Updated: Dependency
better_player_platform_interfaceto^1.6.0.
1.3.0 #
- Fixed: Resolved deadlocks during
TextureBridge::Dispose()by unregistering textures outside mutex lock. - Fixed: Enabled hardware video decoding (
hwdec=auto-safe) in mpv initialization. - Fixed: Resolved orphan player leaks across hot restarts by clearing native players on plugin startup.
- Fixed: Added ClearKey DRM playback support via mpv
decryption_key. - Fixed: Quoted HTTP headers containing commas to prevent incorrect mpv header field splitting.
- Fixed: Supported
bufferingConfigurationby configuringdemuxer-readahead-secsanddemuxer-cache-wait. - Fixed: Respected
overriddenDurationwhen loading data sources and on property updates. - Fixed: Resolved video, audio, and subtitle track selection by matching IDs in
track-list. - Fixed: Resolved local asset path resolution for packaged Flutter desktop executables.
1.2.1 #
- Fixed: Aligned
BetterPlayerWindows.preCachemethod signature withBetterPlayerPlatforminbetter_player_platform_interface1.5.0. - Updated: Bumped
better_player_platform_interfacedependency to^1.5.0.
1.2.0 #
- Fixed: Added disposal state guards across player methods and mpv FFI invocations to prevent invalid pointer access after disposal.
- Fixed: Corrected audio track indexing to map 0-based index to 1-based
aidproperty and disable audio with'no'. - Fixed: Added
hls-bitrateproperty configuration insetTrackParameters. - Fixed: Added
seekandbufferingUpdate(fromdemuxer-cache-time) event emissions and use display dimensionsdwidth/dheightfor video sizing. - Fixed: Cleared mpv render update callback prior to freeing render context in
TextureBridgeto avoid native callback race conditions during shutdown.
1.1.0 #
- Added:
setTextTrackmethod onMpvPlayerto select or disable subtitle and closed caption tracks via mpvsidproperty (#1066). - Added:
sub-textproperty observer emittingcaptionUpdateevents with active subtitle lines.
1.0.1 #
- Added: Better Player logo screenshot and branding metadata for pub.dev package listing.
1.0.0 #
- Added: Initial release of
better_player_windowswith nativelibmpvplayback, pixel buffer texture rendering, FFI bindings, native logging, and HLS/DASH support.
