Trigger: Media Button Pressed
The Media Button Pressed trigger fires when the media button on headphones is pressed. This trigger supports detecting multiple press patterns and long presses, allowing you to assign different actions to different press combinations. The trigger registers MacroDroid as a media button receiver to capture these events.
Options
- Single Press - Fires when the media button is pressed once
- 2 Presses - Fires when the media button is pressed twice in quick succession
- 3 Presses - Fires when the media button is pressed three times in quick succession
- Long Press - Fires when the media button is held down for an extended period
Examples
Example 1: Play/pause music with single press
Triggers Media Button Pressed: Single Press
Actions Control Media: Play/Pause
Example 2: Skip to next track with double press
Triggers Media Button Pressed: 2 Presses
Actions Control Media: Next Track
Notes
- Device-specific behavior may vary. Some models (like Xiaomi AirDots) may interpret a double-press on the physical device as the long press option within MacroDroid rather than registering it as two separate presses.
- For the long press option to work properly, you may need to clear the default app for voice/web search. MacroDroid will prompt you to do this if another app is set as the default.
See Also