Music Assistant 2.0: Your Music, Your Players

You are replying to a post that is 10 months old.

it no longer worked

What is “it”?

1 Like

The Music Assistant project listens to the community! As of 2.5.0beta11 the fifth most voted for feature ever, playing to the local device, has been added. Still early days in the feature set but its underway!

8 Likes

Hoooboy what a gamechanger! Finally i can play ALL my music in my car!

I am not sure if is gonna play outside of the LAN. He just said in the local device.

Edit: Looks like is outside too, awesome!

This PR adds a new, by default enabled, BuiltinPlayer provider for playing directly to the Music Assistant Frontend, enabling easy playback to the current device.
It replaces the need for opening SnapWeb on a separate tab and allows playback from outside the network.
For now, it's still marked as experimental, but core functionality is implemented.

Yes works fine in the car here. So not only locally. :heart_eyes:

2 Likes

It should work provided that your playback device has access to the streaming port of your Music Assistant server. If you have a VPN that lets you access that, then you ought to be golden.

1 Like

Hi,
I stumbled over Music Assistant and added it to my home assistant. It’s really great what I am missing though is an easy way to play songs on my mobile phone. I know this is probably something the companion app or/and home assistant itself would have to implement. I found a lot of people in forums asking for this feature. I asked in the discord channel of the companion app but they referred me to the home assistant people. Maybe you could find a way to push this issue :blush: I would truly appreciate.
Best regards,
Chris

1 Like

That’s not really true, though, right? I’m sure you’re aware of mobile apps like “Spotify”, “YouTube Music”, “Plex”, etc., etc. As there are obviously easy ways to play songs on your mobile phone, what is it you really are trying to achieve? Maybe elaborate on that point instead of oversimplifying to “no easy way to play songs on my mobile phone”.

Wow,
oversimplified answer. I had a look on those workarounds, but why not just having a local media player in the companion app.
Friendly greetings…

1 Like

@rulez & @mterry63 the 5 posts immediately before yours all mention this, read back to OzGav’s announcement.

Yes, thanks for the hint. Read this just after posting my question :wink: So it doesn’t seem to be so far off.

I just loaded it; it’s pretty nice. It’s more than your mobile phone for those reading, any web connection to Music Assistant can be a player now. Very slick Music Assistant team. It’s amazing how MA has progressed since version 2 initial release - kudos and well done! Keep it up!

1 Like

Just bear in mind that it’s in the very early stages and very experimental at this point.

Sure, I’ve been through the pains of running the MA betas for a while. All in all, it’s a win, though.

I have a menu on the left. how can I use music assistant on the right ? So I want to remove the spotify player and use MA instead.
Will it be workable that small ? (it is for use on a tablet)

Does anyone have any code that can parse the get library items call which returns yaml like this:

items:
  - media_type: playlist
    uri: library://playlist/21
    name: 500 Random tracks (from library)
    version: ""
    image: http://172.30.32.1:8095/imageproxy?path=logo.png&provider=builtin&size=0
  - media_type: playlist
    uri: library://playlist/18
    name: All favorited tracks
    version: ""
    image: http://172.30.32.1:8095/imageproxy?path=logo.png&provider=builtin&size=0
  - media_type: playlist
    uri: library://playlist/25
    name: chillout
    version: ""
    image: >-
      http://172.30.32.1:8095/imageproxy?path=/collage/fd3cf1c65751415a8f31e560cb613343_thumb.jpg&provider=builtin&size=0

I want to be able to parse the response and get the uri for an item based on the name.

In the first instance you can just use the name in the get_library action so only one item is returned?

I’m having problems with player groups.
When adding a playergroup provider I get the error: Command player_group/create is already registered

Then, adding a group player: invalid id provider given: player_group
What am I doing wrong? Thanks!

Indeed, I didnt realise that if I also use the search parameter I can narrow down the playlist to the one I want:

action: music_assistant.get_library
data:
  favorite: false
  limit: 5
  offset: 0
  album_artists_only: false
  config_entry_id: xyz
  media_type: playlist
  search: chillout

Returns:-

items:
  - media_type: playlist
    uri: library://playlist/25
    name: chillout
    version: ""
    image: >-
      http://172.30.32.1:8095/imageproxy?path=/collage/fd3cf1c65751415a8f31e560cb613343_thumb.jpg&provider=builtin&size=0
limit: 5
offset: 0
order_by: name
media_type: playlist

How do I then get the uri ?

Basically I want a script that I send a name to, to return in its return variable, the uri of the playlist. This is because sometimes the id’s of the playlists change but the names never will.

Is it possible to change the order of the items in the home screen ?
Is it possible to remove items in the home screen ? ( i don’t need to have artists, or I don’t have to browse items)