Add AudioSource media type for plugin sources#1786
Merged
Conversation
Mirror the server's new AudioSource MediaItem so plugin sources (Spotify Connect, AirPlay receiver, Snapcast, VBAN, …) surface as first-class browseable queue items. The player OSD honours the per-source capability flags and hides controls/views that don't apply.
Match the models-repo cleanup: those members don't fit the source-control contract — SELECT and VOLUME live on dedicated plugin hooks, STOP has no cross-plugin meaning.
PlayBtn no longer disappears when the active source lacks play/pause support — instead it swaps Pause for Stop while playback is running so the user always has a way to terminate. Triggered by AudioSource items without can_play_pause, source-list entries that don't advertise it, and radio streams.
github-actions Bot
pushed a commit
to music-assistant/server
that referenced
this pull request
May 23, 2026
Update music-assistant-frontend to version [2.17.162](https://github.com/music-assistant/frontend/releases/tag/2.17.162) - i18n: add 'inspired_by_recently_played' recommendations key (by @chrisuthe in [#1791](music-assistant/frontend#1791)) ## 🚀 Features and enhancements - Add AudioSource media type for plugin sources (by @marcelveldt in [#1786](music-assistant/frontend#1786)) ## 🐛 Bugfixes - Fix copy to clipboard (by @OzGav in [#1742](music-assistant/frontend#1742)) ## 🧰 Maintenance and dependency bumps - Chore(deps): Bump js-cookie from 3.0.5 to 3.0.7 (by @[dependabot[bot]](https://github.com/apps/dependabot) in [#1788](music-assistant/frontend#1788)) ## 🙇 Contributors @OzGav, @chrisuthe and @marcelveldt Co-authored-by: marcelveldt <6389780+marcelveldt@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the server's new
AudioSourceMediaItem so plugin sources (Spotify Connect, AirPlay receiver, Snapcast, VBAN, Yandex Ynison, …) surface as first-class browseable queue items instead of being injected into each player'ssource_list. The player OSD reads per-item capability flags (can_play_pause,can_seek,can_next_previous) so only the controls the source actually supports are rendered. Coordinates with the matching server PR; only fully functional once both ship.Changes
MediaType.AUDIO_SOURCEenum value, newAudioSourceinterface (capability flags +exclusive/allow_external_trigger),SourceControlenum, added toMediaItemTypeandPlayableMediaItemTypeunions.isAudioSourcetype guard inplugins/api/helpers.ts.useActiveAudioSourcecomposable, mirroringuseActiveSource.PlayBtn,NextBtn,PreviousBtn) hide viav-ifwhen the active AudioSource doesn't advertise the capability; existing disabled behaviour kept for non-AudioSource items.PlayerTimeline.canSeekdefers to the active AudioSource'scan_seekwhen present.Player.vuelets the timeline render for bothTRACKandAUDIO_SOURCE(seekability still gated bycanSeek).PlayerFullscreenhides the upcoming-tracks panel — andQueueBtnhides itself — when the active queue item is an AudioSource.Record<MediaType, …>stays exhaustive.audio_sourcetranslation key inen.json.isAudioSource.