Difference between revisions of "Constraint: Volume Level"

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on a specific volume stream level.</pre>
  
This constraint can be used to allow a trigger to fire based on the volume level of a specific audio stream.
+
''' Options '''
 +
 
 +
* '''Stream''' - Media, ringer, notification, alarm, etc.
 +
* '''Above/Below''' - Compare against a target level
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Auto start media playing only if media volume is not very high (to protect ears)''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Headphones Insert/Removed - Connected</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Control Media (Play)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Volume Level - Media <= 70%</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Constraint: Ringer Volume|Ringer Volume Constraint]]

Latest revision as of 14:06, 9 January 2026

This constraint allows or prevents a macro/feature from running based on a specific volume stream level.

Options

  • Stream - Media, ringer, notification, alarm, etc.
  • Above/Below - Compare against a target level

Example

Example 1: Auto start media playing only if media volume is not very high (to protect ears)

Triggers

Headphones Insert/Removed - Connected
Actions

Control Media (Play)
Constraints

Volume Level - Media <= 70%

See Also