3

Possible Duplicate:
javascript code to prevent screensaver from starting

If a website is left on for an extended amount of time the screensaver pops up, but not on certain web apps like Crackle. How does one (as the web developer) prevent the screensaver from becoming active while a video on a website is playing?

Community
  • 1
  • 1
Kyle Souza
  • 127
  • 7

2 Answers2

1

This is new Flash Player feature. It blocks screensaver when it's playing some media (audio, video).

From help.adobe.com - Playing video in full-screen mode:

Flash Player and AIR allow you to create a full-screen application for your video playback, and support scaling video to full screen.

For AIR content running in full-screen mode, the system screen saver and power-saving options are disabled during play until either the video input stops or the user exits full-screen mode.

Kamil
  • 11,919
  • 23
  • 72
  • 160
0

As a web developer, you may be interested to know why this can't be done with Javascript.

If you're interested doing this on Windows, there are a number of implementations and recommendations here and here. These implementations use languages like C++ and C#, which can interact with the Operating System. From the second link, this article specifically addresses videos.

Community
  • 1
  • 1
Anthony Neace
  • 21,951
  • 6
  • 100
  • 116