Skip to main content

better_player_android 1.14.0 copy "better_player_android: ^1.14.0" to clipboard
better_player_android: ^1.14.0 copied to clipboard

PlatformAndroid

The Android implementation of the better_player plugin, providing high-performance video playback using ExoPlayer (Media3) and FFI for seamless integration in Flutter apps.

1.14.0 #

  • Fixed: Added ProGuard/R8 consumer rules (proguard-rules.pro) and @Keep annotations on JNI-accessed BetterPlayer members so release builds do not strip JNI bindings.
  • Fixed: Synchronized BetterPlayerCache operations, stopped deleting the cache directory while SimpleCache is open, and guarded preCache against 0-byte SimpleCache initialization when cache sizes are omitted or non-positive.
  • Fixed: Prevented notification NPE on Android API 24-25, ensured custom notification channels are created on API 26+, added unique per-player MediaSession IDs, detached old PlayerNotificationManager instances before creating new ones, and fixed ImageWorker cache file path and stream closing.
  • Fixed: Corrected setAndroidMatchFrameRate to call the generated matchFrameRate JNI setter instead of a nonexistent dynamic method.
  • Fixed: Released ExoPlayer and cleared its video surface before releasing Surface and SurfaceTextureEntry in dispose(), and guarded async JNI event callbacks after stream closure.
  • Fixed: Enabled Widevine multi-session DRM and configured HttpMediaDrmCallback with cross-protocol redirects and the resolved User-Agent.
  • Fixed: Enabled audio focus handling by default and forwarded onPlayWhenReadyChanged and onPositionDiscontinuity seek events from ExoPlayer to Flutter.

1.13.2 #

  • Fixed: Disposed native player instances when the Flutter engine detaches to prevent background audio leaks (by @SuperWes).

1.13.1 #

  • Fixed: Resolved audio tracks JSON getter access in FFI wrapper.
  • Updated: Bumped better_player_platform_interface constraint to ^1.8.0 to resolve constructor compatibility during dependency lower-bound analysis.

1.13.0 #

  • Added: getAudioTracks implementation to query audio tracks from Media3 trackSelector.currentMappedTrackInfo.
  • Fixed: Improved setAudioTrack matching logic to resolve multi-audio tracks by index and language when container tracks lack explicit labels.

1.12.0 #

  • Updated: Upgraded androidx.media3 to 1.11.1, androidx.lifecycle to 2.11.0, androidx.annotation to 1.11.0, and androidx.work:work-runtime to 2.12.0.

  • Updated: Removed legacy unused androidx.media:media dependency and imports.

  • Fixed: Pre-cache worker falsely reporting HTTP errors as completed downloads.

  • Fixed: Widevine DRM defaulting to L3 software security level when drmSecurityLevel is not specified.

1.11.0 #

  • Updated: Modernized analysis_options.yaml to inherit root options and resolved static analysis lints.

1.10.1 #

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

1.10.0 #

  • Added: Window screen capture and recording protection via Android FLAG_SECURE window flag.
  • Updated: Dependency better_player_platform_interface to ^1.6.0.

1.9.0 #

  • Added: Native pre-cache progress reporting in CacheWorker via BetterPlayerPreCacheCallback.

1.8.0 #

  • Added: setTextTrack method on BetterPlayer and TrackSelectionOverride on ExoPlayer text renderer for embedded closed captions (#1066).
  • Added: onCues callback on BetterPlayerCallback emitting decoded cues from Media3 CueGroup.

1.7.1 #

  • Added: Better Player logo screenshot and branding metadata for pub.dev package listing.

1.7.0 #

  • Fixed: Guarded getAbsolutePosition against unset timeline window start times (C.TIME_UNSET) and out-of-range epoch values on live streams (#1206, #1198) (by @RtypeStudios, @geriby23).
  • Fixed: Avoided enqueueing ImageWorker when notification imageUrl is empty and removed unused sendSeekToEvent method (#1041, #1135) (by @ptsekov).

1.6.1 #

  • Fixed: Resolved Android media notification tap intent via packageManager.getLaunchIntentForPackage by default and supported fully qualified activityName values (#1138).
  • Fixed: Supported file:// URIs and proper bitmap bounds sampling when loading local notification images in ImageWorker (#883).
  • Fixed: Restored sendBufferingUpdate emission during position polling and playback readiness so buffered progress updates on the seekbar.

1.6.0 #

  • Fixed: Resolved Android cache clearing failure and OutOfMemory bugs by properly delegating clearCache() to ExoPlayer's SimpleCache.removeResource().
  • Fixed: Blocked HLS pre-caching attempts. Pre-caching HLS streams natively caches only the playlist file (causing 0% progress bugs on Android).
  • Fixed: Added try-catch block to enterPictureInPictureMode to prevent crashes when the activity is not in a valid state for PiP.

1.5.0 #

  • Added: Configurable Android Auto Frame Rate (AFR) matching via ExoPlayer's setVideoChangeFrameRateStrategy.
  • Fixed: Resolved issue where video events were broadcast to all active players instead of the specific player instance by correctly capturing the texture ID.

1.4.0 #

  • Added: Supported RTSP streaming on Android via androidx.media3:media3-exoplayer-rtsp.

1.3.1 #

  • Updated: package metadata

1.3.0 #

  • [BREAKING_CHANGE] Updated: Upgraded androidx.media3 version from 1.1.1 to 1.11.0.
  • [BREAKING_CHANGE] Updated: Raised minSdkVersion to 24.
  • [BREAKING_CHANGE] Updated: Upgraded androidx.media:media to 1.7.0.
  • Fixed: Resolved MediaSession token resolution error (sessionCompatToken) introduced in the Media3 upgrade.
  • Added: Supported configurable drmSecurityLevel to enable Widevine L1 playback.

1.2.0 #

  • Added: Support for native-to-Dart log streaming (setupLogCallback) via JNI for ExoPlayer.
  • Added: Reintroduced example directory with documentation to the package.
  • Updated: Enhanced package description in pubspec.yaml for better discoverability.

1.1.0 #

  • Added: Migrated native bridge to JNI using jnigen for high-performance direct communication with the Android media engine.
  • Fixed: Memory leak in player disposal and optimized WorkManager threading for caching.

1.0.2 #

  • Docs: Updated model name references in example.md.

1.0.1 #

  • Add thin examples to platform packages and decoupled example app.

1.0.0 #

  • Updated: Extracted Android native code from the core package into a standalone federated plugin package (better_player_android).
  • Fixed: Added missing result.success(null) for setMixWithOthers method channel call.
0
likes
160
points
3.31k
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publisherhasoft.pl

Weekly Downloads

The Android implementation of the better_player plugin, providing high-performance video playback using ExoPlayer (Media3) and FFI for seamless integration in Flutter apps.

Repository (GitHub)
View/report issues

Topics

#video #video-player #android #exoplayer #media3

License

Apache-2.0 (license)

Dependencies

better_player_platform_interface, flutter, jni, jni_flutter

More

Packages that depend on better_player_android

Packages that implement better_player_android