Activate automatically when a flash video is playing

Registered by pragmattica

Idea suggested by a user on Reddit (http://www.reddit.com/r/linux/comments/933fa/caffeine_for_linux_02_released/c0b9ys0). The basic idea is to look for a file /tmp/Flash78a23f (or something) and activate Caffeine if that file is found. That file is the flash video that is playing in the browser.

Unfortunately, more testing is required to see if this would work properly. Apparently most sites (like YouTube) put a file there, but some don't (like Hulu). Also, we would have to check different kinds of banner ads to ensure that we wouldn't get into a situation where a looping video would prevent powersaving indefinitely and wipe out our user's batteries even though they just happened to browse to a site with a video banner ad.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
None
Direction:
Approved
Assignee:
Isaiah Heyer
Definition:
Approved
Series goal:
Accepted for 1.0
Implementation:
Implemented
Milestone target:
milestone icon 1.0
Started by
Isaiah Heyer
Completed by
Isaiah Heyer

Related branches

Sprints

Whiteboard

Even if we can't automatically detect when a user is watching a flash video automatically, just automatically detecting when youtube is being watched would be a big plus. This should be configurable of course.

One more complication (pragmattica): I was watching a zero punctuation review today, and the little file showed up in /tmp as expected. Unfortunately, after the video was finished playing, the file was still there. The file stays there until the user moves away to a different page, so the file's existence only shows that the user is on a page that has a flash video, and not that the video is actively playing. It would be nice to deactivate Caffeine once the video stops, so that the battery won't drain just because the user had watched a video hours ago and left the browser window open.

(Isaiah Heyer) I found a possible solution, check it out on the wiki.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.