Граф коммитов

82 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup f1e4e6aed0 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-11 12:31:49 +00:00
Dorel Luca 19042532b3 Backed out changeset ef25e5648b14 (bug 1112392) for causing build bustage on media/systemservices/video_engine/tab_capturer 2020-07-11 13:30:06 +03:00
Randell Jesup 33bfc03435 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 21:22:10 +00:00
Bogdan Tara b2ea557fcf Backed out changeset 6dea878aaf36 (bug 1112392) for tab_capturer.cc related bustage CLOSED TREE 2020-07-10 23:30:41 +03:00
Randell Jesup 109ef2a1dd Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 18:11:02 +00:00
Csoregi Natalia 56aa86bead Backed out changeset 6318d54b7068 (bug 1112392) for bustages on tab_capturer.cc. CLOSED TREE 2020-07-10 04:52:56 +03:00
Randell Jesup 9756342857 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-10 01:00:51 +00:00
Csoregi Natalia 6be2db575b Backed out changeset 20e97810b319 (bug 1112392) for bustages on tab_capturer.h. CLOSED TREE 2020-07-10 00:40:42 +03:00
Randell Jesup 084100482a Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-09 20:34:15 +00:00
Boris Zbarsky 0cbc6daf1f Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar
The idea is to stop directly accessing EnumTypeValues::strings in type-unsafe
ways from consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D49533

--HG--
extra : moz-landing-system : lando
2019-10-17 23:40:57 +00:00
Boris Zbarsky 232603d16a Bug 1584009 part 2. Move some WebRTC dictionaries back into the file they should have lived in originally. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47196

--HG--
extra : moz-landing-system : lando
2019-10-02 14:26:37 +00:00
Andreas Pehrson 0005a9e68a Bug 1571667 - Lift constraint checking of deviceId and groupId out of MediaEngineSources. r=jib
Before this patch, it was unclear who was responsible for checking deviceId and
groupId constraints for devices. MediaManager was doing it through one path for
getUserMedia, with the help of the devices, as part of selecting the
best-fitting device. However, Reconfigure() took another path where the regular
backends for camera and microphone were implemented correctly, but fake devices
were left out so automated tests for applyConstraints were failing.

This patch lifts the responsibility for checking deviceId and groupId
constraints out of the MediaEngineSources into MediaDevice, which already is the
owner of the anonymized ids that MediaEngineSources are unaware of.
This makes constraints checking a two-staged approached where deviceId and
groupid goes first. If they satisfy the constraints, the underlying device is
queried for whether the constraints fit.

As a bonus, this unclutters a lot of the MediaEngineSource interface.

Differential Revision: https://phabricator.services.mozilla.com/D40834

--HG--
extra : moz-landing-system : lando
2019-08-28 08:39:57 +00:00
Andreas Pehrson 10202bfc64 Bug 1561254 - Support groupId in constraints. r=achronop,jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D37692

--HG--
extra : moz-landing-system : lando
2019-07-30 16:28:44 +00:00
Andreas Pehrson 2283c81baa Bug 1560907 - Remove default value for mediaSource constraint. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D36087

--HG--
extra : moz-landing-system : lando
2019-07-10 09:45:26 +00:00
Andreas Pehrson 90ffbb1560 Bug 1561319 - Check facingMode constraint in MediaEngineDefaultVideo and don't match empty string by default. r=jib
This does two things:
It makes MediaEngineDefaultVideo::GetBestFitnessDistance include a facingMode
check.
It also makes FitnessDistance() for StringRanges take a Maybe<nsString>, since
the device might not have a value for all StringRange constraints, as is the
case for facingMode. This fixes this issue for a MediaEngineRemoteVideoSource
with no facingMode, since such a device would match a facingMode of the empty
string prior to this patch.

To be fully spec compliant, the Maybe should be a set instead, since a device
may support multiple values for the facingMode capability. We don't support
more than one value however, so this change can be made later as needed.

Differential Revision: https://phabricator.services.mozilla.com/D35841

--HG--
extra : moz-landing-system : lando
2019-07-05 18:46:32 +00:00
Andreas Pehrson 7f6e56584f Bug 1538113 - Fix dom/media/webrtc static-analysis warnings. r=jib
Initially indicated by: https://phabricator.services.mozilla.com/D22910#inline-142013
Rest found by: ./mach static-analysis check dom/media/webrtc

Differential Revision: https://phabricator.services.mozilla.com/D24511

--HG--
extra : moz-landing-system : lando
2019-03-25 18:52:57 +00:00
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Paul Adenot e4afe8a413 Bug 1497254 - Remove the concept of an Allocation from MediaEngineWebRTCAudio. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8732

