Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


start radio startion playback by command
#1
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?
Reply
#2
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(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?
Reply
#4
I thought OP was asking about playing a station URL, not loading a playlist and then playing it or some item in it.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(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.
Reply


Forum Jump: