notification_media_session 0.2.3
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 whencontrolsBuilderis omitted to fill the 5-slot Android notification grid evenly. - Add
NotificationControls.spacertransparent placeholder control andNotificationControls.noopSpacerAction. - Add
NotificationControls.spacedControlsandNotificationControls.centeredControlslayout generators. - Automatically filter transparent spacer controls from
androidCompactActionIndicesso Android compact view cleanly shows the 3 active playback buttons. - Add
NotificationControls.favoriteControlsfor 4-button favorite-enabled layouts.
0.2.1 #
- Make
isFavoriteoptional inNotificationPlaybackSnapshot(defaults tofalse). - Provide a default no-op implementation for
changeLike()inNotificationPlaybackGateway. - 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
NotificationControlsBuilderandNotificationSystemActionsBuilderinNotificationMediaSessionConfig. - Add
NotificationControlshelper class providing pre-built controls andNotificationControls.custom(...)factory. - Add custom action dispatch handling via
NotificationPlaybackGateway.onCustomActionandNotificationMediaSessionConfig.onCustomAction. - Export
MediaControl,MediaAction,MediaButtondirectly fromnotification_media_session.dart. - Depend on
avplayer_audio_service: ^0.18.19+2with bundled default drawable icon resources. - Add comprehensive unit tests.
- Enhance documentation and usage guide in
README.md.
0.1.2 #
- Require
avplayer_audio_service_win0.0.3+3 or later to include the renamed public Windows C API header directory.
0.1.1 #
- Require
avplayer_audio_service_win0.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.