media
The community/plugin/media
directory contains code for controlling media playback and volume.
The core functionality is in media.py, which defines a custom play_pause
action. This action sends a play_pause
keypress on Windows and a play
keypress on other platforms.
The file media.talon exposes the play_pause
action as a voice command, along with other media controls like setting the volume or going to the next or previous track. These commands use the built-in Talon key
action to send key presses like volup
, voldown
, mute
, next
, and prev
.