Closed horberlan closed 1 week ago
You can already do this... It is not a cli command though, it is a url protocol.
./youtube-music youtubemusic://playPause
will invoke the protocol with playPause
as the operation
yes, it is a toggle and not an explicit play/pause
here are the protocol operations: https://github.com/th-ch/youtube-music/blob/master/src/providers/song-controls.ts#L27-L80
@ArjixWasTaken Is there currently any way to do this via the bash shell?
are you implying that what I sent does not work with the bash shell? (bash ain't a terminal)
I solved it by making a request with curl
I solved it by making a request with curl
that is one way of doing it, you could also directly invoke youtube-music as shown in the snippet I gave you
Preflight Checklist
Problem Description
be able to play and pause with CLI via the prompt
Proposed Solution
use https://www.npmjs.com/package/yargs
Alternatives Considered
Additional Information
No response