windows YouTube 如何防止屏幕保护程序在视频播放期间出现?(视窗)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7702748/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:14:06  来源:igfitidea点击:

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

windowsflashyoutubescreensaver

提问by JulianG

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

我注意到当我在 YouTube 上观看视频时,mi 屏幕保护程序没有启动。我正在使用 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).
  1. 将 Windows 屏幕保护程序设置为 1 分钟。
  2. 浏览到 YouTube 并播放超过 1 分钟的视频;理想情况下更长。
  3. 请注意,您的屏幕保护程序在指定时间(1 分钟)后不会出现。

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.

我已经使用 Firefox、Chrome 和 IE8 进行了测试。我的 Flash Player 版本是 10.3。(Youtube 正在使用 Flash 播放视频)。无论我是否全屏观看视频,都会发生同样的情况。

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.

请查看所有答案。不要坚持投票最多的人。

回答by JulianG

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

StackOverflow 之外的人向我指出了这篇文章: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.

在全屏模式下禁用屏幕保护程序

没有什么比每隔几分钟按下键盘或移动鼠标以防止屏幕保护程序在全屏观看视频时启动更烦人的了。如果视频正在播放且没有暂停、停止或缓冲,Flash Player 10.1 现在会暂时禁用您的屏幕保护程序。但它也适用于音频。所以......如果你正在运行一个播放音频的全屏应用程序并且它没有暂停、停止或缓冲并且实际上有音量,屏幕保护程序将不会启动。

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.

不幸的是,我找不到这方面的官方 Adob​​e 资源。他们似乎非常专注于 Flash Player 11,以至于他们删除了自 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.

我想我原来的问题的答案是没有。Flash Player(而不是 YouTube)会自动执行此操作。

回答by Kamil

I found some documentation at help.adobe.com - Playing video in full-screen mode:

我在help.adobe.com 上找到了一些文档- 以全屏模式播放视频

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.

Flash Player 和 AIR 允许您为视频播放创建全屏应用程序,并支持将视频缩放到全屏。

对于在全屏模式下运行的 AIR 内容,系统屏幕保护程序和节电选项在播放过程中会被禁用,直到视频输入停止或用户退出全屏模式。

回答by ymutlu

It looks like a Microsoft bug, as mentined below, you can make your presentation in a browser to prevent screensaver. Hope this link helps.

它看起来像一个 Microsoft 错误,如下所述,您可以在浏览器中进行演示以防止屏幕保护程序。希望这个链接有帮助。

From Issue 9853: Display blanking fails when Chrome has focus:

来自问题 9853:当 Chrome 具有焦点时显示消隐失败

Comment 8 by *[email protected], May 21, 2009
Took some time to look at this and I can confirm that it is easily reproducible and the Chrome does not do anything to affect Windows power management. It really looks like a Microsoft bug which is clearly triggered by Chrome having focus.

To be clear what actually happens is that the 'Display-blanking' power-state does not trigger while Chrome has focus, all other power-states (Suspend, Hibernate) trigger. The screen saver also triggers.

评论 8 来自 *[email protected],2009 年 5 月 21 日
花了一些时间查看此内容,我可以确认它很容易重现,并且 Chrome 不会影响 Windows 电源管理。它确实看起来像一个 Microsoft 错误,显然是由 Chrome 具有焦点触发的。

要清楚实际发生的情况是,当 Chrome 具有焦点时,“显示空白”电源状态不会触发,所有其他电源状态(暂停、休眠)都会触发。屏幕保护程序也会触发。