Moode Forum
start radio startion playback by command - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: start radio startion playback by command (/showthread.php?tid=6102)



start radio startion playback by command - kuduacz - 01-04-2024

Hi. 
Can anyone can tell me how to start specyfic radio playback just by command from other host?
I mean
http://moode.local/command/?cmd=play  
And what i have to writhe next to it?
For example i wont to start my added radio 357 to my favorities.
how command should look to play it?


RE: start radio startion playback by command - Tim Curtis - 01-05-2024

Items in the Queue can be played directly by specifying either their position in the Queue (zero based) or their songid (a unique number assigned to the Queue item by MPD.

# Play by position in the Queue
For example to play item 5 in the Queue
http://moode.local/command/?cmd=play 4

You could also try something like below. I'm using The Jazz Groove radio station in the example

http://moode.local/command/?cmd=clear
http://moode.local/command/?cmd=add http://west-aac-64.streamthejazzgroove.com/stream
http://moode.local/command/?cmd=play


RE: start radio startion playback by command - ubergoober - 01-06-2024

(01-05-2024, 01:29 PM)Tim Curtis Wrote: Items in the Queue can be played directly by specifying either their position in the Queue (zero based) or their songid (a unique number assigned to the Queue item by MPD.

# Play by position in the Queue
For example to play item 5 in the Queue
http://moode.local/command/?cmd=play 4

You could also try something like below. I'm using The Jazz Groove radio station in the example

http://moode.local/command/?cmd=clear
http://moode.local/command/?cmd=add http://west-aac-64.streamthejazzgroove.com/stream
http://moode.local/command/?cmd=play

Doesn't the playlist have to be in the queue before it can be started remotely?


RE: start radio startion playback by command - Tim Curtis - 01-06-2024

I thought OP was asking about playing a station URL, not loading a playlist and then playing it or some item in it.


RE: start radio startion playback by command - ubergoober - 01-06-2024

(01-06-2024, 06:25 PM)Tim Curtis Wrote: I thought OP was asking about playing a station URL, not loading a playlist and then playing it or some item in it.

Agreed, but I suspect he may have had the same issue I experienced trying to play it when the queue is empty.