Page 1 of 1

How to store display/volume setting

Posted: 27 Jan 2015 22:22
by steve7929
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

Re: How to store display/volume setting

Posted: 28 Jan 2015 19:25
by steve7929
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}'