Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does YouTube prevent the screensaver from showing up during video playback? (Windows)

I have noticed that mi screensaver doesn't start while I'm watching videos on YouTube. I'm using Windows 7.

This is the test:

  1. Set Windows screensaver to 1 minute.
  2. Browse to YouTube and play a video longer than 1 minute; ideally much longer.
  3. Note that your screensaver doesn't come up after the specified time (1 minute).

I've tested using Firefox, Chrome and IE8. My Flash Player version is 10.3. (Youtube is using flash to play the videos). The same happens whether I watch the video in full-screen or not.

Does anyone know how they do it?

I've searched but all I found was people saying it's not possible, or tips for users to disable their screensaver while watching videos.


Please review all answers. Don't stick to the most voted.

like image 491
JulianG Avatar asked Oct 09 '11 10:10

JulianG


People also ask

Can you make a YouTube video a screensaver?

YouTube Flash videos can be downloaded and converted into various types of file formats that you can play on your computer and mobile devices. However, if you're interested in making a YouTube screensaver, use software applications that will convert YouTube Flash videos into screensavers for your computer.

How do I lock my Screen on YouTube?

If you don't see the option for Screen Pinning, it should be displayed as “Lock Screen and Security” on your Android. Turn on the feature on your Android device. Now, open YouTube and click the Pin icon to lock the app. Settings> Security> Advanced> Screen Pinning.

How do I turn off screensaver on wallpaper engine?

Turning off the Wallpaper Engine screensaver If you do not want your wallpapers to appear as fullscreen screensavers after a few minutes of inactivity, you can turn off the Wallpaper Engine screensaver functionality. Simply open the Windows screensaver settings and set the screensaver to None.


2 Answers

Someone outside StackOverflow pointed me to this article: http://www.webkitchen.be/2010/04/13/6-lesser-known-features-in-flash-player-10-1/

Disabled screen saver in full screen mode

There’s nothing more annoying than having to press the keyboard or moving your mouse every few minutes to prevent the screensaver from kicking in while watching a video in full screen. Flash Player 10.1 now temporarily disables your screensaver if video is playing and not paused, stopped or buffering. But it also works with audio. So… if you’re running a full screen app that plays audio and it is not paused, stopped or buffering and actually has volume the screensaver will not kick in.

Unfortunately I cannot find an official Adobe source for this. They seem to be so focused on Flash Player 11, that they removed the list of "new features" available since Flash Player 10.

I tested this and it works whether in full screen or not, as long as a video is playing.

I guess the answer to my original question is NOTHING. Flash Player, not YouTube, does it automatically.

like image 179
JulianG Avatar answered Sep 20 '22 05:09

JulianG


I found some documentation at 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.

like image 41
Kamil Avatar answered Sep 23 '22 05:09

Kamil