better_player_macos 1.9.0
better_player_macos: ^1.9.0 copied to clipboard
The macOS implementation of the better_player plugin, providing video playback using AVPlayer, AppKit, and FFI for Flutter desktop apps.
1.9.0 #
- Fixed: Video stutters when it resumes from Picture in Picture, and a video paused from the PiP controls can resume on its own. The stall check and
updatePlayingStateno longer forceplayImmediately(atRate:)while AVKit plays or buffers in PiP, andisPlayingnow follows the PiP play and pause controls (by @Marionetista). - Added:
FlutterFrameworkdependency toPackage.swiftfor Swift Package Manager support (by @hellohuanlin). - Updated: Bumped
better_player_platform_interfaceconstraint to^1.8.0to resolve constructor compatibility during dependency lower-bound analysis.
1.8.0 #
- Added:
getAudioTracksimplementation to query audible options on AVPlayer's current media asset. - Updated: Increased playback speed ceiling from
4.0to10.0insetSpeed.
1.7.0 #
- [BREAKING_CHANGE] Fixed: Resolved FairPlay key loading thread deadlocks by removing blocking
DispatchSemaphore, madeassetIdstrictly local per request to prevent race conditions, added thread-safe certificate caching with in-flight request deduplication, and scoped EZDRM URL path rewriting to EZDRM domains only. Non-EZDRM license servers now receive standard direct POST requests. - Fixed: CacheManager shared state race condition during concurrent pre-caching and dynamic maxCacheSize updates.
1.6.1 #
- Updated: Modernized
analysis_options.yamlto inherit root options and resolved static analysis lints.
1.6.0 #
- Added: Native AirPlay route picker (
AVRoutePickerView) andexternalPlaybackActiveKVO state stream. - Updated: Bumped
better_player_platform_interfacedependency to^1.7.0.
1.5.1 #
- Fixed: Dispatched KVO observer updates and asynchronous video track loading to the main thread, guarded invalid asset durations in
getVideoComposition, and kept observers attached after playback completion. - Fixed: Reset window screen capture protection (
sharingType = .readWrite) on plugin registration across hot restarts.
1.5.0 #
- Added: Screen capture and window recording protection via
NSWindow.sharingState. - Updated: Dependency
better_player_platform_interfaceto^1.6.0.
1.4.1 #
- Fixed: Forwarded HTTP headers from
DataSourceto native wrapper insetDataSourceto support authenticated network streams.
1.4.0 #
- Added: Native pre-cache progress reporting in
CacheManagerviaBetterPlayerPreCacheCallback. - Fixed: App crash on hot restart by using asynchronous listener callbacks (
implementAsListener), resetting the native log callback, safely extracting orphaned player IDs, and clearing callbacks before resource teardown (#1617).
1.3.0 #
- Fixed: Added fallback matching by displayName, language, and index in
setAudioTrackto support HLS audio tracks lacking common title metadata.
1.2.0 #
- Added:
setTextTrackmethod onBetterPlayerto select or disable legible media selection group tracks inAVPlayerItem(#1066). - Added:
AVPlayerItemLegibleOutputpush delegate andonCuescallback onBetterPlayerCallbackemitting parsed subtitle cues. - Fixed: Forwarded dynamic presentation size changes to Flutter to resolve black screen on HLS playback with delayed track resolution (#1595).
- Fixed: Prevented native KVO crash on disposal and hot restart by unregistering observers, clearing callbacks, and resetting player item (#1600).
1.1.1 #
- Added: Better Player logo screenshot and branding metadata for pub.dev package listing.
1.1.0 #
- Updated: Defaulted controls to desktop theme and synchronized with core player 1.22.0.
1.0.0 #
- Added: Initial release of
better_player_macoswith native AVPlayer playback,AppKitViewrendering, FFI bindings, and FairPlay DRM support.
