This is intended to support better Autoplay policies by incorporating whether capturing is going as one of the variables.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/48db90e7127fa235d62d7b3297404888f57d5dfc commit 48db90e7127fa235d62d7b3297404888f57d5dfc Author: Guido Urdaneta <guidou@chromium.org> Date: Tue Sep 04 08:07:20 2018 Add UserMediaClient::IsCapturing() This method reports if a frame currently has active capture sessions. This is intended to support Autoplay. Bug: 880075 Change-Id: I3d5e0669d38cf145e34879e969bf983251192bea Reviewed-on: https://chromium-review.googlesource.com/1202208 Reviewed-by: Harald Alvestrand <hta@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#588470} [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/content/renderer/media/stream/user_media_client_impl.cc [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/content/renderer/media/stream/user_media_client_impl.h [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/content/renderer/media/stream/user_media_client_impl_unittest.cc [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/content/renderer/media/stream/user_media_processor.cc [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/content/renderer/media/stream/user_media_processor.h [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/third_party/blink/public/web/web_user_media_client.h [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/third_party/blink/renderer/modules/mediastream/user_media_client.cc [modify] https://crrev.com/48db90e7127fa235d62d7b3297404888f57d5dfc/third_party/blink/renderer/modules/mediastream/user_media_client.h
Thanks!
Comment 1 by guidou@chromium.org
, Sep 4