| Line 1: |
Line 1: |
| − | ===<p><b>About</b></p>=== | + | <pre class="header-style">The Media Button V2 (Beta) trigger fires when a media button such as play, stop, skip, or other media controls is pressed. This is an alternative implementation to the standard Media Button Pressed trigger that uses notification access to detect media button events, providing broader compatibility with different types of media buttons and controls.</pre> |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | ''' Options ''' |
| − | This trigger will fire when a media button such as play/ stop/skip is pressed.
| |
| − | </pre>
| |
| | | | |
| − | ==<p><b>Supported configurations</b></p>==
| + | You can select one or more of the following media button events to trigger on: |
| | | | |
| − | * ''''' Play''''' | + | * '''Play''' - Fires when the play button is pressed |
| | + | * '''Play/Pause''' - Fires when the play/pause toggle button is pressed |
| | + | * '''Pause''' - Fires when the pause button is pressed |
| | + | * '''Stop''' - Fires when the stop button is pressed |
| | + | * '''Previous''' - Fires when the previous track button is pressed |
| | + | * '''Next''' - Fires when the next track button is pressed |
| | + | * '''Headset Hook''' - Fires when the headset hook button is pressed (typically the main button on wired headphones) |
| | + | * '''Fast Forward''' - Fires when the fast forward button is pressed |
| | + | * '''Rewind''' - Fires when the rewind button is pressed |
| | | | |
| − | * ''''' Play/Pause'''''
| + | ''' Configuration ''' |
| | | | |
| − | * ''''' Pause''''' | + | * Multiple button types can be selected for a single trigger |
| | + | * The "Trigger Options" link in the configuration dialog provides access to additional media button settings in MacroDroid preferences |
| | | | |
| − | * ''''' Stop'''''
| + | ''' Requirements ''' |
| | | | |
| − | * ''''' Previus''''' | + | * This trigger requires Notification Access permission to be granted to MacroDroid |
| | | | |
| − | * ''''' Next'''''
| + | ''' Examples ''' |
| | | | |
| − | * ''''' Headset Hook'''''
| + | ''Example 1: Log which media button was pressed'' |
| | | | |
| − | * ''''' Fast Forward'''''
| + | <pre class="trigger-style">Triggers |
| | | | |
| − | * ''''' Rewind'''''
| + | Media Button V2 (Beta): Play, Pause, Next, Previous</pre> |
| | + | <pre class="action-style">Actions |
| | | | |
| − | === Trigger Options ===
| + | System Log: Media button pressed</pre> |
| | | | |
| − | * '''''Pass Through Unhandled'''''
| + | ''Example 2: Skip tracks with next/previous buttons'' |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | <pre class="trigger-style">Triggers |
| − | If this option is enabled, MacroDroid will attempt to pass through any unhandled media button events to the last used media app.
| + | |
| − | </pre>
| + | Media Button V2 (Beta): Next</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Control Media: Next Track</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This is a beta feature and behavior may change in future versions |
| | + | * This trigger uses a different detection method than the standard Media Button Pressed trigger and may work better on some devices |
| | + | * The trigger requires notification access rather than registering as a media button receiver |
| | + | * Consider using the standard Media Button Pressed trigger if this one does not work reliably on your device |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Media Button Pressed]] |
| | + | * [[Action: Control Media]] |