07-04-2020, 12:16 PM
(This post was last modified: 07-04-2020, 02:25 PM by TheOldPresbyope.
Edit Reason: amended the final paragraph
)
@SoundAdikt
I'm not sure I understand your question. What does "in a Moode compliant way so that the Moode UI knows this is station is playing" mean?
Do you mean so that it displays the station name and logo? Then the URL you pass to mpc literally must be one that is already defined in the RADIO library (which means in a .pls file, in the collection of logo files, and in a corresponding entry in the moode-sqlite3.db database)
Let's take Zen FM as an example. Its entry in the moOde RADIO library contains the stream URL http://lb.zenfm.be/zenfm.mp3
The following triplet of mpc commands clears the queue, adds the Zen FM URL as the first entry and starts the stream playing. The moOde UI shows the Zen FM logo, name, and misc stuff because of the info in the library.
Here's another URL to the Zen FM stream which I just found in the latest .m3u file from the station website: http://str.topradio.be:80/zenfm.mp3. This stream also can be added and played but no station logo or name is displayed. Name and other info may be displayed if the station includes metadata in its stream.
Regards,
Kent
I'm not sure I understand your question. What does "in a Moode compliant way so that the Moode UI knows this is station is playing" mean?
Do you mean so that it displays the station name and logo? Then the URL you pass to mpc literally must be one that is already defined in the RADIO library (which means in a .pls file, in the collection of logo files, and in a corresponding entry in the moode-sqlite3.db database)
Let's take Zen FM as an example. Its entry in the moOde RADIO library contains the stream URL http://lb.zenfm.be/zenfm.mp3
The following triplet of mpc commands clears the queue, adds the Zen FM URL as the first entry and starts the stream playing. The moOde UI shows the Zen FM logo, name, and misc stuff because of the info in the library.
Code:
mpc clear
mpc add http://lb.zenfm.be/zenfm.mp3
mpc play
Here's another URL to the Zen FM stream which I just found in the latest .m3u file from the station website: http://str.topradio.be:80/zenfm.mp3. This stream also can be added and played but no station logo or name is displayed. Name and other info may be displayed if the station includes metadata in its stream.
Regards,
Kent