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

Issue 13616004: Switch event type when a capture device has been stopped from the render process. This make sure th… (Closed)

Created:
7 years, 8 months ago by perkj_chrome
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Switch event type when a capture device has been stopped from the render process. This make sure that RtcVideoCapturer is notified when the screen share Stop button has been called or a LocalMediaStream has been stopped. https://code.google.com/p/webrtc/issues/detail?id=960 BUG=226400 TEST= Enable logging on rtc_video_capture. Navigate to http://src.chromium.org/chrome/trunk/src/chrome/test/data/webrtc/manual/peerconnection.html. Press the Request GetUserMedia button. Open up a JS console and type gLocalStream.stop() and verify that RtcVideoCapturer::OnStateChange 0 is triggered. On Linux, Repeat starting the video camera. Unplug the USB device and verify that RtcVideoCapturer::OnStateChange 2 is triggered. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193911

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix review comments. #

Total comments: 2

Patch Set 3 : Addressed code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -22 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_event_handler.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/media/video_capture.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/rtc_video_capture_delegate.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/rtc_video_capture_delegate.cc View 1 2 4 chunks +21 lines, -4 lines 0 comments Download
M content/renderer/media/rtc_video_capturer.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
perkj_chrome
Hej Wei- Can you please do a code review?
7 years, 8 months ago (2013-04-04 12:18:07 UTC) #1
wjia(left Chromium)
https://codereview.chromium.org/13616004/diff/2001/content/browser/renderer_host/media/video_capture_controller_event_handler.h File content/browser/renderer_host/media/video_capture_controller_event_handler.h (right): https://codereview.chromium.org/13616004/diff/2001/content/browser/renderer_host/media/video_capture_controller_event_handler.h#newcode48 content/browser/renderer_host/media/video_capture_controller_event_handler.h:48: // The capture session has ended and no more ...
7 years, 8 months ago (2013-04-04 17:05:11 UTC) #2
perkj_chrome
https://codereview.chromium.org/13616004/diff/2001/content/browser/renderer_host/media/video_capture_controller_event_handler.h File content/browser/renderer_host/media/video_capture_controller_event_handler.h (right): https://codereview.chromium.org/13616004/diff/2001/content/browser/renderer_host/media/video_capture_controller_event_handler.h#newcode48 content/browser/renderer_host/media/video_capture_controller_event_handler.h:48: // The capture session has ended and no more ...
7 years, 8 months ago (2013-04-05 09:19:35 UTC) #3
wjia(left Chromium)
https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc File content/renderer/media/rtc_video_capture_delegate.cc (right): https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc#newcode110 content/renderer/media/rtc_video_capture_delegate.cc:110: state_callback_.Run(got_first_frame_ ? CAPTURE_STOPPED : CAPTURE_FAILED); This could still have ...
7 years, 8 months ago (2013-04-05 18:39:17 UTC) #4
perkj_chrome
https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc File content/renderer/media/rtc_video_capture_delegate.cc (right): https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc#newcode110 content/renderer/media/rtc_video_capture_delegate.cc:110: state_callback_.Run(got_first_frame_ ? CAPTURE_STOPPED : CAPTURE_FAILED); On 2013/04/05 18:39:17, wjia ...
7 years, 8 months ago (2013-04-08 11:15:54 UTC) #5
wjia(left Chromium)
On 2013/04/08 11:15:54, perkj wrote: > https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc > File content/renderer/media/rtc_video_capture_delegate.cc (right): > > https://codereview.chromium.org/13616004/diff/8001/content/renderer/media/rtc_video_capture_delegate.cc#newcode110 > ...
7 years, 8 months ago (2013-04-08 14:21:47 UTC) #6
perkj_chrome
PTAL
7 years, 8 months ago (2013-04-09 09:22:24 UTC) #7
wjia(left Chromium)
lgtm
7 years, 8 months ago (2013-04-09 16:22:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/13616004/15001
7 years, 8 months ago (2013-04-12 08:12:01 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 12:31:27 UTC) #10
Message was sent while issue was closed.
Change committed as 193911

Powered by Google App Engine
This is Rietveld 408576698