skrodahl wroteAlthough... If the playback is stopped, the pause command does nothing at all. You might want to do a check for that state as well, and send the play command.
Yes, changed to this behaviour in the last steps instead:
- http get 192.168.101.4/command/?cmd=pause 1 if the split result matches *play* , else cmd=play
That triggers play from either stopped or paused states.
Edit: I ran into an issue when RuneAudio froze (manual reboot needed) and I think the cause was when a live stream was paused for a long time with this method. To fix that I added a one more condition to Tasker. It now first gets the current song ( ?cmd=currentsong ). If the current song is a stream do cmd=stop command, if music file do cmd=pause 1 . Seems to work all right now.