Commit Graph

714 Commits

Author SHA1 Message Date
Alex Chronopoulos
ba88363c9c Bug 1482150 - Implement enumeration of output devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7605

--HG--
extra : moz-landing-system : lando
2018-11-08 12:33:33 +00:00
Alex Chronopoulos
aaea0ba012 Bug 1482150 - Make CubebDeviceEnumerator singleton. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7604

--HG--
extra : moz-landing-system : lando
2018-11-08 12:33:26 +00:00
Alex Chronopoulos
bc5ee0931a Bug 1482150 - Move CubebDeviceEnumerator to its own source and header files. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7603

--HG--
extra : moz-landing-system : lando
2018-11-08 12:33:18 +00:00
Cosmin Sabou
ca3d74c85c Backed out 4 changesets (bug 1482150) for causing windows build bustages on dom/media/CubebUtils.cpp. CLOSED TREE
Backed out changeset 662bbd0961e5 (bug 1482150)
Backed out changeset 20a4fa9f6214 (bug 1482150)
Backed out changeset 18925888f5d7 (bug 1482150)
Backed out changeset ade887b7ba31 (bug 1482150)
2018-11-07 20:45:51 +02:00
Alex Chronopoulos
c1c3276b5c Bug 1482150 - Implement enumeration of output devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7605

--HG--
extra : moz-landing-system : lando
2018-11-07 18:26:37 +00:00
Alex Chronopoulos
e0c6e82044 Bug 1482150 - Make CubebDeviceEnumerator singleton. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7604

--HG--
extra : moz-landing-system : lando
2018-11-07 18:26:35 +00:00
Alex Chronopoulos
956df39574 Bug 1482150 - Move CubebDeviceEnumerator to its own source and header files. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7603

--HG--
extra : moz-landing-system : lando
2018-11-07 18:25:41 +00:00
Paul Adenot
42f68423f2 Bug 1503536 - Call ApplySettings in MediaEngineWebRTCMicrophoneSource::Start. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D10347

--HG--
extra : rebase_source : cfcfe8e0a526487696d6743cba91c56d17fcff76
extra : amend_source : 3c3915a2d4ceb7e79ea55f8f8bd2e9e023be25e4
2018-10-31 12:57:38 +01:00
Gurzau Raul
b096dcf0ea Backed out changeset ecb1ebb96315 (bug 1499426) for causing failures at media/webrtc/MediaEngineWebRTCAudio.cpp a=backout 2018-11-06 11:59:15 +02:00
Gurzau Raul
1da9ef02c4 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html
2018-11-06 11:57:49 +02:00
Gurzau Raul
493c66f27f Backed out changeset cdfaa36dcd55 (bug 1503536) for perma assertion failure at media/webrtc/MediaEngineWebRTCAudio.cpp a=backout 2018-11-06 11:51:57 +02:00
Paul Adenot
44be778ba3 Bug 1503536 - Call ApplySettings in MediaEngineWebRTCMicrophoneSource::Start. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D10347

--HG--
extra : moz-landing-system : lando
2018-11-05 10:43:08 +00:00
Andreas Pehrson
16f6336ae3 Bug 1502313 - Remove concurrent audio input device limit. r=padenot
The limit only applied within a child process.

However, within a child process we already share cubeb stream when requesting
the same device multiple times, and disallow capturing from more than one device
at a time.

This limit no longer has any effect.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 14:22:23 +00:00
Cosmin Sabou
f341826914 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-05 18:20:54 +02:00
Paul Adenot
dd030b70f2 Bug 1499426 - Only create AudioInputProcessing once in MediaEngineWebRTCAudio::Start. r=pehrsons 2018-11-05 11:23:39 +01:00
Paul Adenot
3c9ac6a32d Bug 1497254 - clang-format MediaEngineWebRTCAudio.{cpp,h} and MediaEnginePrefs.h. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8959

