gRPC Control
Remote control of mtrack via gRPC
gRPC Control
mtrack provides a gRPC interface for remote control, allowing you to control the player from any device on your network.
Configuration
Enable the gRPC server in your mtrack.yaml:
|
|
Command-Line Interface
The mtrack command provides subcommands for gRPC interaction:
Play
Start playback of the current song:
|
|
Start from a specific time:
|
|
Navigation
Navigate the playlist:
|
|
Stop
Stop the currently playing song:
|
|
Playlist Management
Switch between playlists:
|
|
Status
Get current player status:
|
|
Active Effects
View all active lighting effects:
|
|
Cues
List all cues in the current song’s lighting timeline:
|
|
gRPC Service Definition
The gRPC service definition can be found in the mtrack repository. The service provides methods for:
- Playback control (play, stop, pause)
- Playlist navigation (next, previous)
- Status queries (current song, elapsed time, etc.)
- Playlist management (switch playlists)
- Lighting control (active effects, cues)
Use Cases
Remote Control
Control mtrack from a phone, tablet, or laptop on the same network:
|
|
Backup Control
If your MIDI foot controller fails during a gig, you can still control mtrack via gRPC from any device with network access.
Automation
Integrate mtrack control into other systems or scripts using gRPC clients in various languages.
Security Note
Important: There is currently no security/authentication on the gRPC server.
- Do not run mtrack on a public network
- Consider disabling the gRPC server if your network is wide open
- Use firewall rules to restrict access if needed
Related Documentation
- Configuration - Complete configuration reference
- Usage Guide - General usage information
- OSC Control - Alternative network control protocol