How to store display/volume setting

Post your questions and help other users.

Moderator: Martin

Post Reply
steve7929
Posts: 8
Joined: 18 Sep 2014 13:15

How to store display/volume setting

Post by steve7929 » 27 Jan 2015 22:22

I would like to know if there is a way to the following:

1. Open youtube
2. Retreive and store current volume and display setting values
3. set volume to X and display to Y
4. Close youtube
5. Set volume and display back to values from step # 2

steve7929
Posts: 8
Joined: 18 Sep 2014 13:15

Re: How to store display/volume setting

Post by steve7929 » 28 Jan 2015 19:25

Got the following info from Martin for my post here already:)Flows could look like this:
-trigger 'App Task Started: com.google.android.youtube'
-action 'Store Audio Volumes'
-action 'Init Variable System Setting: screen_brightness to global_last_screen_brightness'
-actions to change the volume and brightness

-trigger 'App Task Ended: com.google.android.youtube'
-action 'Restore Audio Volumes'
-action 'Set Screen Brightness: {global_last_screen_brightness}'

Post Reply