-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roku integration fails to play FLAC files #119034
Comments
Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) roku documentation |
Unfortunately it doesn't look to be as simple as updating the supported formats/mimetypes lists to add FLAC. Unless I did it wrong, going into my home assistant install and updating the two files mentioned to support FLAC file types as music causes the "Play on Roku" to show up on my TV, but then it immediately exits. |
Play on Roku doesn't support FLAC, apparently: https://support.roku.com/article/208755108#section-2 |
Music Assistant only supports outputting in FLAC it looks like: https://music-assistant.io/faq/troubleshooting/ (ctrl+f FLAC) |
Also relevant: https://github.com/orgs/music-assistant/discussions/430 If Roku truly cannot play FLAC files, then it's up to Music Assistant to provide a different codec, if possible. Is there a way to play audio on Roku that's through the Media Player app rather than Play on Roku? It supports a much wider range of file types. |
I figured out how to get Music Assistant to send MP3 files to Home Assistant/the Roku integration, and confirmed it's getting MP3 files as the media id, and that there are no errors in HA logs, but Roku Play still immediately exits like before. I'm not sure how to debug this further. What should I do next? Thanks! |
Play on Roku was nerfed by Roku in the recent past. They claim security and implemented a different protocol for their mobile apps. HA integration hasn't been updated to support such (the feature has been removed from docs temporarily) but the intent is to try and reimplmwnt the new protocol or allow sending to specific app ID but it just hasn't been an item that I could get to yet. Ref #83819 |
Oh dang, that sucks. Thank you for the info, I didn't find that issue because I thought it was a codec problem. This is a duplicate then - I'll close it. |
Update: This turned out to be a duplicate of #83819.
The problem
I'm using Music Assistant to play music on my Roku TV.
I configured MA, and got my TV to show up as a device, but when I hit play nothing happens.
In HA logs, I see (full error below):
This looks to be due to FLAC not being in these lists: https://github.com/home-assistant/core/blob/dev/homeassistant/components/roku/media_player.py#L50, https://github.com/ctalkington/python-rokuecp/blob/c61440be3041a0cf1854f6d340b57b4dc096e53d/src/rokuecp/helpers.py#L13
I'm able to play FLAC files through the default media player app, so I think this should be possible. Thanks!
Edit: Maybe not, see comments.
What version of Home Assistant Core has the issue?
core-2024.6.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Roku
Link to integration documentation on our website
https://www.home-assistant.io/integrations/roku/
Diagnostics information
Diagnostic info (click to expand)
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: