New issue
Advanced search Search tips

Issue 854980 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 22
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature


Participants' hotlists:
WebRTC-1.0-Spec-Compliance

Show other hotlists

Other hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Add support for the resizeMode MediaStreamTrack constraint

Project Member Reported by guidou@chromium.org, Jun 21 2018

Issue description

Comment 1 by guidou@chromium.org, Jun 21 2018

Components: Blink>GetUserMedia
Owner: guidou@chromium.org
Status: Assigned (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 17

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8

commit a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Oct 17 12:03:39 2018

Improve handling of frameRate MediaStream constrainable property.

This CL:
- Removes the restriction of frame rates to no less than 1Hz.
  This limit is a remnant from the old constraints processing
  algorithm. There is no reason to keep this restriction,
  especially because applyConstraints did not have any lower limit.
- Use a new minimum frame rate of numeric_limits<float>::min(),
  equivalent to allowing any positive value and enforce it in
  both getUserMedia() and applyConstraints(). Prior to this,
  applyConstraints allowed zero and ideal negative values. Zero
  was interpreted by VideoTrackAdapter to mean the native frame
  rate of the source, and negative values caused a renderer crash
  due to a CHECK in VideoTrackAdapter.

This CL also serves as preparation for support for the frameRate
constrainable property.

Bug:  814131 , 854980 
Change-Id: I7f45fe2862f636100d408a136fe5038fe0994afb
Reviewed-on: https://chromium-review.googlesource.com/c/1276506
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600354}
[modify] https://crrev.com/a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8/content/renderer/media/stream/media_stream_constraints_util.cc
[modify] https://crrev.com/a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8/content/renderer/media/stream/media_stream_constraints_util.h
[modify] https://crrev.com/a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8/content/renderer/media/stream/media_stream_constraints_util_video_device.cc
[modify] https://crrev.com/a6ae8f1581edf00b8a2c8b1839aaa18a448cb8d8/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc

Project Member

Comment 3 by bugdroid1@chromium.org, Oct 17

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/569b5d71ac08bb68f0d94e41ad3556970b1e3b65

commit 569b5d71ac08bb68f0d94e41ad3556970b1e3b65
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Oct 17 12:43:58 2018

Remove aspectRatio lower limit for getUserMedia()

This limit is a remnant from the old constraints-processing algorithm.
With this change, the minimum aspect ratio will be determined by the
capabilities of the devices.

This CL serves as preparation for support for the resizeMode
constrainable property.

Bug:  854980 
Change-Id: Ib67bf57a81a780ee6377b9efb5a93c329fd47216
Reviewed-on: https://chromium-review.googlesource.com/c/1276650
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600362}
[modify] https://crrev.com/569b5d71ac08bb68f0d94e41ad3556970b1e3b65/content/renderer/media/stream/media_stream_constraints_util_video_device.cc
[modify] https://crrev.com/569b5d71ac08bb68f0d94e41ad3556970b1e3b65/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc

Project Member

Comment 4 by bugdroid1@chromium.org, Oct 17

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bd09ecb288944e0ce3c76a9b52071391401bd8ab

commit bd09ecb288944e0ce3c76a9b52071391401bd8ab
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Oct 17 12:49:38 2018

Rewrite SelectSettingsVideoDeviceCapture()

The rewrite simplifies the code and serves as preparation for addition
of resizeMode support.
The only behavior change is in tie-breaking among candidates that are
equally good at satisfying constraints.
The new approach uses a single tie braking distance that combines the
ideal value and the allowed range, whereas the old code used separate
distances for allowed ranges and ideal values.

This CL is in preparation for resizeMode support.

Bug:  854980 
Change-Id: Ie90d5aa8fe029ca1848bf19c232523bab91beadf
Reviewed-on: https://chromium-review.googlesource.com/c/1277797
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600365}
[modify] https://crrev.com/bd09ecb288944e0ce3c76a9b52071391401bd8ab/content/renderer/media/stream/media_stream_constraints_util_video_device.cc
[modify] https://crrev.com/bd09ecb288944e0ce3c76a9b52071391401bd8ab/content/renderer/media/stream/media_stream_constraints_util_video_device.h
[modify] https://crrev.com/bd09ecb288944e0ce3c76a9b52071391401bd8ab/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc

Project Member

Comment 5 by bugdroid1@chromium.org, Oct 18

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fd48c47e3d846a732b0053d31532c883b9fae152

commit fd48c47e3d846a732b0053d31532c883b9fae152
Author: Guido Urdaneta <guidou@chromium.org>
Date: Thu Oct 18 21:53:06 2018

Make rescaling optional for VideoTrackAdapter

This CL:
1. Makes the former |max_width|, |max_height| parameters in
VideoTrackAdapterSettings a single optional gfx::Size |target_size|.

