Difference between revisions of "Constraint: Music Active"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether music or audio is currently playing.</pre> |
| − | + | ''' Options ''' | |
| + | |||
| + | * '''Music Active''': Constraint passes only when audio is playing | ||
| + | * '''Not Playing''': Constraint passes only when no audio is playing | ||
| + | |||
| + | ''' Example ''' | ||
| + | |||
| + | ''Example 1: Pause playback when headphones are removed'' | ||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Headphones Insert/Removed - Disconnected</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Control Media (Pause)</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Music Active - Playing</pre> | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Trigger: Music/Sound playing|Music/Sound playing Trigger]] | ||
| + | * [[Action: Control Media|Control Media Action]] | ||
Latest revision as of 13:28, 9 January 2026
This constraint allows or prevents a macro/feature from running based on whether music or audio is currently playing.
Options
- Music Active: Constraint passes only when audio is playing
- Not Playing: Constraint passes only when no audio is playing
Example
Example 1: Pause playback when headphones are removed
Triggers Headphones Insert/Removed - Disconnected
Actions Control Media (Pause)
Constraints Music Active - Playing
See Also