--HG--
extra : moz-landing-system : lando
2018-10-17 13:05:59 +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
Philipp Hancke
c0cf9f10eb Bug 1435789: implement relayProtocol for localcandidate stats r=smaug,ng
relayProtocol is the standardized variant of mozLocalTransport.
Spec:
  https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-relayprotocol

IDL:
  https://w3c.github.io/webrtc-stats/#icecandidate-dict*

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

--HG--
extra : moz-landing-system : lando
2018-10-07 07:42:48 +00:00
Cosmin Sabou
386468ce92 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-12 20:42:30 +03: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
Csoregi Natalia
86dc471972 Merge autoland to mozilla-central. a=merge 2018-10-12 19:55:37 +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
Csoregi Natalia
4688712435 Merge mozilla-central to mozilla-inbound. CLOSED TREE
--HG--
rename : testing/web-platform/tests/css/cssom/cssstyledeclaration-mutationrecord-002.html => testing/web-platform/tests/css/cssom/cssstyledeclaration-mutationrecord-005.html
extra : rebase_source : ced056102700e812cb71f2301aa74558341e67ac
2018-10-12 20:00:55 +03:00
Alex Chronopoulos
12ad318568 Bug 934425 - Add device info in MediaDevice. r=jib
MediaDevice is the core object for audio device enumeration. By adding AudioDeviceInfo every information of audio devices will be available. In this case device id will be available from the first enumeration and there is no need to enumerate multiple times to get that info.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 08:48:22 +00: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
Paul Adenot
49c116de8b Bug 1487057 - Part 11 - Work around the fact that EndTrack uses mCommands. r=pehrsons
This is temporaray until Andreas fixes all this.

--HG--
extra : rebase_source : b149b4b2bfa70355ce5e624f0c55368885b2f885
2018-10-12 15:57:49 +02:00
Paul Adenot
52601aba7c Bug 1487057 - Part 10 - Remove MediaEngineWebRTCAudio::mEnabled. r=pehrsons
It was redundant with mState.

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

--HG--
extra : rebase_source : 7af2c72a833bf9a75d45d89a47f749db6376372e
2018-10-03 14:58:28 +02:00
Paul Adenot
b90b8e2060 Bug 1487057 - Part 9 - Make SourceMediaStream::SetEnded go through the message queue so it's in the right order w.r.t. Stop. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7601

--HG--
extra : rebase_source : 75b9cbcaae6b403b4e7de8a2c979c4e43deebc20
2018-10-01 17:12:14 +02: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
Narcis Beleuzu
f12bd72768 Backed out changeset d0a586d4d64a (bug 1494498) for Windows MinGW bustages on MediaTrackConstraints.cpp 2018-10-02 04:43:30 +03:00
Jan-Ivar Bruaroey
69468683c7 Bug 1494498 - Some constraints were missing in MediaManager logs. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7153

--HG--
extra : moz-landing-system : lando
2018-10-01 14:34:33 +00:00
Jan-Ivar Bruaroey
09ed84ec91 Bug 1494806 - Fixed exact string constraints w/arrays, e.g. {deviceId: {exact:['id']}}, were treated as ideal. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7144

--HG--
extra : moz-landing-system : lando
2018-09-28 11:29:12 +00:00
Paul Adenot
cc3d47676e Bug 1481152 - Restrict to a single input stream per process on Linux, when using PulseAudio and audio remoting is enabled. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5543

--HG--
extra : moz-landing-system : lando
2018-09-25 10:04:44 +00:00
Andreas Pehrson
529b7c66ea Bug 1488832 - Change init assert to runtime guard. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6144

--HG--
extra : moz-landing-system : lando
2018-09-20 12:29:50 +00:00
Paul Adenot
b2a7495547 Bug 1487057 - Part 8 - Split MediaEngineWebRTCMicrophoneSource in two classes, one for control one for processing. r=pehrsons
Big but not complex:
- Remove the mutex
- Move all MSG thread to a new class (AudioInputProcessing)
- Remove the WebRTCAudioDataListener class, AudioInputProcessing is the listener
- Use message passing for all modifications to the AudioInputProcessing.

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

--HG--
extra : rebase_source : 84368e8240cc47788ef2b56eb31d2a33e80e0d23
2018-09-07 16:53:23 +02:00
Paul Adenot
7a59e87c14 Bug 1487057 - Part 7 - Flatten mAllocation and fix some locking. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5441

--HG--
extra : rebase_source : 353ee24444a3cfc561f7ffc541a3fd8043b87fb9
2018-09-05 16:00:33 +02:00
Paul Adenot
0321a0af2e Bug 1487057 - Part 6 - Reorganize attributes and document thread access better. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5440

--HG--
extra : rebase_source : f6812dbce7bb1ace647293d31e3ea500c0d8b4e1
2018-09-03 14:52:54 +02:00
Paul Adenot
e9769f1597 Bug 1487057 - Part 5 - Remove MediaEngineWebRTCMicrophoneSource::mStarted. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5439

--HG--
extra : rebase_source : 31a0b36e2bc6431a6c7aa387baddfd9d3e35f8f8
2018-09-03 11:10:32 +02:00
Paul Adenot
3f4724fcbb Bug 1487057 - Part 4 - Remove AsyncLatencyLogger and associated code. r=pehrsons
It's not maintained and probably does not work anymore.

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

--HG--
extra : rebase_source : ccd622e40844dda5d16266e49991462d4ea94224
2018-08-30 17:11:57 +02:00
Paul Adenot
6a77327e7f Bug 1487057 - Part 3 - Turn the mAllocations array into an mAllocation UniquePtr, that can be nullptr. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5437

--HG--
extra : rebase_source : 4afa5a090d80b9aba6c0df7ef727fc8743b46f7b
2018-08-29 19:00:28 +02:00
Paul Adenot
cfcb3f6cae Bug 1487057 - Part 2 - Remove RegisterForAudioMixing/NeedsMixing, they are unused. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5436

--HG--
extra : rebase_source : 107c7ff741569744c556ef0583c5c7231b502620
2018-08-29 15:29:08 +02:00
Paul Adenot
2d349d59bd Bug 1487057 - Part 1 - Move audio related classes in MediaEngineWebRTC.h to their own header files, clean up includes slightly. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D5435

--HG--
extra : rebase_source : d0b5668aaf127a9456e9e12e1cc4f464a02559c9
2018-08-29 14:38:43 +02:00
Andreas Pehrson
c66af482b6 Bug 1490700 - Cap capability values to avoid truncation. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5785

--HG--
extra : moz-landing-system : lando
2018-09-14 09:15:53 +00:00
Andreas Pehrson
bbcf773bf1 Bug 1490700 - Ignore scaling requests to a max dimension of 0. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5784

--HG--
extra : moz-landing-system : lando
2018-09-14 09:16:24 +00:00
Masatoshi Kimura
49ee57f31d Bug 1485028 - Fix warnings that are specific to clang-cl ASAN builds. r=dmajor
--HG--
extra : source : f0b577cc8b920352dfe297e7ec9cca58b1838c5d
2018-08-22 02:02:56 +09:00
Philipp Hancke
3a00b39e7b Bug 1481851 - Add kind to RTCRtpStreamStats as alias to mediaType. r=ng,smaug
spec change in https://github.com/w3c/webrtc-stats/issues/301
2018-08-08 17:30:40 +02:00
Alex Chronopoulos
0a6ae381d4 Bug 1481957 - Make input device enumeration for Android similar to other platforms when cubeb is disabled. r=padenot
In the case that cubeb is disabled we do not need to offer the dummy device on android because will leave gUM request thinking that everything is good, which will create other side effects. Also the special handling for android increases the complexity.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:25:38 +00:00