Screen timeout during video playback?

166 views
Skip to first unread message

Derek Thomas

unread,
Oct 3, 2013, 8:02:25 PM10/3/13
to tas...@googlegroups.com
Has anyone developed a simple way to force a device to do a screen timeout while a video is playing?

Jacob Klein

unread,
Oct 3, 2013, 10:01:48 PM10/3/13
to tas...@googlegroups.com
What is your video player app? When its running make it so Tasker sets the display to always on and when it closes have it reset to the previous value

Derek Thomas

unread,
Oct 3, 2013, 11:11:18 PM10/3/13
to tas...@googlegroups.com
It's the security camera viewer called tinyCam. When I am viewing the live feed I want it to timeout like normal. I don't want it to stay on forever. However, when the live feed is displaying it overrides my screen timeout.

Derek Thomas

unread,
Oct 3, 2013, 11:48:06 PM10/3/13
to tas...@googlegroups.com
I have developed a semi-functional way to have the screen timeout with the video feed up. It entails an application trigger for the profile and a wait command, followed by a lock screen action. However, this will turn the screen off even if you are using it whilst the application is running (an indiscriminate screen timeout - which times out under all circumstances). Still, this isn't good enough for me.

SunKol

unread,
Oct 4, 2013, 1:37:18 AM10/4/13
to tas...@googlegroups.com
Why can't you just create a profile to increase timeout (or Never) with a context -> Application 
Profile will restore the original timeout back when you close that app.

Sunil

Derek Thomas

unread,
Oct 4, 2013, 3:15:34 AM10/4/13
to tas...@googlegroups.com
I don't think you understand. I'm not trying to nullify the timeout. I'm trying to do the exact opposite. The application is nullifying all system display timeouts, so, I'm trying to make it timeout like normal. Given that the application forces all timeout counters to stop when it's running it will not matter what I set the display timeout to. Whatever time I desire to change the display timeout to whilst the app is running doesn't change the fact that it simply wont timeout.
 
I'm looking for an override method or some sort of exploit so that the system still times itself out even though the application is trying to keep the screen on.

Sunil Kolambkar

unread,
Oct 4, 2013, 3:44:02 AM10/4/13
to tas...@googlegroups.com

Can you try as below .

 

1.       Create New Profile with Context -> Application

2.        Here Select Your Application and create a Task with TASK -> Wait. Give few Seconds

3.       Create another Task separately and Set Display Timeout to whatever you need. Give Name to task.

4.        Long press the profile Task above and select Exit Task. Select task create for setting timeout.

 

So When your application open, tasker will not do anything, but as soon as you come out from that application, tasker should set the desire timeout.

 

 

Thanks & Regards

 

Sunil  

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/IGP7oyOby8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Brandon Horwath

unread,
Oct 4, 2013, 4:23:22 AM10/4/13
to tas...@googlegroups.com
Derek,

I understand what you're saying, the application context won't work (although I applaud your attempt to work around it, very creative).

What you need, is a way to reset your ideal display timeout when using your media player! This is the process utilized by your device for live streams.

Now, it might be possible to use a %WIN context (maybe in conjunction with, or without the app context) to determine the media player is streaming content. For my device, the %WIN value becomes 'streaming media player'.

So, I suggest determining if this is true for your device during this process, and using that variable value as the activation context to start a task that sets your display timeout to the ideal setting.

Rich D

unread,
Oct 4, 2013, 5:48:31 AM10/4/13
to tas...@googlegroups.com

> I have developed a semi-functional way to have the screen timeout with the video feed up. It entails an application trigger for the profile and a wait command, followed by a lock screen action

You have probably already tried this, but wouldn't just changing the screen timeout at this point 'after the wait' to work?

I could be wrong but here is how I think it would work..

1. App starts
2. Tasker detects app and starts wait action
3. App sets time out to always on and starts running.
4. After the short wait tasker now sets screen timeout.

I could be wrong about the way the application handles the screen always on...

Derek Thomas

unread,
Oct 4, 2013, 12:34:13 PM10/4/13
to tas...@googlegroups.com
I have tried having it wait until the application is running and then setting the display timeout, in an attempt to override the app's override. I will trying using the %WIN value to do some investigation and see what I will find out.
Reply all
Reply to author
Forward
0 new messages