3 years, 10 months ago
(2017-02-22 10:41:04 UTC)
#5
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
File media/capture/video/video_capture_device_descriptor.cc (right):
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
media/capture/video/video_capture_device_descriptor.cc:108: return
GetNameAndModel() + " (" + facing_info + ")";
On 2017/02/22 03:20:37, mtomasz wrote:
> If human readable, then should we localize? If hard to localize here, then
maybe
> easier to localize in UI (settings). In such case, maybe GetHumanReadableName
is
> not needed at all.
I don't think we have a way of knowing what language the name and model will be
in and these names are not localized by us. Hmm... given that, is adding the
facing info to the label, is useful or if it will be confusing for users?
shenghao
On 2017/02/22 10:41:04, tommi (krómíum) wrote: > https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc > File media/capture/video/video_capture_device_descriptor.cc (right): > > https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode108 ...
3 years, 10 months ago
(2017-02-22 18:44:23 UTC)
#6
On 2017/02/22 10:41:04, tommi (krómíum) wrote:
>
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
> File media/capture/video/video_capture_device_descriptor.cc (right):
>
>
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
> media/capture/video/video_capture_device_descriptor.cc:108: return
> GetNameAndModel() + " (" + facing_info + ")";
> On 2017/02/22 03:20:37, mtomasz wrote:
> > If human readable, then should we localize? If hard to localize here, then
> maybe
> > easier to localize in UI (settings). In such case, maybe
GetHumanReadableName
> is
> > not needed at all.
>
> I don't think we have a way of knowing what language the name and model will
be
> in and these names are not localized by us. Hmm... given that, is adding the
> facing info to the label, is useful or if it will be confusing for users?
I plan to add facing strings into grd file and use the localization mechanism
there.
The facing info is very useful to the user. Currently the name shown in settings
are:
Webcam (1234:2345)
Webcam (4567:5678)
The user can't make sense of the vid:pid pair (model ID). What's meaningful to
them is the facing info.
tommi (sloooow) - chröme
On 2017/02/22 18:44:23, shenghao wrote: > On 2017/02/22 10:41:04, tommi (krómíum) wrote: > > > ...
3 years, 10 months ago
(2017-02-22 18:46:39 UTC)
#7
On 2017/02/22 18:44:23, shenghao wrote:
> On 2017/02/22 10:41:04, tommi (krómíum) wrote:
> >
>
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
> > File media/capture/video/video_capture_device_descriptor.cc (right):
> >
> >
>
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
> > media/capture/video/video_capture_device_descriptor.cc:108: return
> > GetNameAndModel() + " (" + facing_info + ")";
> > On 2017/02/22 03:20:37, mtomasz wrote:
> > > If human readable, then should we localize? If hard to localize here, then
> > maybe
> > > easier to localize in UI (settings). In such case, maybe
> GetHumanReadableName
> > is
> > > not needed at all.
> >
> > I don't think we have a way of knowing what language the name and model will
> be
> > in and these names are not localized by us. Hmm... given that, is adding
the
> > facing info to the label, is useful or if it will be confusing for users?
>
> I plan to add facing strings into grd file and use the localization mechanism
> there.
> The facing info is very useful to the user. Currently the name shown in
settings
> are:
>
> Webcam (1234:2345)
> Webcam (4567:5678)
>
> The user can't make sense of the vid:pid pair (model ID). What's meaningful to
> them is the facing info.
Ah, yeah that's pretty terrible :) Is this on CrOS?
In any case lgtm to this change as it looks like it will clearly be an
improvement.
3 years, 10 months ago
(2017-02-24 01:11:39 UTC)
#10
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
File media/capture/video/video_capture_device_descriptor.cc (right):
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
media/capture/video/video_capture_device_descriptor.cc:12: "", "user-facing",
"world-facing"};
On 2017/02/22 19:03:59, mcasas wrote:
> nit: move the anonymous namespace inside media,
> s/VIDEO_FACING_STRINGS/kVideoFacingNames/
> and s/"world-facing"/"environment-facing"/
> to comply with
> https://www.w3.org/TR/mediacapture-streams/#idl-def-VideoFacingModeEnum
Deleted
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
media/capture/video/video_capture_device_descriptor.cc:107: }
On 2017/02/22 19:03:59, mcasas wrote:
> nit: no {} for one-line bodies.
Done.
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_c...
media/capture/video/video_capture_device_descriptor.cc:108: return
GetNameAndModel() + " (" + facing_info + ")";
On 2017/02/22 10:41:04, tommi (krómíum) wrote:
> On 2017/02/22 03:20:37, mtomasz wrote:
> > If human readable, then should we localize? If hard to localize here, then
> maybe
> > easier to localize in UI (settings). In such case, maybe
GetHumanReadableName
> is
> > not needed at all.
>
> I don't think we have a way of knowing what language the name and model will
be
> in and these names are not localized by us. Hmm... given that, is adding the
> facing info to the label, is useful or if it will be confusing for users?
Replied in previous comment.
shenghao
Description was changed from ========== Show meaningful name for cameras The camera names in settings ...
3 years, 10 months ago
(2017-02-24 01:17:36 UTC)
#11
Description was changed from
==========
Show meaningful name for cameras
The camera names in settings are composed by display_name + model_id.
When there are front and back cameras, the user can not tell which is
which by the model ID. After this change, it shows
display_name + model_id + facing_info
BUG=chrome-os-partner:62956
TEST=Verify that display_name + model_id + facing_info shows in settings
==========
to
==========
Show meaningful name for cameras
The camera names in settings are composed by display_name + model_id.
When there are front and back cameras, the user can not tell which is
which by the model ID. After this change, it shows
display_name + model_id + facing_info
BUG=chrome-os-partner:62956
TEST=Verify that display_name + model_id + facing_info shows in settings
==========
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/221672) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 9 months ago
(2017-03-03 02:30:17 UTC)
#26
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/26118)
3 years, 9 months ago
(2017-03-03 04:09:29 UTC)
#31
CQ is committing da patch. Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488519431441280, "parent_rev": "762dcf004c4d65c416992d3c6ad4323a9303e9f0", "commit_rev": "75a64969dd5f72c9ff2fff22fd3638a95fe800fe"}
3 years, 9 months ago
(2017-03-03 06:37:25 UTC)
#35
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488519431441280,
"parent_rev": "762dcf004c4d65c416992d3c6ad4323a9303e9f0", "commit_rev":
"75a64969dd5f72c9ff2fff22fd3638a95fe800fe"}
commit-bot: I haz the power
Description was changed from ========== Show meaningful name for cameras The camera names in settings ...
3 years, 9 months ago
(2017-03-03 06:38:05 UTC)
#36
Message was sent while issue was closed.
Description was changed from
==========
Show meaningful name for cameras
The camera names in settings are composed by display_name + model_id.
When there are front and back cameras, the user can not tell which is
which by the model ID. After this change, it shows
display_name + model_id + facing_info
BUG=chrome-os-partner:62956
TEST=Verify that display_name + model_id + facing_info shows in settings
==========
to
==========
Show meaningful name for cameras
The camera names in settings are composed by display_name + model_id.
When there are front and back cameras, the user can not tell which is
which by the model ID. After this change, it shows
display_name + model_id + facing_info
BUG=chrome-os-partner:62956
TEST=Verify that display_name + model_id + facing_info shows in settings
Review-Url: https://codereview.chromium.org/2703393007
Cr-Commit-Position: refs/heads/master@{#454531}
Committed:
https://chromium.googlesource.com/chromium/src/+/75a64969dd5f72c9ff2fff22fd36...
==========
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/75a64969dd5f72c9ff2fff22fd3638a95fe800fe
3 years, 9 months ago
(2017-03-03 06:38:06 UTC)
#37
Issue 2703393007: Show meaningful name for cameras
(Closed)
Created 3 years, 10 months ago by shenghao
Modified 3 years, 9 months ago
Reviewers: Ken Rockot(use gerrit already), mcasas, mtomasz, Pawel Osciak, tommi (sloooow) - chröme, wuchengli, Dan Beam
Base URL:
Comments: 26