Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Issue 615043006: Release the camera when WebRTC is not visible in Android (Closed)

Created:
6 years, 2 months ago by michaelbai
Modified:
6 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-ipc_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Currently when WebRTC isn't visible (app is in background or tab is not visible) in chrome Android, we stop sending captured video frame, but still hold the camera, this makes camera can not be used by other apps. This patch releases the camera on pause, and allocate it again when resume, since SuspendDevices() is only called in Android, this is Android only behavior. BUG=417659 Committed: https://crrev.com/0817b18c54feec8f6c484fa787c3ace56b107ab7 Cr-Commit-Position: refs/heads/master@{#297933}

Patch Set 1 #

Total comments: 19

Patch Set 2 : #

Total comments: 15

Patch Set 3 : address comments #

Patch Set 4 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -8 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.h View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 5 chunks +34 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 2 chunks +29 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 2 chunks +66 lines, -1 line 0 comments Download
M content/common/media/video_capture_messages.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
michaelbai
6 years, 2 months ago (2014-09-30 22:50:28 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode287 content/browser/renderer_host/media/video_capture_controller.cc:287: return; should the event handler be notified of this ...
6 years, 2 months ago (2014-10-01 07:17:03 UTC) #3
michaelbai
PTAL https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode287 content/browser/renderer_host/media/video_capture_controller.cc:287: return; On 2014/10/01 07:17:03, tommi wrote: > should ...
6 years, 2 months ago (2014-10-01 22:09:33 UTC) #4
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/615043006/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode287 content/browser/renderer_host/media/video_capture_controller.cc:287: return; On 2014/10/01 22:09:33, michaelbai wrote: > On ...
6 years, 2 months ago (2014-10-02 11:10:40 UTC) #5
Mike West
Drive-by ICP comments; CCing tsepez@ for a real review of the message changes. https://codereview.chromium.org/615043006/diff/20001/content/browser/renderer_host/media/video_capture_host.cc File ...
6 years, 2 months ago (2014-10-02 11:24:40 UTC) #7
Tom Sepez
What Mike said: the main question is what happens if a resume comes without a ...
6 years, 2 months ago (2014-10-02 17:16:26 UTC) #8
michaelbai
As to the security question, in resume, device_id is used to find corresponding information in ...
6 years, 2 months ago (2014-10-02 18:55:40 UTC) #9
Tom Sepez
On 2014/10/02 18:55:40, michaelbai wrote: > As to the security question, in resume, device_id is ...
6 years, 2 months ago (2014-10-02 19:03:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615043006/60001
6 years, 2 months ago (2014-10-02 21:29:44 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 48d1c8ce538626f92f4dad4489e655a28ca4edbe
6 years, 2 months ago (2014-10-02 22:43:29 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 22:44:14 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0817b18c54feec8f6c484fa787c3ace56b107ab7
Cr-Commit-Position: refs/heads/master@{#297933}

Powered by Google App Engine
This is Rietveld 408576698