home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

media_player does not play a playlist #121487

Open donburch888 opened 2 months ago

donburch888 commented 2 months ago

The problem

Using the built-in HA media_player, selecting a MP3 file from the Media sidebar – it plays on my RasPi satellite as intended. Selecting a .M3U playlist from the same folder nothing plays.

Same behaviour using Developer Tools. image and I hear the music play :-)

However when selecting a .M3U playlist file in the same folder, despite the green tick, no music plays. image

I have not found any error at the time this occurs in any of the HA Logs.


I have placed files in the local HAOS /media/ folder, and checked that the playlist file contains correct filenames in the same folder. image

#EXTM3U
#EXTINF:261,Il Volo - Il Mondo
01-Il Mondo.mp3
#EXTINF:220,Il Volo - 'O Sole Mio
02-'O Sole Mio.mp3
#EXTINF:243,Il Volo - Surrender (Torna A Surriento)
03-Surrender (Torna A Surriento).mp3
#EXTINF:292,Il Volo - Smile
04-Smile.mp3

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

media_player

Link to integration documentation on our website

https://www.home-assistant.io/integrations/media_player/

Diagnostics information

No response

Example YAML snippet

service: media_player.play_media
target:
  entity_id: media_player.kitchenspeaker
data:
  media_content_id: media-source://media_source/local/Il Volo/The Best of 10 Years.m3u
  media_content_type: playlist

Anything in the logs that might be useful for us?

No response

Additional information

I have uninstalled Music Assistant to check that wasn't the cause.

I have tried with MPD and with squeezelite on my RasPi client, with same result, so I assume problem is not at the client end.

home-assistant[bot] commented 2 months ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (media_player) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `media_player` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign media_player` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


media_player documentation media_player source (message by IssueLinks)

donburch888 commented 1 month ago

Is this because the entries in the playlist are simple local filenames (on the HA server) - but on the client they each need to be translated to URLs ?

Same behaviour with MPD or squeezelite on the RasPi satellite.