flutter_media_session 2.1.0-pre.1
flutter_media_session: ^2.1.0-pre.1 copied to clipboard
Sync media metadata and playback state with system controls on Android, iOS, macOS, Windows, and Web.
2.1.0-pre.1 #
- Android Custom Media Actions: Added support for adding custom buttons (like "Like", "Shuffle") to the system notification and lock screen controls via Media3.
- Extended
MediaActionto support custom labels and Android drawable resources. - Improved Android
MediaSessionServiceto dynamically update custom layout commands. - Security: Implemented robust input validation and size-limited caching for custom action parameters and controller commands.
- Extended
- Audio Focus Management: Added
setHandlesInterruptions(bool)to opt-in to automatic audio focus handling on Android. This allows the plugin to automatically pause/resume playback during calls or other audio interruptions. - iOS & macOS Support: Added full support for Darwin platforms using
MPNowPlayingInfoCenterandMPRemoteCommandCenter. - Windows Improvements:
- Resolved the "Unknown Application" issue in system media controls using dynamic AppUserModelID (AUMID) registration and Start Menu shortcut creation.
- Improved COM lifecycle management and path traversal security in Windows implementation.
- Fixes & Improvements:
- Android: Exposed playback state via accessor for better integration with custom services (PR #16).
- Example: Fixed a
Sliderrendering assertion failure when durations were zero or negative. - Web: Improved
updateAvailableActionsparity.
- Updated documentation and example app to demonstrate new platform features.
2.0.0 #
- Added
updateAvailableActionsAPI to dynamically toggle system media controls (Play, Pause, Skip, Seek, etc.). - Improved Web Media Session playback buffering and synchronized seeking logic.
- Fixed Android and Windows media progress bar synchronization, with advanced position extrapolation.
- Enhanced debounced seeking strategy across all platforms.
- Improved documentation and fixed cross-platform link consistency.
1.0.0 #
- Initial release of
flutter_media_session. - Support for Android (Media3), Windows (SMTC), and Web (Media Session API).
- Synchronize track metadata (title, artist, album, artwork).
- Synchronize playback states (playing, paused, position, speed).
- Receive media actions (play, pause, next, previous) from system controls.