Page 1 of 1
CD player
Posted: Sat Oct 04, 2025 8:40 pm
by alex124.rh
Hi, looking to complete my project, but the missing piece of OEM functionality is cds, i was wondering how possible it would be to get this working natively in hudiy as a music source along with a2dp and others in the source menu. A usb connected disc player would be great like this.
Thanks
https://www.amazon.co.uk/CYBERNOVA-Exte ... B00ZKMCLFA
Re: CD player
Posted: Sun Oct 05, 2025 2:32 pm
by hudiy
If you mean a regular data CD with MP3 files then the handling would be more or less the same as with a USB flash drive. The real question is whether Raspberry Pi OS can automatically mount the CD filesystem when the disc is inserted.
In case of an Audio CD, you'd first need to check how Raspberry Pi OS detects the medium and what kind of access to it is available from the filesystem level. It would probably also require some conversion to PCM format.
Re: CD player
Posted: Sun Oct 05, 2025 4:47 pm
by alex124.rh
Hi,
I know that usb drives with audio CDs work with vlc, what should i do next.
Thanks
Re: CD player
Posted: Mon Oct 06, 2025 10:50 am
by hudiy
If VLC supports playback from CDs, there might be a way to build your own CD-player interface in HTML/JavaScript that controls VLC. This would require reviewing VLC's documentation with that goal in mind.
Hudiy exposes an API for managing audio focus and sending notifications so using the API with HTML/JavaScript you can implement your own player with the VLC backend.
https://github.com/wiboma/hudiy/blob/ma ... cusDuck.py
https://github.com/wiboma/hudiy/blob/ma ... cusPlay.py
https://github.com/wiboma/hudiy/blob/ma ... ansient.py
https://github.com/wiboma/hudiy/blob/ma ... ication.py
Re: CD player
Posted: Mon Oct 06, 2025 11:41 am
by alex124.rh
Thanks that sounds promising. Could you explain a little more about how i would get it to look and feel like the rest of hudiys media controls. Thanks
Re: CD player
Posted: Mon Oct 06, 2025 1:28 pm
by hudiy
You can use the same Material Symbols Rounded icons
https://fonts.google.com/icons.
The WebView documentation also includes a list of the colors currently in use, so you can match the look to the Hudiy interface
https://github.com/wiboma/hudiy?tab=rea ... e#web-view.
You can also follow Flutter's guidelines
https://m3.material.io/styles/color/static/baseline
Re: CD player
Posted: Mon Oct 06, 2025 2:56 pm
by alex124.rh
how would i build the same ui layout, do you have a guideline for the layout?
would you consider making this a hudiy stock feature, it would be good so that as well as updating the cars features, we also dont lose any.
https://amzn.eu/d/7EmDfEK
Re: CD player
Posted: Tue Oct 07, 2025 12:37 pm
by alex124.rh
Ideally I would have it appear in the audio section where you can choose your audio source such as fm or BT.
https://github.com/wiboma/hudiy/blob/ma ... shot19.png
How can we achieve integration so it looks and behaves just like any other source. I understand the audio focus and stuff just don’t know how to approach the interface like this.