notification_media_session 0.2.3 copy "notification_media_session: ^0.2.3" to clipboard
notification_media_session: ^0.2.3 copied to clipboard

A cross-platform system media session bridge for Flutter players.

0.2.3 #

  • Handle Android notification dismissal without clearing the host playback queue or cancelling the snapshot subscription.
  • Restore the system media card when playback resumes after a user dismisses it.

0.2.2 #

  • Set spacedControls ([Previous, Spacer, Play/Pause, Spacer, Next]) as the default controls layout when controlsBuilder is omitted to fill the 5-slot Android notification grid evenly.
  • Add NotificationControls.spacer transparent placeholder control and NotificationControls.noopSpacerAction.
  • Add NotificationControls.spacedControls and NotificationControls.centeredControls layout generators.
  • Automatically filter transparent spacer controls from androidCompactActionIndices so Android compact view cleanly shows the 3 active playback buttons.
  • Add NotificationControls.favoriteControls for 4-button favorite-enabled layouts.

0.2.1 #

  • Make isFavorite optional in NotificationPlaybackSnapshot (defaults to false).
  • Provide a default no-op implementation for changeLike() in NotificationPlaybackGateway.
  • Add NotificationControls.standardControls(snapshot) for players that do not need a favorite action ([Previous, Play/Pause, Next]).

0.2.0 #

  • Add customizable controls support via NotificationControlsBuilder and NotificationSystemActionsBuilder in NotificationMediaSessionConfig.
  • Add NotificationControls helper class providing pre-built controls and NotificationControls.custom(...) factory.
  • Add custom action dispatch handling via NotificationPlaybackGateway.onCustomAction and NotificationMediaSessionConfig.onCustomAction.
  • Export MediaControl, MediaAction, MediaButton directly from notification_media_session.dart.
  • Depend on avplayer_audio_service: ^0.18.19+2 with bundled default drawable icon resources.
  • Add comprehensive unit tests.
  • Enhance documentation and usage guide in README.md.

0.1.2 #

  • Require avplayer_audio_service_win 0.0.3+3 or later to include the renamed public Windows C API header directory.

0.1.1 #

  • Require avplayer_audio_service_win 0.0.3+2 or later to include the renamed Windows CMake plugin target fix.

0.1.0 #

  • Initial extraction of the cross-platform notification and system media-session bridge.
  • Adds playback snapshots, host playback gateway, audio-handler synchronization, and an Android notification-permission gateway.
1
likes
110
points
197
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A cross-platform system media session bridge for Flutter players.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

avplayer_audio_service, avplayer_audio_service_win, flutter

More

Packages that depend on notification_media_session