--HG--
extra : moz-landing-system : lando
2018-10-17 13:05:51 +00:00
Jan-Ivar Bruaroey 7d40419bc8 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop a=reland
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : amend_source : 99bbce10577ac5fb2c32a869d74e52b0f4f02142
2018-10-12 20:25:07 +03:00
Sebastian Hengst b219f1c732 Backed out changeset 419218259bc1 (Bug 1497390) for frequently failing mda's dom/media/tests/mochitest/identity/test_fingerprints.html (bug 1498326). a=backout 2018-10-12 19:50:42 +03:00
Jan-Ivar Bruaroey 6b5cb93598 Bug 1497351 - Remove dictionary null defaults from MediaTrackConstraintSet; handle absence in NormalizedConstraintSet. r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8054

--HG--
extra : moz-landing-system : lando
2018-10-11 02:03:17 +00:00
Jan-Ivar Bruaroey 20f3798c41 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : moz-landing-system : lando
2018-10-11 02:02:32 +00:00
Coroiu Cristina f41994d019 Backed out changeset 493e812d0342 (bug 1497390) for mda failures at dom/media/tests/mochitest/identity/test_fingerprints.html 2018-10-10 19:02:35 +03:00
Jan-Ivar Bruaroey 6793adb6e3 Bug 1497390 - Remove support for legacy mozAutoGainControl and mozNoiseSuppression constraints. r=bzbarsky,achronop
Differential Revision: https://phabricator.services.mozilla.com/D8053

--HG--
extra : moz-landing-system : lando
2018-10-10 07:51:09 +00:00
Jan-Ivar Bruaroey 9e5c5ec071 Bug 1495478 - Move LogConstraints() to class MediaConstraintsHelper and add logging of missing constraints (rollup includes backed-out bug 1494498) r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7378

--HG--
extra : moz-landing-system : lando
2018-10-02 16:13:20 +00:00
Andreas Pehrson 3ceaba23ab Bug 1299515 - Flatten MediaEngineSource class hierarchy. r=jib
The scope of flattening this hierarchy quickly grows large, so this patch does
a couple more things:
- Creates a pure interface MediaEngineSourceInterface and a base class
  MediaEngineSource with common defaults and refcount support (no state!)
- Breaks out some of the helper classes to dedicated files, e.g.,
  AllocationHandle, MediaEnginePrefs.
- Clarifies the threading model (written on one thread *and* under lock,
  read under either)
- Fixes style, indentation, include-sorting in the affected files
- Adds comments, especially for clarifying what responsibilities methods have,
  and thread usage of class members
- Changes Monitors to Mutexes since we only use them as Mutexes anyhow
- Makes MediaEngineRemoteVideoSource no longer a shared source since we now
  support scaling in this source and CamerasChild can act as a broker of frames.
  This greatly simplifies it. The only shared source is now
  MediaEngineWebRTCMicrophoneSource, so the sharing specific common methods have
  been moved to that source.

MozReview-Commit-ID: KeVZQo6gLm2

--HG--
rename : dom/media/webrtc/MediaEngine.h => dom/media/webrtc/MediaEnginePrefs.h
extra : rebase_source : c785a5feb896312912170475d6b8d997e712e48f
2018-01-24 16:49:13 +01:00
Munro Mengjue Chiang e782a0379f Bug 1388219 - add a nsTArray mTargetCapability to record each track target capability. r=jib
MozReview-Commit-ID: E8ZCmXEDxKs

--HG--
extra : rebase_source : 5cab9cdb5cc1a67d6cf4c0b5c5c7caef5cfe7ea0
2017-11-30 15:44:20 +08:00
Ryan VanderMeulen 5395ec18d2 Backed out 3 changesets (bug 1421025, bug 1388219) for causing bug 1421706 on a CLOSED TREE.
Backed out changeset 1a69438ec05f (bug 1421025)
Backed out changeset 213c2c200c08 (bug 1388219)
Backed out changeset 341aaeb4ce69 (bug 1388219)
2017-11-29 17:00:27 -05:00
Munro Mengjue Chiang f02f21154e Bug 1388219 - add a nsTArray mTargetCapability to record each track target capability. r=jib
MozReview-Commit-ID: 476kNk16VKR

--HG--
extra : rebase_source : c0718f640acdebaad9c314441e217f43377e12de
2017-11-23 15:46:25 +08:00
Sylvestre Ledru d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
Alex Chronopoulos 41737dc1af Bug 1213414 - Implement channelCount audio constraint. r=jib,padenot
MozReview-Commit-ID: K95iBYOE1nR

--HG--
extra : rebase_source : 5c73eea4902933faec75e37d90e42a2f38c51b81
2017-06-29 21:01:17 -07:00
Jan-Ivar Bruaroey 85b8864f71 Bug 1366415: Unprefix mozAutoGainControl and mozNoiseSuppression w/deprecation warnings. r=jesup,smaug
MozReview-Commit-ID: EdWjSsIhtIM

--HG--
extra : rebase_source : 373bf802ae7a0f957770f2f6ec18fa4cc6c736da
2017-05-19 20:57:44 -04:00
John Dai afa50be601 Bug 1294100 - Part 3: Modify Codegen to generate including FakeString's binding files and fix build errors. r=bz
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/FakeString.h
2016-09-01 18:10:54 +08:00
Jan-Ivar Bruaroey ad60fcbdf9 Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
MozReview-Commit-ID: IB0BhGKbdam

--HG--
extra : rebase_source : 29006317f365076717f88bdafc64366eb996913c
2016-08-19 16:39:54 -04:00
Ryan VanderMeulen 4460ee8698 Backed out changeset 5f43357fe5b4 (bug 1284909) for bustage on a CLOSED TREE. 2016-08-29 11:25:00 -04:00
Jan-Ivar Bruaroey de3b766278 Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
MozReview-Commit-ID: IB0BhGKbdam

--HG--
extra : rebase_source : 9ed1f4218e66bd3c96d044cacce167cbde79e775
2016-08-19 16:39:54 -04:00
Jan-Ivar Bruaroey b7cd70aebe Bug 1213517 - Fix static analysis for bug 1213517 landing: Avoid non-memmovable nsTArray<NormalizedConstraintSet>. r=jesup
MozReview-Commit-ID: GGJ6BGlLa4n

--HG--
extra : rebase_source : 94a9df3f2cedb6e37f48dcd87667e129f2fc78ec
2016-06-29 14:52:19 -04:00
Jan-Ivar Bruaroey aa375cbaab Bug 1213517 - Fix static analysis for bug 1213517 landing: make constructor explicit. r=jesup
MozReview-Commit-ID: 6k38HgsFmL2

--HG--
extra : rebase_source : 47f1caa8cc7a39b1f4f49ae2c8744556122da45d
2016-07-18 02:56:22 -04:00
Jan-Ivar Bruaroey 7949ae2a64 Bug 1213517 - Take highest ideal value from competing width, height and frameRate. r=jesup
MozReview-Commit-ID: JkR2rDDeFz1

--HG--
extra : rebase_source : aa2d61cddb17d316e43404efe6a8643cf4cbf22c
2016-07-07 08:36:05 -04:00
Jan-Ivar Bruaroey 9be5951bd8 Bug 1213517 - Clamp competing ideal values before considering them to avoid outliers distorting result. r=jesup
MozReview-Commit-ID: 3RNgKfDpJxL

--HG--
extra : rebase_source : c681489a6bb1687484d1eb694c066f95a17fdca1
2016-07-07 10:45:34 -04:00
Jan-Ivar Bruaroey 48ae827040 Bug 1213517 - Lift correct constraint out of lower-level code for OverconstrainedError. r=padenot
MozReview-Commit-ID: EWUjVBUrAps

--HG--
extra : rebase_source : 9c747e8d98af973dfefe873ea65fb01ffb180be2
2016-06-20 20:15:39 -04:00
Jan-Ivar Bruaroey d67b712448 Bug 1213517 - Normalize even more of the constraints code. r=padenot
MozReview-Commit-ID: 1XjdHXKYOmP

--HG--
extra : rebase_source : 6e6c05b9ffe6722decb6918667b83a3f9d6bfd8b
2016-06-17 15:20:10 -04:00
Jan-Ivar Bruaroey ea417c69e0 Bug 1213517 - optimize for maintenance of constraints (member pointer approach). r=padenot
MozReview-Commit-ID: 4JYb6QnMtVk

--HG--
extra : rebase_source : 6ecab6312fd647e85f3dfea5b0c5ec53b6c04b24
2016-06-27 10:03:27 -04:00
Jan-Ivar Bruaroey bd5e812679 Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey 534b6e3dd7 Bug 1213517 - Add a way to merge multiple NormalizedConstraints. r=jesup
MozReview-Commit-ID: LfB9QviCNxU

--HG--
extra : rebase_source : eb93a91a4f96191efa80b10fb2546eab8283e20c
2016-07-02 00:16:37 -04:00
Jan-Ivar Bruaroey 3c55d4bc05 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey 27fd33e96c Bug 1213517 - Add an un-flattened NormalizedConstraints type for downstream use. r=jesup
MozReview-Commit-ID: 1ZUN21mgfXh

--HG--
extra : rebase_source : ac158d5a7d265649bcf04952e138a1a86a5222a4
2016-06-30 16:08:45 -04:00
Jan-Ivar Bruaroey 591cbabcaf Bug 1213517 - Normalize all the constraints internally, not just some. r=jesup
MozReview-Commit-ID: BfTleKUxiVU

--HG--
extra : rebase_source : b9879959606961baa687e594846ff953956d1a23
2016-06-30 15:46:07 -04:00
Iris Hsiao 12ec456c48 Backed out changeset 6ee4fac755f4 (bug 1213517) 2016-07-18 15:41:11 +08:00
Iris Hsiao 83bf356b5d Backed out changeset e6ac385fd969 (bug 1213517) 2016-07-18 15:41:04 +08:00