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

发布于 2024-12-08 15:38:31 字数 449 浏览 0 评论 0原文

我注意到当我在 YouTube 上观看视频时,mi 屏幕保护程序不会启动。 我使用的是 Windows 7。

这是测试:

  1. 将 Windows 屏幕保护程序设置为 1 分钟。
  2. 浏览 YouTube 并播放超过 1 分钟的视频;理想情况下要长得多。
  3. 请注意,您的屏幕保护程序不会在指定时间(1 分钟)后出现。

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

有谁知道他们是怎么做到的?

我进行了搜索,但我发现的只是人们说这是不可能的,或者提示用户在观看视频时禁用屏幕保护程序。


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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

來不及說愛妳 2024-12-15 15:38:31

StackOverflow 之外的人向我推荐了这篇文章: http://www.webkitchen.be/2010/04/13/6-lesser-known-features-in-flash-player-10-1/

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

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

不幸的是,我找不到这方面的官方 Adob​​e 源代码。他们似乎非常关注 Flash Player 11,以至于删除了自 Flash Player 10 以来可用的“新功能”列表。

我对此进行了测试,无论是否全屏,只要视频正在播放,它都可以工作。

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

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.

墨小墨 2024-12-15 15:38:31

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

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

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

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.

第七度阳光i 2024-12-15 15:38:31

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

来自问题 9853:Chrome 获得焦点时显示消隐失败

*[电子邮件受保护]发表的评论 8,2009 年 5 月 21 日
花了一些时间查看这个,我可以确认它很容易重现,并且 Chrome 不会做任何事情
影响Windows电源管理。它确实看起来像一个 Microsoft bug,显然是由 Chrome 获得焦点触发的。

需要明确的是,实际发生的情况是,当 Chrome 获得焦点时,“显示消隐”电源状态不会触发,所有
其他电源状态(挂起、休眠)触发。屏幕保护程序也会触发。

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

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文