2. Changes VideoTrackAdapter so that if no |target_size| is specified
in VideoTrackAdapterSettings, no rescaling will occur.

3. Changes VideoTrackAdapterSettings to a class to increase encapsulation.

4. CalculateTargetSize() is renamed to CalculateDesiredSize() and it now
returns a bool indicating if it was possible to compute a desired size.
If not, it means the input frame should not be rendered.
Currently this is limited to frames of invalid size (greater than the system
limit), but it will be expanded in follow-up work to detect frames that
violate constraints and should cause the overconstrained event to be fired.

These changes are in anticipation of support for the resizeMode constrainable
property and the overconstrained event.

Bug:  854980 
Change-Id: I688d0a655a9ac31995d99b710f955123a8894654
Reviewed-on: https://chromium-review.googlesource.com/c/1286140
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600926}
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_constraints_util.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_constraints_util_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_constraints_util_video_content_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_video_source.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_video_source.h
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_video_source_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_video_track.h
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/media_stream_video_track_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/mock_media_stream_registry.h
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/user_media_client_impl_unittest.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/video_track_adapter.cc
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/video_track_adapter.h
[modify] https://crrev.com/fd48c47e3d846a732b0053d31532c883b9fae152/content/renderer/media/stream/video_track_adapter_unittest.cc

Project Member

Comment 6 by bugdroid1@chromium.org, Oct 30

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8c6c0c057eac44d3521afffb928b862f04767705

commit 8c6c0c057eac44d3521afffb928b862f04767705
Author: Guido Urdaneta <guidou@chromium.org>
Date: Tue Oct 30 18:42:01 2018

Allow track settings selection to disable rescaling.

This CL updates the SelectVideoTrackAdapterSettings() function to allow
configuring VideoTrackAdapters with rescaling disabled.

This is in preparation for supporting the resizeMode constrainable
property in getUserMedia().

Drive-by: Fix CONTENT_EXPORT style in header.

Bug:  854980 
Change-Id: Ib9c0d33d14d45382ac38af091b0bc3f59b6f90f9
Reviewed-on: https://chromium-review.googlesource.com/c/1286817
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603974}
[modify] https://crrev.com/8c6c0c057eac44d3521afffb928b862f04767705/content/renderer/media/stream/media_stream_constraints_util.cc
[modify] https://crrev.com/8c6c0c057eac44d3521afffb928b862f04767705/content/renderer/media/stream/media_stream_constraints_util.h
[modify] https://crrev.com/8c6c0c057eac44d3521afffb928b862f04767705/content/renderer/media/stream/media_stream_constraints_util_unittest.cc
[modify] https://crrev.com/8c6c0c057eac44d3521afffb928b862f04767705/content/renderer/media/stream/media_stream_constraints_util_video_content.cc
[modify] https://crrev.com/8c6c0c057eac44d3521afffb928b862f04767705/content/renderer/media/stream/media_stream_constraints_util_video_device.cc

Project Member

Comment 7 by bugdroid1@chromium.org, Nov 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f349e11b1f75b9de167123d83718b3bd7b0aee6e

commit f349e11b1f75b9de167123d83718b3bd7b0aee6e
Author: Guido Urdaneta <guidou@chromium.org>
Date: Thu Nov 01 12:25:05 2018

Add support for resizeMode in MediaStreamTrack.getSettings()

This CL exposes the current resizeMode setting to the Web Platform.
As of this CL, the resizeMode is 'none' if the track resolution
corresponds to the native resolution of the video source, without any
resolution adjustment. It is 'crop-and-rescale' if rescaling is
necessary.

The resizeMode currently cannot be set explicitly with getUserMedia() or
applyConstraints(), but this functionality will be added in a follow-up
CL.

Drive-by: Add separate WPT tests for all getSettings() properties.

Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/V2srjdzRCXE

Bug:  854980 
Change-Id: Id4c683e6b2f228b17cf2354cb7fc589ca9e593a6
Reviewed-on: https://chromium-review.googlesource.com/c/1307448
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604562}
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/content/renderer/media/stream/media_stream_video_track.cc
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-getSettings.https.html
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getSettings.html
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/blink/public/platform/web_media_stream_track.h
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/blink/renderer/modules/mediastream/media_stream_track.cc
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/blink/renderer/modules/mediastream/media_track_settings.idl
[modify] https://crrev.com/f349e11b1f75b9de167123d83718b3bd7b0aee6e/third_party/blink/renderer/platform/exported/web_media_stream_track.cc

Project Member

Comment 8 by bugdroid1@chromium.org, Nov 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/37893cef03ae436b77c6951c42fe8b18e4752ecd

commit 37893cef03ae436b77c6951c42fe8b18e4752ecd
Author: Guido Urdaneta <guidou@chromium.org>
Date: Thu Nov 01 14:24:37 2018

Add extra utilities to content::media_constraints

This CL adds:
* NumericRangeSet::Contains().
* NumericRangeSet::EmptySet().
* ResolutionSet::FromNativeResolution().

These utilities are in preparation for supporting the resizeMode
constrainable property in getUserMedia() and applyConstraints().

Drive-by: minor fixes/improvements.

Bug:  854980 
Change-Id: I858f406308aa9bba40521d5e740219b72e2c8a48
Reviewed-on: https://chromium-review.googlesource.com/c/1308133
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604574}
[modify] https://crrev.com/37893cef03ae436b77c6951c42fe8b18e4752ecd/content/renderer/media/stream/media_stream_constraints_util_sets.cc
[modify] https://crrev.com/37893cef03ae436b77c6951c42fe8b18e4752ecd/content/renderer/media/stream/media_stream_constraints_util_sets.h
[modify] https://crrev.com/37893cef03ae436b77c6951c42fe8b18e4752ecd/content/renderer/media/stream/media_stream_constraints_util_sets_unittest.cc
[modify] https://crrev.com/37893cef03ae436b77c6951c42fe8b18e4752ecd/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-getSettings.https.html

Project Member

Comment 9 by bugdroid1@chromium.org, Nov 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/75c6c086d575a9e131e70eaf6512a0da14150442

commit 75c6c086d575a9e131e70eaf6512a0da14150442
Author: Guido Urdaneta <guidou@chromium.org>
Date: Fri Nov 09 16:02:21 2018

Wire the resizeMode property to the constraints parsing mechanism.

This CL adds resizeMode support for MediaStreamTrack.getConstraints()
and marks resizeMode as a supported constrainable property.

Support for getUserMedia(), applyConstraints() and getCapabilities()
will be added in follow-up CLs in this series.

Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/V2srjdzRCXE

Bug:  854980 
Change-Id: Ia23b8119768ab67ab498f0f8e2267aeb388f9fc3
Reviewed-on: https://chromium-review.googlesource.com/c/1309749
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606856}
[add] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaDevices-getSupportedConstraints.html
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/WebKit/LayoutTests/fast/mediastream/MediaDevices-getSupportedConstraints.html
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getConstraints.html
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/public/platform/web_media_constraints.h
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/renderer/modules/mediastream/media_constraints_impl.cc
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/renderer/modules/mediastream/media_stream_track.cc
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/renderer/modules/mediastream/media_track_constraint_set.idl
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/renderer/modules/mediastream/media_track_supported_constraints.idl
[modify] https://crrev.com/75c6c086d575a9e131e70eaf6512a0da14150442/third_party/blink/renderer/platform/exported/web_media_constraints.cc

Project Member

Comment 10 by bugdroid1@chromium.org, Nov 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/815fe02999fcbb664cc0bbb7adccd9da5f27782f

commit 815fe02999fcbb664cc0bbb7adccd9da5f27782f
Author: Guido Urdaneta <guidou@chromium.org>
Date: Sat Nov 10 12:07:05 2018

Add set utilities for resizeMode MediaStream constraintable property.

This CL introduces two utility functions:

1. RescaleSetFromConstraint: transforms a resizeMode constraint
into a set of boolean values for easier processing.
The boolean values represent if rescaling is supported or not.

2. IdealRescaleFromConstraint: transforms the ideal value in a
resizeMode constraint into an optional bool, which represents
preference for rescaling (true), preference for not rescaling (false),
or no preference (nullopt).

These utilities simplify processing of the resizeMode constraint in
getUserMedia() and applyConstraints() for both device and content
capture. This support is added in follow-up CLs in this series.

Bug:  854980 
Change-Id: I0a76fbc2842c5bb0aff8f231d36a404f25ae665d
Reviewed-on: https://chromium-review.googlesource.com/c/1310175
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607122}
[modify] https://crrev.com/815fe02999fcbb664cc0bbb7adccd9da5f27782f/content/renderer/media/stream/media_stream_constraints_util_sets.cc
[modify] https://crrev.com/815fe02999fcbb664cc0bbb7adccd9da5f27782f/content/renderer/media/stream/media_stream_constraints_util_sets.h
[modify] https://crrev.com/815fe02999fcbb664cc0bbb7adccd9da5f27782f/content/renderer/media/stream/media_stream_constraints_util_sets_unittest.cc

Project Member

Comment 11 by bugdroid1@chromium.org, Nov 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b4088a976e8f6076f433ac831122b18e24a8b70b

commit b4088a976e8f6076f433ac831122b18e24a8b70b
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Nov 21 12:42:08 2018

Fix fitness distance in video capture constraints processing

The old algorithm computed fitness for width, height and aspect ratio
using the best possible width, height and aspect ratio supported
by a constrained format. However, the actual selected resolution does not
necessarily have the width, height and aspect ratio that are
simultaneously closest to the ideal values.

In practice, this results in differences only in marginal cases such as:
* Extreme ideal aspect ratios, where rounding a selected resolution
in floating-point format might lead to a significant variation in
aspect ratio. For example (1000x1.25 has aspect ratio 800 before rounding
but aspect ratio 1000 after rounding to 1000x1). This is not an issue
for resolutions that are used in practice and the spec allows some
deviation in the optimization of the fitness distance anyway.
* The ideal aspect ratio significantly contradicts the ratio between
the ideal width and the ideal height. In this case, the selected point
will be close to ideal width and ideal height, but might be far from
the ideal aspect ratio (which is ignored), thus it might have a higher
fitness distance than the one computed by the old algorithm.

This minor fix has more importance when extra complexity is added to
the computation of fitness distance to support the new resizeMode
constraint in a follow-up CL.

Bug:  854980 
Change-Id: I0cadb28553816357ce84bbf38b5686cc48b427e7
Reviewed-on: https://chromium-review.googlesource.com/c/1329788
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610015}
[modify] https://crrev.com/b4088a976e8f6076f433ac831122b18e24a8b70b/content/renderer/media/stream/media_stream_constraints_util_video_device.cc
[modify] https://crrev.com/b4088a976e8f6076f433ac831122b18e24a8b70b/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc

Project Member

Comment 12 by bugdroid1@chromium.org, Nov 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/90928aa9832fccb05719e752afa6835b24b1f1d7

commit 90928aa9832fccb05719e752afa6835b24b1f1d7
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Nov 21 15:45:34 2018

Add support for the resizeMode constraint in getUserMedia()

This CL updates the constraints processing algorithm to take into
account the resizeMode constrainable property.
This effectively adds spec-compliant support for this property in
getUserMedia() and applyConstraints() for device capture and
capture-from-element tracks.

Bug:  854980 
Change-Id: I6c2022aac121fee240b4d6a8f631beff35d89fb9
Reviewed-on: https://chromium-review.googlesource.com/c/1310813
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610074}
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_constraints_util.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_constraints_util_video_device.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_constraints_util_video_device_unittest.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_video_source.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_video_track.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/media_stream_video_track.h
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/content/renderer/media/stream/user_media_client_impl_unittest.cc
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaDevices-getUserMedia.https.html
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-applyConstraints.https.html
[add] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/CanvasCaptureMediaStream-applyConstraints.html
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-applyConstraints.html
[modify] https://crrev.com/90928aa9832fccb05719e752afa6835b24b1f1d7/third_party/WebKit/LayoutTests/fast/mediastream/getusermedia-constraints.html

Project Member

Comment 13 by bugdroid1@chromium.org, Nov 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5825fead7bb0b07a166982422b345f6eb9da0d07

commit 5825fead7bb0b07a166982422b345f6eb9da0d07
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Nov 21 16:52:27 2018

Add support for resizeMode in [MediaStreamTrack|InputDeviceInfo].getCapabilities()

Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/V2srjdzRCXE

Bug:  854980 
Change-Id: Ie49e3d2f9b8afe1abc552172d78dd86088b6ce41
Reviewed-on: https://chromium-review.googlesource.com/c/1310714
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610108}
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaDevices-enumerateDevices.https.html
[add] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-getCapabilities.https-expected.txt
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-getCapabilities.html
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/blink/renderer/modules/mediastream/input_device_info.cc
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/blink/renderer/modules/mediastream/media_stream_track.cc
[modify] https://crrev.com/5825fead7bb0b07a166982422b345f6eb9da0d07/third_party/blink/renderer/modules/mediastream/media_track_capabilities.idl

Project Member

Comment 14 by bugdroid1@chromium.org, Nov 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/323cdb00abe1fa21ba485cff29506f1b87371a3d

commit 323cdb00abe1fa21ba485cff29506f1b87371a3d
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Nov 21 19:26:24 2018

Add support for the resizeMode constraint in screen capture.

Since screen capture does not have a clear concept of native resolution,
rescaling will be enabled by default and will be disabled only if
explicitly requested.
This maintains existing behavior in all existing applications that use
content capture.

This CL concludes the resizeMode series.

Bug:  854980 
Change-Id: I8658e36f22501f18d1d9dc9b6b0fe6e24063140b
Reviewed-on: https://chromium-review.googlesource.com/c/1310716
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610149}
[modify] https://crrev.com/323cdb00abe1fa21ba485cff29506f1b87371a3d/content/renderer/media/stream/media_stream_constraints_util_video_content.cc
[modify] https://crrev.com/323cdb00abe1fa21ba485cff29506f1b87371a3d/content/renderer/media/stream/media_stream_constraints_util_video_content_unittest.cc

Status: Fixed (was: Assigned)

Sign in to add a comment