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

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed)

Created:
6 years, 5 months ago by jiajia.qin
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The old implementation didn't distinguish 'ConstraintNotSatisfiedError' in content side. It uses TrackStartError to summarize all the track error. This is inconsistent with the spec. In this Cl, I add the name of the constraint which cause the ConstraintNotSatisfiedError R=tommi@chromium.org, yzshen@chromium.org, creis@chromium.org, miu@chromium.org BUG=397057 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288921

Patch Set 1 #

Patch Set 2 : Add the name of constraint that caused ConstraintNotSatisfiedError #

Patch Set 3 : add bug id and reviewer #

Total comments: 21

Patch Set 4 : #

Total comments: 20

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Add the unittest #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Patch Set 11 : rebase and change the reviewers list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -63 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/webrtc_getusermedia_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/common/media_stream_request.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +16 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +35 lines, -12 lines 0 comments Download
M content/renderer/media/media_stream_impl_unittest.cc View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_source.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_capture_source_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -20 lines 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 1 2 3 4 5 6 5 chunks +17 lines, -3 lines 0 comments Download
M content/renderer/media/mock_media_stream_video_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 64 (0 generated)
jiajia.qin
Please help review this CL.
6 years, 5 months ago (2014-07-21 07:52:46 UTC) #1
jiajia.qin
Hi, Is there anyone to review this CL? Please help to review this patch. Thank ...
6 years, 5 months ago (2014-07-23 10:24:47 UTC) #2
jiajia.qin
Could you please help to find the right person to review this CL? Thank you ...
6 years, 5 months ago (2014-07-24 01:52:28 UTC) #3
DaleCurtis
I've updated the reviewers list with people more familiar
6 years, 5 months ago (2014-07-24 22:13:15 UTC) #4
miu
Taking myself of the reviewer list. While I am familiar with a lot of this ...
6 years, 5 months ago (2014-07-25 08:24:21 UTC) #5
no longer working on chromium
Thanks for improvement, I will take my first look tonight.
6 years, 5 months ago (2014-07-25 16:09:00 UTC) #6
yzshen1
I only reviewed .*pepper.* files. I think xians@ is the right person to comment on ...
6 years, 5 months ago (2014-07-25 17:48:49 UTC) #7
no longer working on chromium
Looking good, I will take another closer look in the weekend. https://codereview.chromium.org/391703002/diff/40001/content/public/common/media_stream_request.h File content/public/common/media_stream_request.h (right): ...
6 years, 5 months ago (2014-07-25 19:27:36 UTC) #8
jiajia.qin
https://codereview.chromium.org/391703002/diff/40001/content/renderer/media/media_stream_impl.h File content/renderer/media/media_stream_impl.h (right): https://codereview.chromium.org/391703002/diff/40001/content/renderer/media/media_stream_impl.h#newcode102 content/renderer/media/media_stream_impl.h:102: const blink::WebString& result_name = blink::WebString()); On 2014/07/25 19:27:35, xians1 ...
6 years, 4 months ago (2014-07-28 04:46:53 UTC) #9
jiajia.qin
https://codereview.chromium.org/391703002/diff/40001/content/public/common/media_stream_request.h File content/public/common/media_stream_request.h (right): https://codereview.chromium.org/391703002/diff/40001/content/public/common/media_stream_request.h#newcode78 content/public/common/media_stream_request.h:78: MEDIA_DEVICE_CONSTRAINT_NOT_SATISFIED, On 2014/07/25 19:27:35, xians1 wrote: > curiously, could ...
6 years, 4 months ago (2014-07-28 05:10:20 UTC) #10
jiajia.qin
> https://codereview.chromium.org/391703002/diff/40001/content/renderer/media/media_stream_video_capturer_source.cc#newcode145 > content/renderer/media/media_stream_video_capturer_source.cc:145: > MEDIA_DEVICE_TRACK_START_FAILURE); > why isn't it MEDIA_DEVICE_SOURCE_START_FAILURE ? Good question. Actually, ...
6 years, 4 months ago (2014-07-28 05:52:24 UTC) #11
jiajia.qin
Hi, xians@chromium.org / yzshen@chromium.org This Cl is mainly to support 'ConstraintNotSatisfiedError' in content side. The ...
6 years, 4 months ago (2014-07-28 06:07:32 UTC) #12
yzshen1
https://codereview.chromium.org/391703002/diff/40001/content/renderer/pepper/pepper_media_stream_video_track_host.h File content/renderer/pepper/pepper_media_stream_video_track_host.h (right): https://codereview.chromium.org/391703002/diff/40001/content/renderer/pepper/pepper_media_stream_video_track_host.h#newcode90 content/renderer/pepper/pepper_media_stream_video_track_host.h:90: const blink::WebString& result_name = blink::WebString()); On 2014/07/28 05:10:20, jiajia.qin ...
6 years, 4 months ago (2014-07-28 17:37:18 UTC) #13
no longer working on chromium
On 2014/07/28 05:52:24, jiajia.qin wrote: > > > https://codereview.chromium.org/391703002/diff/40001/content/renderer/media/media_stream_video_capturer_source.cc#newcode145 > > content/renderer/media/media_stream_video_capturer_source.cc:145: > > MEDIA_DEVICE_TRACK_START_FAILURE); ...
6 years, 4 months ago (2014-07-28 19:53:36 UTC) #14
no longer working on chromium
I have some comments, please address them. Dale or Yuri, I will be on parental ...
6 years, 4 months ago (2014-07-28 19:55:08 UTC) #15
miu
On 2014/07/28 19:55:08, xians1 wrote: > Dale or Yuri, I will be on parental staring ...
6 years, 4 months ago (2014-07-28 20:20:00 UTC) #16
jiajia.qin
On 2014/07/28 17:37:18, yzshen1 wrote: > https://codereview.chromium.org/391703002/diff/40001/content/renderer/pepper/pepper_media_stream_video_track_host.h > File content/renderer/pepper/pepper_media_stream_video_track_host.h (right): > > https://codereview.chromium.org/391703002/diff/40001/content/renderer/pepper/pepper_media_stream_video_track_host.h#newcode90 > ...
6 years, 4 months ago (2014-07-30 05:08:30 UTC) #17
jiajia.qin
On 2014/07/28 19:53:36, xians1 wrote: > On 2014/07/28 05:52:24, jiajia.qin wrote: > > > > ...
6 years, 4 months ago (2014-07-30 05:08:50 UTC) #18
jiajia.qin
Rebased and modified the code according reviews' comments. Please have a look again. https://codereview.chromium.org/391703002/diff/40001/content/renderer/media/media_stream_impl.h File ...
6 years, 4 months ago (2014-07-30 05:18:08 UTC) #19
yzshen1
.*pepper.* LGTM Please wait for other reviewers' LGTM.
6 years, 4 months ago (2014-07-30 15:39:24 UTC) #20
miu
https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc#newcode639 content/renderer/media/media_stream_impl.cc:639: default: It's generally not good practice to use "default" ...
6 years, 4 months ago (2014-07-30 19:37:23 UTC) #21
jiajia.qin
https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc#newcode639 content/renderer/media/media_stream_impl.cc:639: default: On 2014/07/30 19:37:23, miu wrote: > It's generally ...
6 years, 4 months ago (2014-07-31 13:43:01 UTC) #22
miu
https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc#newcode639 content/renderer/media/media_stream_impl.cc:639: default: On 2014/07/31 13:43:00, jiajia.qin wrote: > On 2014/07/30 ...
6 years, 4 months ago (2014-07-31 19:30:10 UTC) #23
jiajia.qin
https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/391703002/diff/60001/content/renderer/media/media_stream_impl.cc#newcode639 content/renderer/media/media_stream_impl.cc:639: default: On 2014/07/31 19:30:09, miu wrote: > On 2014/07/31 ...
6 years, 4 months ago (2014-08-01 05:25:33 UTC) #24
miu
lgtm
6 years, 4 months ago (2014-08-01 05:27:40 UTC) #25
jiajia.qin
The CQ bit was checked by jiajia.qin@intel.com
6 years, 4 months ago (2014-08-01 05:36:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/100001
6 years, 4 months ago (2014-08-01 05:39:40 UTC) #27
jiajia.qin
Please hold on reviewing this patch. I just found this Cl has some error which ...
6 years, 4 months ago (2014-08-01 08:07:50 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-01 13:38:50 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 13:43:24 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/1493)
6 years, 4 months ago (2014-08-01 13:43:25 UTC) #31
jiajia.qin
There are two errors in patch set 6. The first error is in media_stream_impl.cc UserMediaRequestInfo::OnTrackStarted. ...
6 years, 4 months ago (2014-08-04 07:41:11 UTC) #32
miu
lgtm, but please address these two things before committing: https://codereview.chromium.org/391703002/diff/120001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/391703002/diff/120001/content/renderer/media/media_stream_video_source.cc#newcode548 content/renderer/media/media_stream_video_source.cc:548: ...
6 years, 4 months ago (2014-08-05 03:35:53 UTC) #33
jiajia.qin
https://codereview.chromium.org/391703002/diff/120001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/391703002/diff/120001/content/renderer/media/media_stream_video_source.cc#newcode548 content/renderer/media/media_stream_video_source.cc:548: blink::WebString unsatisfied_constraint; On 2014/08/05 03:35:53, miu wrote: > nit: ...
6 years, 4 months ago (2014-08-05 05:39:25 UTC) #34
jiajia.qin
The CQ bit was checked by jiajia.qin@intel.com
6 years, 4 months ago (2014-08-05 05:40:41 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/140001
6 years, 4 months ago (2014-08-05 05:41:58 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 07:09:48 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 07:13:05 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/2027)
6 years, 4 months ago (2014-08-05 07:13:06 UTC) #39
jiajia.qin
The CQ bit was checked by jiajia.qin@intel.com
6 years, 4 months ago (2014-08-05 10:12:31 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/160001
6 years, 4 months ago (2014-08-05 10:13:49 UTC) #41
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 12:57:03 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 12:59:45 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/2072)
6 years, 4 months ago (2014-08-05 12:59:46 UTC) #44
jiajia.qin
Hi miu, I checked the failed trybots. The error is caused by missing LGTM from ...
6 years, 4 months ago (2014-08-06 01:16:45 UTC) #45
miu
tommi: PTAL for OWNERS approval.
6 years, 4 months ago (2014-08-06 01:25:28 UTC) #46
jiajia.qin
On 2014/08/06 01:25:28, miu wrote: > tommi: PTAL for OWNERS approval. Seems that tommi is ...
6 years, 4 months ago (2014-08-08 01:24:48 UTC) #47
tommi (sloooow) - chröme
rs lgtm. sorry for the delay, things are a bit crazy right now.
6 years, 4 months ago (2014-08-08 13:42:55 UTC) #48
tommi (sloooow) - chröme
The CQ bit was checked by tommi@chromium.org
6 years, 4 months ago (2014-08-08 13:43:01 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/160001
6 years, 4 months ago (2014-08-08 13:44:43 UTC) #50
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-08 13:47:51 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 13:49:22 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/1141)
6 years, 4 months ago (2014-08-08 13:49:23 UTC) #53
jiajia.qin
Rebase the code to resolve the conflict. Add creis to have a look the missing ...
6 years, 4 months ago (2014-08-11 03:19:48 UTC) #54
jiajia.qin
6 years, 4 months ago (2014-08-11 03:22:42 UTC) #55
jiajia.qin
The CQ bit was checked by jiajia.qin@intel.com
6 years, 4 months ago (2014-08-11 09:02:20 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/180001
6 years, 4 months ago (2014-08-11 09:02:54 UTC) #57
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-11 12:37:17 UTC) #58
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 12:40:34 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/3331)
6 years, 4 months ago (2014-08-11 12:40:36 UTC) #60
Charlie Reis
[+jam as FYI for content/public change] content/public/common/media_stream_request.h LGTM. nit: Please update the "R=" line in ...
6 years, 4 months ago (2014-08-11 17:19:07 UTC) #61
jiajia.qin
The CQ bit was checked by jiajia.qin@intel.com
6 years, 4 months ago (2014-08-12 01:15:03 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiajia.qin@intel.com/391703002/200001
6 years, 4 months ago (2014-08-12 01:33:24 UTC) #63
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 05:48:38 UTC) #64
Message was sent while issue was closed.
Change committed as 288921

Powered by Google App Engine
This is Rietveld 408576698