Issue metadata
Sign in to add a comment
|
Regression: Flash videos don't keep screen awake
Reported by
jleedev@gmail.com,
Oct 24 2016
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.21 Safari/537.36 Example URL: Steps to reproduce the problem: First, some setup: 1. Make sure Flash is enabled. It's Flash version 23.0.0.198 on both Beta and Canary, but I only see the problem in Canary, so I believe this to be a Chrome problem. 2. Setup: in System Preferences > Energy Saver > Power Adapter, set "Turn off display after 1 minute". 3. Measure the actual delay before the display dims: ~$ time cat ^C real 1m46s Then, measure all the tests with ~$ sleep 106 && say time Now, the bug: 4. Try a Flash video, e.g.: http://www.cbs.com/shows/big_bang_theory/video/54A6A4EF-B32F-D95A-DCF6-BF8BA60868B5/the-big-bang-theory-the-hot-tub-contamination/ http://www.cwtv.com/shows/supernatural/keep-calm-and-carry-on/?play=6e4be1ba-de0e-4d4c-8c7c-290709664892 https://www.youtube.com/watch?v=g_m017ebtD8 (Sorry, I can't find a simple "test flash video" page) What is the expected behavior? When a video is playing in an active tab, the screen should stay bright. This happens whether the video is in full screen or not. What went wrong? While playing Flash video in Chrome on my Mac, the screen eventually dims, and I assume the screensaver / system sleep would eventually kick in. This works in 55.0.2883.21 This is broken in 56.0.2899.0 (and first broke a few days prior) Did this work before? Yes 55 Is it a problem with Flash or HTML5? Flash Does this work in other browsers? Yes Chrome version: 56.0.2899.0 Channel: canary OS Version: OS X 10.12.0 Flash Version: 23.0.0.198 HTML5 video works fine.
,
Oct 25 2016
Do we use MediaWebContentsObserver for Flash?
,
Oct 25 2016
No, we are using PepperPlaybackObserver, it's pretty much like how MediaWebContentsObserver works. The Flash code we touched recently is not enabled in production. Also I wonder how it could affect screen wake lock.
,
Oct 25 2016
Can confirm this is also present in the current dev build on windows (56.0.2896.3). As well as the screen sleeping, I also have some jobs in task scheduler that are meant to be delayed if the system is busy. Usually these would execute after video playback, but now they just run while playback is occurring.
,
Oct 26 2016
,
Oct 26 2016
Tested the issue on Mac 10.11.6 and 10.12 using chrome version 56.0.2899.0 and 55.0.2883.22 with the below steps 1. Setup: in System Preferences > Energy Saver > Power Adapter, set "Turn off display after 1 minute". 2.go to URL https://www.youtube.com/watch?v=g_m017ebtD8 3.Play Video for 2 mins 4.Not observed any dimness of screen 5.Entered the command ~$ time cat in command prompt 4.Observed the error as " -bash: ~$: command not found" Could you please confirm anything missed here.Not observed any difference in both versions tested 55.0.2883.22 and 56.0.2899.0 . Thanks,
,
Oct 26 2016
You used a YouTube link. Worth checking that you didn't use the HTML5 player? Issue only seems to occur when using flash for playback as per op. I was watching iPlayer when getting the issue which uses flash.
,
Oct 26 2016
I have the same problem (screensaver kicking on while watching video) on Windows with 56.0.2900.0. Any stream from twitch.tv should work to reproduce it.
,
Oct 26 2016
-Internals>Media. Marking as RBS.
,
Oct 27 2016
Unable to reproduce the issue on Mac 10.11.6 and 10.12 using chrome version 56.0.2900.0 with the below URLS. twitch.tv https://www.youtube.com/watch?v=g_m017ebtD8 The below URLs provided are not accessible from here.Hence adding respective team to check. http://www.cbs.com/shows/big_bang_theory/video/54A6A4EF-B32F-D95A-DCF6-BF8BA60868B5/the-big-bang-theory-the-hot-tub-contamination/ http://www.cwtv.com/shows/supernatural/keep-calm-and-carry-on/?play=6e4be1ba-de0e-4d4c-8c7c-290709664892 http://www.bbc.co.uk/iplayer/episode/b0813q5n/the-missing-series-2-3-a-prison-without-walls @MTV team, Please check the issue with the URLS if accessible from your end. Thanks,
,
Oct 28 2016
Are you, perchance, leaving the mouse and keyboard alone while the video plays? The problem isn't that chromium is forcing the screensaver/powersave mode on. It should be preventing the screensaver/powersave mode from coming on while a video plays, but it isn't. If you move the mouse or type on the keyboard, that would obviously prevent the screensaver/powersave mode from triggering and, therefore, hide the problem.
,
Oct 28 2016
Able to reproduce this issue on reported version of Chrome#56.0.2899.0 for Os X 10.12 and working on a narrow bisect.
,
Oct 28 2016
Here is the Change Log: ======================== https://chromium.googlesource.com/chromium/src/+log/56.0.2894.0..56.0.2895.0?pretty=fuller&n=10000 ccameron@, could you please look into this change (https://chromium.googlesource.com/chromium/src/+/04c2bac53d96749f85f9046d9923810df58d41c1) ? Thank you!
,
Oct 31 2016
Taking a look at this.
,
Oct 31 2016
Ugh, this is getting harder and harder to debug. It used to be that we could use the flag --ppapi-flash-path to allow Chromium to use flash. But now, all of those test pages don't see that we have the flash plugin. Do we have a way to report that we actually have the flash plugin?
,
Oct 31 2016
That's worked for me as recently as last week. Are you using --ppapi-flash-version to specify the version? Something like: """ out/gn/Chromium.app/Contents/MacOS/Chromium --ppapi-flash-path=/Applications/Google\ Chrome\ Canary.app/Contents/Versions/54.0.2808.0/Google\ Chrome\ Framework.framework/Internet\ Plug-Ins/PepperFlash/PepperFlashPlayer.plugin --ppapi-flash-version=22.0.0.209 """
,
Oct 31 2016
Yeah, that was what I was doing: --ppapi-flash-path=/Applications/Google\ Chrome.app/Contents/Versions/53.0.2785.143/Google\ Chrome\ Framework.framework/Internet\ Plug-Ins/PepperFlash/PepperFlashPlayer.plugin \ I used to be able to finagle twitch.tv into doing Flash instead of html5, but that has been failing lately. I'll keep poking at this.
,
Oct 31 2016
Okay, if you click the "you do not have flash installed" box on cwtv or cbs, it will pop up a "do you want to run flash" dialog, which gets it running. Can't get youtube to do it, but that's fine -- I just need one working repro
,
Nov 1 2016
So ... I had tested that the power blocker's lifetime was correct, but not that the blocker actually prevented sleep. I used kPowerSaveBlockPreventAppSuspension, not kPowerSaveBlockPreventDisplaySleep ... the second one is the one I wanted. Tested that this actually works now.
,
Nov 2 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0ef11abdb743e2af6aaba409e9d123cfeb73b921 commit 0ef11abdb743e2af6aaba409e9d123cfeb73b921 Author: ccameron <ccameron@chromium.org> Date: Wed Nov 02 19:45:42 2016 Flash: On activity, prevent display sleep, not just system sleep BUG= 658910 Review-Url: https://codereview.chromium.org/2462243004 Cr-Commit-Position: refs/heads/master@{#429370} [modify] https://crrev.com/0ef11abdb743e2af6aaba409e9d123cfeb73b921/chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc
,
Nov 14 2016
,
Nov 16 2016
ccameron@, Thank you for the fix and it is working as intended on Mac OS X 10.12.1 for chrome#56.0.2920.0. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dalecur...@chromium.org
, Oct 24 2016