Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for external players command line parameters. #113

Open
ZaxonXP opened this issue Jan 10, 2024 · 1 comment
Open

Allow for external players command line parameters. #113

ZaxonXP opened this issue Jan 10, 2024 · 1 comment

Comments

@ZaxonXP
Copy link

ZaxonXP commented Jan 10, 2024

Is your feature request related to a problem? Please describe.
Currently there is no way to do pause/play the stream from external command (see #82)

Describe the solution you'd like
Allowing for external player command line configuration provide a way to control radioactive stream play/pause from external command (media buttons). In the configuration file there should be a section like player_cmd_parameters.
For mpv I would use the following:

player_cmd_parameters=--input-ipc-server=/tmp/soc_mpv

Thís would allow controling mpv from external command like:

#!/bin/sh
# play
echo '{ "command": ["set", "pause", "no"] }' | socat - /tmp/soc_mpv
#!/bin/sh
# pause
echo '{ "command": ["set", "pause", "yes"] }' | socat - /tmp/soc_mpv
Copy link

Hi, @ZaxonXP,
Thanks for your contribution 💙 .
Contributors 🧑‍🤝‍🧑 like you make the open source community 🌍 such an amazing place to learn 📖 , inspire 👼, and create 🎨 .
We will investigate 👀 and get back to you as soon as possible 👍 . Just make sure you have given us sufficient information ℹ️.

By that time enjoy this meme 👇 , hope you like it 😄

meme

Use this action on your projects. Use jokes on issues instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant