Closed
Bug 784732
Opened 12 years ago
Closed 12 years ago
Pause Gecko screenshots when playing video
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: cpeterson, Unassigned)
References
()
Details
STR:
1. Watch adb logcat
2. Visit http://videojs.com
3. Play video
AR:
Relentless log messages about Gecko taking screenshots:
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
I/GeckoScreenshot(27254): rect: 361.000000, 466.149994, 512.849976, 407.700012
Reporter | ||
Comment 1•12 years ago
|
||
blassey suggested in IRC:
we can cancel invalidations
which should prevent the screenshots if they're caused by video
or just pause screenshots. that sounds simpler
kats suggested in IRC:
we pause [screenshots] if the app is in the background
we might actually want to disable [screenshots] on full screen as well
Comment 2•12 years ago
|
||
Presumably we can use the ended, playing, and pause events listed at https://developer.mozilla.org/en-US/docs/DOM/Media_events to disable screenshots while video is playing. I think we'd want a more fine-grained solution for the long term (assuming of course we don't get rid of screenshotting altogether) so that we can disable screenshotting of just the video playback area rather than the whole page.
Note that we also get spammed with screenshots when CSS animations are running on the page (see http://nell-balloons.github.cscott.net/ for an example).
Comment 4•12 years ago
|
||
screenshots were disabled for everything in bug 795259 changeset: http://hg.mozilla.org/mozilla-central/rev/bd0161b9250f
You need to log in
before you can comment on or make changes to this bug.
Description
•