Created
September 27, 2025 18:50
-
-
Save ZiTAL/6fbb9c2b7a353e0d341172398a410bbc to your computer and use it in GitHub Desktop.
mpv: remote control
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mpv --input-ipc-server=/tmp/mpv.sock "https://stream.mediasector.es/radio/8230/bizkaiairratia.mp3" | |
| # PAUSE | |
| echo '{ "command": ["set_property", "pause", true] }' | socat - /tmp/mpv.sock | |
| # RESUME | |
| echo '{ "command": ["set_property", "pause", false] }' | socat - /tmp/mpv.sock | |
| # GO TO LIVE | |
| echo '{ "command": ["seek", -1, "absolute+keyframes"] }' | socat - /tmp/mpv.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment