Skip to content

Adds asset artwork support and notification options#4

Merged
RedC4ke merged 8 commits into
mainfrom
v0.2.0-beta.4
May 28, 2026
Merged

Adds asset artwork support and notification options#4
RedC4ke merged 8 commits into
mainfrom
v0.2.0-beta.4

Conversation

@RedC4ke

@RedC4ke RedC4ke commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Improves audio artwork handling and playback control:

Features

  • Asset Artwork Support: Introduces asset:/// URI scheme for audio item artwork. Bundled Flutter assets are automatically extracted to the cache directory, enabling their use in system notifications, Android Auto (via content:// URIs through a new native provider), and Apple CarPlay (by stripping to bare asset paths).
  • Android Notification Control: Adds an androidNotificationOngoing option to MtAudioPlayerConfig, allowing control over whether the Android notification is dismissible when paused (defaults to false).
  • Playback Cleanup: Implements an onTaskRemoved handler to stop playback when the app is swiped away on Android.

Enhancements

  • Artwork Widget: The MtArtwork widget now robustly supports asset:// and file:// URI schemes alongside network URIs. It features resolution-aware image caching and gaplessPlayback for smoother transitions.
  • Queue Controls: Skip previous/next controls are now intelligently hidden in both system notifications and the MtTrackSkipButton widget when the playback queue contains only a single item, improving user experience for single-track or live stream scenarios.

RedC4ke and others added 6 commits February 27, 2026 16:48
Adds a native ContentProvider and updates the asset resolver to serve artwork via `content://` URIs. This allows Android Auto to access cached assets from the app's private directory, which is normally restricted to the app's own process.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Feat: Add asset artwork URI support and Android Auto integration
@RedC4ke RedC4ke self-assigned this May 28, 2026
@RedC4ke RedC4ke added the enhancement New feature or request label May 28, 2026
RedC4ke added 2 commits May 28, 2026 12:57
Updates the asset artwork caching mechanism to perform a full byte comparison, preventing stale artwork from persisting when an asset is updated but its file size remains unchanged.

Adds a detailed debug message to guide developers when the MtAudioPlugin is not registered. This explains why Android Auto may fail to display artwork (due to reliance on cross-process inaccessible file:// URIs) and suggests a resolution.
@RedC4ke RedC4ke merged commit c55e232 into main May 28, 2026
1 check passed
@RedC4ke RedC4ke deleted the v0.2.0-beta.4 branch May 28, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant