RESOLVED FIXED171127
Set defaults video getUserMedia constraints
https://bugs.webkit.org/show_bug.cgi?id=171127
Summary Set defaults video getUserMedia constraints
youenn fablet
Reported 2017-04-21 11:37:32 PDT
Let's select 640x480, 30fps, front camera as the default if no related constraints are defined.
Attachments
Patch (16.37 KB, patch)
2017-04-21 13:16 PDT, youenn fablet
no flags
Not adding defaul constraints if not useful (16.42 KB, patch)
2017-04-21 13:36 PDT, youenn fablet
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.32 MB, application/zip)
2017-04-21 16:26 PDT, Build Bot
no flags
Patch for landing (16.32 KB, patch)
2017-04-24 16:20 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2017-04-21 13:16:21 PDT
youenn fablet
Comment 2 2017-04-21 13:36:16 PDT
Created attachment 307787 [details] Not adding defaul constraints if not useful
Eric Carlson
Comment 3 2017-04-21 13:39:08 PDT
Comment on attachment 307787 [details] Not adding defaul constraints if not useful View in context: https://bugs.webkit.org/attachment.cgi?id=307787&action=review > LayoutTests/fast/mediastream/getUserMedia-default-expected.txt:5 > +FAIL Checking default video tracks settings except height assert_equals: frame height expected 240 but got 480 This seems wrong.
Eric Carlson
Comment 4 2017-04-21 13:47:57 PDT
Comment on attachment 307787 [details] Not adding defaul constraints if not useful r=me with the change we discussed
youenn fablet
Comment 5 2017-04-21 13:49:52 PDT
(In reply to Eric Carlson from comment #3) > Comment on attachment 307787 [details] > Not adding defaul constraints if not useful > > View in context: > https://bugs.webkit.org/attachment.cgi?id=307787&action=review > > > LayoutTests/fast/mediastream/getUserMedia-default-expected.txt:5 > > +FAIL Checking default video tracks settings except height assert_equals: frame height expected 240 but got 480 > > This seems wrong. As discussed directly, this is an issue with the mock source. Real camera sources are fine as they try to pick the best preset. We should make mock sources pick presets to get closer to actual camera devices.
Build Bot
Comment 6 2017-04-21 16:26:51 PDT
Comment on attachment 307787 [details] Not adding defaul constraints if not useful Attachment 307787 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3579075 New failing tests: fast/mediastream/MediaStream-video-element-displays-buffer.html
Build Bot
Comment 7 2017-04-21 16:26:52 PDT
Created attachment 307832 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Jon Lee
Comment 8 2017-04-21 17:34:43 PDT
(In reply to youenn fablet from comment #5) > We should make mock sources pick presets to get closer to actual camera > devices. Bug ?
youenn fablet
Comment 9 2017-04-21 17:46:15 PDT
(In reply to Jon Lee from comment #8) > (In reply to youenn fablet from comment #5) > > We should make mock sources pick presets to get closer to actual camera > > devices. > > Bug ? Filed https://bugs.webkit.org/show_bug.cgi?id=171151. But really, we should be able to mock capture at a lower level so that we exercise the deployed code path.
youenn fablet
Comment 10 2017-04-24 16:20:43 PDT
Created attachment 308019 [details] Patch for landing
youenn fablet
Comment 11 2017-04-24 16:23:58 PDT
> New failing tests: > fast/mediastream/MediaStream-video-element-displays-buffer.html Good to have that test! This patch was breaking the selection of user/environment camera. Changed the defaults from a new advanced/exact to existing mandatory/ideal.
WebKit Commit Bot
Comment 12 2017-04-24 17:02:32 PDT
Comment on attachment 308019 [details] Patch for landing Clearing flags on attachment: 308019 Committed r215703: <http://trac.webkit.org/changeset/215703>
WebKit Commit Bot
Comment 13 2017-04-24 17:02:34 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.