Skip to content

1.31.0

Choose a tag to compare

@jhomlala jhomlala released this 01 Nov 15:32
· 32 commits to master since this release
fd6dd05

better_player_android

1.10.1

  • Fixed: Synchronized BetterPlayerApi.activity during activity configuration changes and removed duplicated screen capture protection logic.

better_player_ios

1.10.1

  • Fixed: Kept KVO and legible output observers attached on playback completion and updated isPlaying state so replay and post-completion seeks remain functional.
  • Fixed: Implemented secure screen capture and recording protection on window layer using UITextField.isSecureTextEntry hierarchy.
  • Fixed: Ensured screen capture protection is disabled on plugin cleanup.
  • Fixed: Resolved black screen on iOS Simulator by returning stable FlutterPlatformView instances per platform view ID, skipping AVMutableVideoComposition for unrotated videos, and resolving video track dimensions before presentation size checks (#1632).
  • Fixed: App crash on hot restart by using asynchronous listener callbacks (implementAsListener), dispatching KVO observer updates to the main thread, tracking observedItem for observer removal, and cleaning up orphaned native players on initialization (#1632).

better_player_macos

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.

better_player_windows

1.4.1

  • Fixed: Restricted MpvEventId.endFile completion events to MpvEndFileReason.eof, restarted playback from 0.0 when play() is called after EOF, and preserved position on time-pos property query errors.
  • Fixed: Queried native video display dimensions (dwidth/dheight) in CopyPixelBuffer to 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 CopyPixelBuffer to 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_ffi bindings.

better_player_linux

1.0.1

  • Fixed: Restricted MpvEventId.endFile completion events to MpvEndFileReason.eof, restarted playback from 0.0 when play() is called after EOF, and preserved position on time-pos property query errors.
  • Fixed: Normalized local file URLs with toFilePath() to prevent invalid file paths on Linux.
  • Fixed: Guarded zero or negative video frame dimensions in CopyPixels to 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.

better_player

1.31.0

  • Added: End-to-end seek tests across Windows, Linux, macOS integration tests, Playwright (Web), and Maestro (iOS & Android).
  • Added: Unit test coverage for PlayerPoolLease eviction listeners, release callbacks, and lifecycle states.
  • Fixed: Resolved preload-to-active race condition, busy slot eviction, and uninitialized engine state errors in BetterPlayerPool and BetterPlayerFeedController.
  • Fixed: Triggered deferred autoplay on initialization, cleared evicted lease notifiers, and preserved external PageController lifecycle in BetterPlayerFeedController.
  • Fixed: Cleaned up pooled controller listeners on feed index changes and page disposal in E2E feed tests.
  • Fixed: Corrected feed controller snippet syntax in documentation.
  • Fixed: Prevented seek echo loop in PlayerEngineController on platform seek events.
  • Fixed: Added retry backoff to ASMS playlist downloads in PlayerAsmsUtils to handle transient network drops.
  • Updated: Bumped federated sub-packages: better_player_android to ^1.10.1, better_player_ios to ^1.10.1, better_player_macos to ^1.5.1, better_player_windows to ^1.4.1, and better_player_linux to ^1.0.1.