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

1093 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 8028758d0e Bug 1454998 - Remove the notion of streams from MediaStreamGraph. r=padenot,karlt
This change mainly removes the `mTracks` member from MediaStream and moves all
associated members up a level, so that a MediaStream in practice represents a
single track.

Classes will be renamed in a future patch to reflect this.

Other changes include:

The new `mEnded` member of MediaStream changes meaning to only become true when
all data in the stream has been processed. It stems from
StreamTracks::Track::mEnded which used to become true as soon as the last bit of
data had been added to a track, and there could still be data in the track that
would get processed in future iterations. We are moving towards not having any
future data in tracks, which is why this change is ok to make -- keeping the old
behavior will soon not make sense.

TrackUnionStream is changed to no longer take a list of streams as input and
forward the union of their tracks to itself. Instead it's limited to having one
track as input at a time.

The autofinishing functionality that TrackUnionStream had before has been
transformed into an autoending functionality to allow it to defer ending until
its been told that it's ok to end through the control API. This lets a single
TrackUnionStream span the lifetime of multiple inputs, which will be useful for
making DecodedStream spec compliant with HTMLMediaElement::CaptureStream(), and
for implementing the currently discussed MediaRecorder::ReplaceTrack(), to name
a few potential use cases.

AudioNodeStreams used to only have a track (and thus an AudioSegment) if the
EXTERNAL_OUTPUT flag was enabled on them. With all MediaStreams now representing
a track, AudioNodeStreams inherently have an AudioSegment as a member. It is
however only used with data if the EXTERNAL_OUTPUT flag is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 10:22:53 +00:00
Gurzau Raul 40dae37e00 Backed out 7 changesets (bug 1454998) for build bustages at MediaTrackGraph.h on a CLOSED TREE.
Backed out changeset 80417bdfa721 (bug 1454998)
Backed out changeset 8ff03f2f4ca2 (bug 1454998)
Backed out changeset ae6056b748d1 (bug 1454998)
Backed out changeset ab721cb2066b (bug 1454998)
Backed out changeset d0e8d413cd1c (bug 1454998)
Backed out changeset 3ce4dc7e9ae2 (bug 1454998)
Backed out changeset 6105a4176729 (bug 1454998)

--HG--
rename : dom/media/AudioCaptureTrack.cpp => dom/media/AudioCaptureStream.cpp
rename : dom/media/AudioCaptureTrack.h => dom/media/AudioCaptureStream.h
rename : dom/media/MediaTrackGraph.cpp => dom/media/MediaStreamGraph.cpp
rename : dom/media/MediaTrackGraph.h => dom/media/MediaStreamGraph.h
rename : dom/media/MediaTrackGraphImpl.h => dom/media/MediaStreamGraphImpl.h
rename : dom/media/MediaTrackListener.cpp => dom/media/MediaStreamListener.cpp
rename : dom/media/MediaTrackListener.h => dom/media/MediaStreamListener.h
rename : dom/media/ForwardedInputTrack.cpp => dom/media/TrackUnionStream.cpp
rename : dom/media/ForwardedInputTrack.h => dom/media/TrackUnionStream.h
rename : dom/media/webaudio/AudioNodeExternalInputTrack.cpp => dom/media/webaudio/AudioNodeExternalInputStream.cpp
rename : dom/media/webaudio/AudioNodeExternalInputTrack.h => dom/media/webaudio/AudioNodeExternalInputStream.h
rename : dom/media/webaudio/AudioNodeTrack.cpp => dom/media/webaudio/AudioNodeStream.cpp
rename : dom/media/webaudio/AudioNodeTrack.h => dom/media/webaudio/AudioNodeStream.h
2019-10-02 11:46:23 +03:00
Andreas Pehrson 36d89d91c8 Bug 1454998 - Rename streams to tracks. r=padenot,karlt,smaug
This renames the following (in alphabetical order, non-exhaustive):

AudioCaptureStream -> AudioCaptureTrack
AudioNodeStream -> AudioNodeTrack
AudioNodeExternalInputStream -> AudioNodeExternalInputTrack
DirectMediaStreamTrackListener -> DirectMediaTrackListener
MediaStream -> MediaTrack
  - Note that there's also dom::MediaTrack. Namespaces differentiate them.
MediaStreamGraph -> MediaTrackGraph
MediaStreamTrackListener -> MediaTrackListener
MSG -> MTG (in comments)
ProcessedMediaStream -> ProcessedMediaTrack
SharedDummyStream -> SharedDummyTrack
SourceMediaStream -> SourceMediaTrack
StreamTime -> TrackTime
TrackUnionStream -> ForwardedInputTrack
  - Because this no longer takes a union of anything, but only a single track
    as input.

Other minor classes, members and comments have been updated to reflect these
name changes.

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

--HG--
rename : dom/media/AudioCaptureStream.cpp => dom/media/AudioCaptureTrack.cpp
rename : dom/media/AudioCaptureStream.h => dom/media/AudioCaptureTrack.h
rename : dom/media/TrackUnionStream.cpp => dom/media/ForwardedInputTrack.cpp
rename : dom/media/TrackUnionStream.h => dom/media/ForwardedInputTrack.h
rename : dom/media/MediaStreamGraph.cpp => dom/media/MediaTrackGraph.cpp
rename : dom/media/MediaStreamGraph.h => dom/media/MediaTrackGraph.h
rename : dom/media/MediaStreamGraphImpl.h => dom/media/MediaTrackGraphImpl.h
rename : dom/media/MediaStreamListener.cpp => dom/media/MediaTrackListener.cpp
rename : dom/media/MediaStreamListener.h => dom/media/MediaTrackListener.h
rename : dom/media/webaudio/AudioNodeExternalInputStream.cpp => dom/media/webaudio/AudioNodeExternalInputTrack.cpp
rename : dom/media/webaudio/AudioNodeExternalInputStream.h => dom/media/webaudio/AudioNodeExternalInputTrack.h
rename : dom/media/webaudio/AudioNodeStream.cpp => dom/media/webaudio/AudioNodeTrack.cpp
rename : dom/media/webaudio/AudioNodeStream.h => dom/media/webaudio/AudioNodeTrack.h
extra : moz-landing-system : lando
2019-10-02 08:18:16 +00:00
Andreas Pehrson 1bc37d8ea4 Bug 1454998 - Remove the notion of streams from MediaStreamGraph. r=padenot,karlt
This change mainly removes the `mTracks` member from MediaStream and moves all
associated members up a level, so that a MediaStream in practice represents a
single track.

Classes will be renamed in a future patch to reflect this.

Other changes include:

The new `mEnded` member of MediaStream changes meaning to only become true when
all data in the stream has been processed. It stems from
StreamTracks::Track::mEnded which used to become true as soon as the last bit of
data had been added to a track, and there could still be data in the track that
would get processed in future iterations. We are moving towards not having any
future data in tracks, which is why this change is ok to make -- keeping the old
behavior will soon not make sense.

TrackUnionStream is changed to no longer take a list of streams as input and
forward the union of their tracks to itself. Instead it's limited to having one
track as input at a time.

The autofinishing functionality that TrackUnionStream had before has been
transformed into an autoending functionality to allow it to defer ending until
its been told that it's ok to end through the control API. This lets a single
TrackUnionStream span the lifetime of multiple inputs, which will be useful for
making DecodedStream spec compliant with HTMLMediaElement::CaptureStream(), and
for implementing the currently discussed MediaRecorder::ReplaceTrack(), to name
a few potential use cases.

AudioNodeStreams used to only have a track (and thus an AudioSegment) if the
EXTERNAL_OUTPUT flag was enabled on them. With all MediaStreams now representing
a track, AudioNodeStreams inherently have an AudioSegment as a member. It is
however only used with data if the EXTERNAL_OUTPUT flag is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 08:17:51 +00:00
Dan Minor 90e44f7695 Bug 1567201 - Use mdns_service to handle mDNS queries; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D46977

--HG--
extra : moz-landing-system : lando
2019-10-01 12:58:23 +00:00
Alex Chronopoulos 628dbc7c0a Bug 1584560 - On default settings use the actual device channel count. r=padenot
In `MediaEngineWebRTCMicrophoneSource::EvaluateSettings`, on default settings, the `prefs.mChannels` is updated accordingly. However, it is not used for the calculation of the `FlattenedConstraints`. As a result, the channel count is 0, which is converted to 1, and not the actual device channel count as it should. Thus, the `prefs.mChannels` is used in the calculation of the `FlattenedConstraints`.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 09:15:42 +00:00
Alex Chronopoulos 37976e189f Bug 1572281 - Enhance CubebDeviceEnumerator to accept listeners and signal notifications when an audio device changes. r=pehrsons
CubebDeviceEnumerator already knows when an audio device changes. It is enhanced to allow listeners/observers registration and to create notifications when that happens. Also, it is hooked to the existing notification path.

On a minor note, it has been revisited the way the enumerator is touched in MediaEngineWebRTC class.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:13:51 +00:00
Alex Chronopoulos 192023066e Bug 1572281 - In DeviceChangeCallback class separate the observer from the subject functionality. r=pehrsons
DeviceChangeCallback class implements the observer pattern. However, the role of the observer and the subject is integrated into the same class which makes use of virtual methods to allow a separation of the roles. This makes code reading difficult. Also, it does not allow from a class to inherit only the observer role or the subject role. This patch breaks the DeviceChangeCallback class into two classes according to the observer or subject functionality.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:11:31 +00:00
Byron Campen [:bwc] abf0777414 Bug 1569183: Create an ipdl struct called WebrtcProxyConfig, to cut down on the arg count on lots of functions. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45562

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:04 +00:00
Byron Campen [:bwc] dbee4e76f5 Bug 1569183: Add a proxy policy argument to NrSocketProxyConfig, and always set this config on the NrIceCtx. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45101

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:14 +00:00
Byron Campen [:bwc] 8bd10b72d0 Bug 1569183: Rename SetProxyServer to SetProxyConfig to better reflect what is actually going on. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45100

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:13 +00:00
Alex Chronopoulos 0cfc13adee Bug 1575026 - Remove an assert on Windows. r=bryce
The assert verifies that there is only one preferred device. On windows it is expected to have more than one preferred device so it is removed.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 17:17:33 +00:00
Andreas Pehrson 4ca24c269d Bug 1573102 - Remove MediaStreamGraphImpl strong-refs from MediaEngineWebRTCAudio. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D43668

--HG--
extra : moz-landing-system : lando
2019-08-29 13:33:08 +00:00
Dan Minor 6c6b65f876 Bug 1554976 - Add plumbing to enable/disable host address obfuscation; r=mjf
This only enables mDNS on OS X for now. Some versions of Windows lack mDNS
support, there are some oddities with resolving IPv6 addresses on Linux, and
Android has not yet been tested. All of these will be addressed in follow on
bugs.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 19:50:06 +00:00
Dan Minor 2665020e51 Bug 1554976 - Copy actual address to CandidateInfo in MediaTransportHandler; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38494

--HG--
extra : moz-landing-system : lando
2019-08-28 19:49:36 +00:00
Gurzau Raul a6c5c5e3ac Backed out 14 changesets (bug 1554976) for Windows build bustages on a CLOSED TREE.
Backed out changeset a9b209d9d880 (bug 1554976)
Backed out changeset 27b4dddf9597 (bug 1554976)
Backed out changeset 3e16c10bb966 (bug 1554976)
Backed out changeset 6a404fca61dc (bug 1554976)
Backed out changeset 77c4e76c8130 (bug 1554976)
Backed out changeset 24f146b86cc4 (bug 1554976)
Backed out changeset b49b4326dcfd (bug 1554976)
Backed out changeset e2c837d1e0a0 (bug 1554976)
Backed out changeset 24728144c263 (bug 1554976)
Backed out changeset a099e69241a0 (bug 1554976)
Backed out changeset 0e34595c2680 (bug 1554976)
Backed out changeset a506bb40047e (bug 1554976)
Backed out changeset 513026415092 (bug 1554976)
Backed out changeset e0fc6a1d4332 (bug 1554976)
2019-08-28 18:10:11 +03:00
Dan Minor 2da923ff0b Bug 1554976 - Add plumbing to enable/disable host address obfuscation; r=mjf
This only enables mDNS on OS X for now. Some versions of Windows lack mDNS
support, there are some oddities with resolving IPv6 addresses on Linux, and
Android has not yet been tested. All of these will be addressed in follow on
bugs.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:33 +00:00
Dan Minor 717793ab02 Bug 1554976 - Copy actual address to CandidateInfo in MediaTransportHandler; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38494

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:20 +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 b150866dce Bug 1571667 - Memoize capabilities in MediaEngineRemoteVideoSource. r=jib,dminor
Differential Revision: https://phabricator.services.mozilla.com/D41241

--HG--
extra : moz-landing-system : lando
2019-08-28 08:39:50 +00:00
Ryan Alderete 4b595ec1a8 Bug 1570158 - Add proxy information to candidates table in about:webrtc r=bwc,baku
This adds a field to about:webrtc which indicates whether an associated
candidate is behind a proxy or not.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:04:45 +00:00
Mike Hommey 0058f2a284 Bug 1531309 - Don't use __PRETTY_FUNCTION__ or __FUNCTION__ as format strings. r=sylvestre
__PRETTY_FUNCTION__ and __FUNCTION__ are not guaranteed to be a string
literal, and only string literals should be used as format strings. GCC
9 complains about this with -Werror=format-security.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:49:00 +00:00
Perry Jiang f399d514b9 Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-15 17:25:44 +00:00
Dorel Luca 73975f1d28 Backed out 22 changesets (bug 1231213) for Browser-chrome failures on /workers/remoteworkers/RemoteWorkerChild.cpp
Backed out changeset 7e09ad9ceea6 (bug 1231213)
Backed out changeset a275eb0b1a19 (bug 1231213)
Backed out changeset 906b80778539 (bug 1231213)
Backed out changeset 6a40ab6852cb (bug 1231213)
Backed out changeset 216591953f97 (bug 1231213)
Backed out changeset 1de357bc1921 (bug 1231213)
Backed out changeset 8e3fedf6502a (bug 1231213)
Backed out changeset 1b9a8b022fce (bug 1231213)
Backed out changeset 85df1959eb98 (bug 1231213)
Backed out changeset 666bf4260046 (bug 1231213)
Backed out changeset 0b03a19a6dc1 (bug 1231213)
Backed out changeset 11f010e6d6e7 (bug 1231213)
Backed out changeset 6ed55807374f (bug 1231213)
Backed out changeset 395062aef2ec (bug 1231213)
Backed out changeset bacf8499ba7b (bug 1231213)
Backed out changeset bf5d60c7a85a (bug 1231213)
Backed out changeset cd434b787ce6 (bug 1231213)
Backed out changeset ee4565104217 (bug 1231213)
Backed out changeset 581653ef33dd (bug 1231213)
Backed out changeset 2d5628a0e52d (bug 1231213)
Backed out changeset 3449c2eba4c6 (bug 1231213)
Backed out changeset ae221b628899 (bug 1231213)
2019-08-15 01:04:46 +03:00
Perry Jiang dd139fd2a4 Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-14 16:19:28 +00:00
Cosmin Sabou 85a8083871 Backed out 22 changesets (bug 1231213) for build bustages on /mozilla/Attributes.h CLOSED TREE
Backed out changeset 4a45f2c447fd (bug 1231213)
Backed out changeset bcb4d348a847 (bug 1231213)
Backed out changeset ae78ac86cc86 (bug 1231213)
Backed out changeset d681c92a7f05 (bug 1231213)
Backed out changeset 1ac9661e7fb4 (bug 1231213)
Backed out changeset 796c617b989f (bug 1231213)
Backed out changeset c46b31113adb (bug 1231213)
Backed out changeset ea7334da65d9 (bug 1231213)
Backed out changeset 6e9273940bf5 (bug 1231213)
Backed out changeset 7df0e0ff9a82 (bug 1231213)
Backed out changeset 12aba06d169c (bug 1231213)
Backed out changeset e7d6d8d64e8a (bug 1231213)
Backed out changeset 097a29f3ff9a (bug 1231213)
Backed out changeset 1b7169b75760 (bug 1231213)
Backed out changeset 0fd1fd7c3f06 (bug 1231213)
Backed out changeset 3d539eb7faff (bug 1231213)
Backed out changeset 419f9bb7be3c (bug 1231213)
Backed out changeset caede0e4e888 (bug 1231213)
Backed out changeset 778eade5085d (bug 1231213)
Backed out changeset a84b262ff6f8 (bug 1231213)
Backed out changeset 97328368da02 (bug 1231213)
Backed out changeset 9c845d7e3b29 (bug 1231213)
2019-08-14 00:10:48 +03:00
Perry Jiang da3e06a0c9 Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-13 19:54:58 +00:00
Cosmin Sabou f870af790d Backed out 22 changesets (bug 1231213) for build bustages on RemoteWorkerChild.cpp. CLOSED TREE
Backed out changeset 06dba269fcfe (bug 1231213)
Backed out changeset 20b1ec70a6d0 (bug 1231213)
Backed out changeset be99adfb84ab (bug 1231213)
Backed out changeset 8cb30e5ef8d7 (bug 1231213)
Backed out changeset bdeff3d76292 (bug 1231213)
Backed out changeset 783bd2856798 (bug 1231213)
Backed out changeset e52869704d4d (bug 1231213)
Backed out changeset df97ea0bbe79 (bug 1231213)
Backed out changeset 822ade495b97 (bug 1231213)
Backed out changeset 06281fe76994 (bug 1231213)
Backed out changeset c8c1d3aa27c6 (bug 1231213)
Backed out changeset b96a12cd2c73 (bug 1231213)
Backed out changeset a1dcf2ea83be (bug 1231213)
Backed out changeset 6e2934410f95 (bug 1231213)
Backed out changeset d4ffae32539b (bug 1231213)
Backed out changeset d99f2cbe0ed2 (bug 1231213)
Backed out changeset 3bbea49c6d03 (bug 1231213)
Backed out changeset dac29b0340ce (bug 1231213)
Backed out changeset 0591a2a0cc41 (bug 1231213)
Backed out changeset afc3b2b9d472 (bug 1231213)
Backed out changeset 89fffd7b8740 (bug 1231213)
Backed out changeset 30b9a65a6294 (bug 1231213)
2019-08-13 21:30:20 +03:00
Perry Jiang 2f87473079 Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-13 04:57:55 +00:00
Narcis Beleuzu f53affe1cb Backed out 22 changesets (bug 1231213) for build bustages on RemoteWorkerChild.cpp . CLOSED TREE
Backed out changeset 6f25a7e73fe2 (bug 1231213)
Backed out changeset 5e88c3855fb6 (bug 1231213)
Backed out changeset a78d7b3e44af (bug 1231213)
Backed out changeset eb7f3a9b0a42 (bug 1231213)
Backed out changeset 87575a180ad5 (bug 1231213)
Backed out changeset 4e8369314e87 (bug 1231213)
Backed out changeset 039c34bc043c (bug 1231213)
Backed out changeset 0528ab68d94e (bug 1231213)
Backed out changeset 670e7d61d95c (bug 1231213)
Backed out changeset d61b9d65bd0a (bug 1231213)
Backed out changeset 9042ea694d40 (bug 1231213)
Backed out changeset bc0607e0d50b (bug 1231213)
Backed out changeset 196ee18781cb (bug 1231213)
Backed out changeset 4b588dec466b (bug 1231213)
Backed out changeset be6031a6fca7 (bug 1231213)
Backed out changeset 12e04c22f52f (bug 1231213)
Backed out changeset fd146f327f2d (bug 1231213)
Backed out changeset f2af7b66f50d (bug 1231213)
Backed out changeset 71d93fc98d3f (bug 1231213)
Backed out changeset 280271806864 (bug 1231213)
Backed out changeset ca4e828345a2 (bug 1231213)
Backed out changeset e41b984510ad (bug 1231213)
2019-08-13 07:47:05 +03:00
Perry Jiang 931915402d Bug 1231213 - Properly declare some dependencies so everything will compile with additional files. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26158

--HG--
extra : moz-landing-system : lando
2019-08-13 04:03:11 +00:00
Dan Minor 97c5db53eb Bug 1561923 - Remove expired WebRTC telemetry; r=drno,bwc
Differential Revision: https://phabricator.services.mozilla.com/D37757

--HG--
extra : moz-landing-system : lando
2019-07-31 19:57:55 +00:00
Andreas Pehrson 4b3fa9c67e Bug 1493613 - Move MediaStream control from DOMMediaStream to MediaStreamTrack. r=padenot
This is inherently large, because modifying these bits of DOMMediaStream and
MediaStreamTrack affects all consumers and producers of all DOMMediaStreams and
MediaStreamTracks.

Things are generally much simpler now.

Producers of tracks now create a MediaStream in the graph, add it to a
MediaStreamTrackSource subclass that takes ownership of it, and add the source
to a MediaStreamTrack. Should the producer need a DOMMediaStream it is now much
simpler to create as the only thing needed is the current window. The stream is
a rather simple wrapper around an array of MediaStreamTracks.

HTMLMediaElement is still not as straight forward as other consumers since it
consumes the DOMMediaStream directly, as opposed to a set of tracks.
The new MediaStreamRenderer helper class helps bridge the gap between this fact
and the new track-based MediaStreamGraph interface, as it needs to juggle
registering multiple audio tracks for audio output. This hooks into existing
HTMLMediaElement logic and brings a welcome simplification to all the glue
previously needed there.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 07:58:17 +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
Jean-Yves Avenard 577b826128 Bug 1543359 - P13. Let the video decoder determines the default colorspace if unknown. r=mattwoodrow
When unknown, we rely on the picture height and assume that anything less than 720p is 601 and 709 otherwise. It's not perfect but it's the best we can do.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 08:45:39 +00:00
Narcis Beleuzu e84980d8b1 Backed out 15 changesets (bug 1543359) for wrench bustages on image.rs . CLOSED TREE
Backed out changeset 548006270186 (bug 1543359)
Backed out changeset c9585e9d9f3c (bug 1543359)
Backed out changeset 1c7ca95a2a9b (bug 1543359)
Backed out changeset d742d80b892f (bug 1543359)
Backed out changeset 210eee703fd9 (bug 1543359)
Backed out changeset 4eb933d55d88 (bug 1543359)
Backed out changeset fb9b71ed9f4b (bug 1543359)
Backed out changeset 98b968443458 (bug 1543359)
Backed out changeset a85bd4691bea (bug 1543359)
Backed out changeset b576317853e9 (bug 1543359)
Backed out changeset 095bca5c9b1a (bug 1543359)
Backed out changeset 48eb0ebf9f2e (bug 1543359)
Backed out changeset b22b0eb708b8 (bug 1543359)
Backed out changeset 52187d9320b1 (bug 1543359)
Backed out changeset fa6792c1c2e8 (bug 1543359)
2019-07-26 11:40:33 +03:00
Jean-Yves Avenard d6adb6b604 Bug 1543359 - P13. Let the video decoder determines the default colorspace if unknown. r=mattwoodrow
When unknown, we rely on the picture height and assume that anything less than 720p is 601 and 709 otherwise. It's not perfect but it's the best we can do.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 06:14:30 +00:00
Cosmin Sabou ae7e8fbf55 Backed out 14 changesets (bug 1543359) for causing build bustages. CLOSED TREE
Backed out changeset 87c99ef85813 (bug 1543359)
Backed out changeset cd0afc5758ba (bug 1543359)
Backed out changeset 101ac87ff017 (bug 1543359)
Backed out changeset 348e748e3451 (bug 1543359)
Backed out changeset d9e937f5caf4 (bug 1543359)
Backed out changeset 2f4eb6501552 (bug 1543359)
Backed out changeset 0d316ef8c668 (bug 1543359)
Backed out changeset bf238b58c694 (bug 1543359)
Backed out changeset 496f206d03d6 (bug 1543359)
Backed out changeset 7c3a1f23baa8 (bug 1543359)
Backed out changeset 90fff717198b (bug 1543359)
Backed out changeset b2ce591ca398 (bug 1543359)
Backed out changeset a63968f077e3 (bug 1543359)
Backed out changeset ca660ab1e0c1 (bug 1543359)
2019-07-26 07:39:11 +03:00
Jean-Yves Avenard 84900ae6ff Bug 1543359 - P13. Let the video decoder determines the default colorspace if unknown. r=mattwoodrow
When unknown, we rely on the picture height and assume that anything less than 720p is 601 and 709 otherwise. It's not perfect but it's the best we can do.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 04:26:56 +00:00
Ryan Alderete 992406dcb2 Bug 1506219 - Use a known remote for applications loaded from file:// URIs r=bwc
Fall back to using Google's DNS server to determine the associated local
addresses for web applications that are not loaded over the network.  This
includes the loopback address, which is frequently used in the unit tests.

Provide a separate function for setting the target for the default local
address lookup.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 21:58:33 +00:00
Ryan Alderete cd13ca2e02 Bug 1506219 - Update default route according to latest IETF draft r=bwc
draft-ietf-rtcweb-ip-handling specifies that the default route is the route
used to reach the origin rather than the one used to reach the internet, so
update the IP routing to reflect this.  This addresses issues in which the
wrong IP address is used on machines with multiple network interfaces.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 19:50:46 +00:00
Ciure Andrei 24c0d0e47d Backed out 2 changesets (bug 1506219) for causing test_presentation_datachannel_sessiontransport.html to perma fail CLOSED TREE
Backed out changeset 7e39db6e12a5 (bug 1506219)
Backed out changeset ab31fbc14a00 (bug 1506219)
2019-07-22 23:54:45 +03:00
Ryan Alderete 14e5b45ecc Bug 1506219 - Use a known remote for applications loaded from file:// URIs r=bwc
Fall back to using Google's DNS server to determine the associated local
addresses for web applications that are not loaded over the network.  This
includes the loopback address, which is frequently used in the unit tests.

Provide a separate function for setting the target for the default local
address lookup.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 15:42:06 +00:00
Ryan Alderete 35bd2662ca Bug 1506219 - Update default route according to latest IETF draft r=bwc
draft-ietf-rtcweb-ip-handling specifies that the default route is the route
used to reach the origin rather than the one used to reach the internet, so
update the IP routing to reflect this.  This addresses issues in which the
wrong IP address is used on machines with multiple network interfaces.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 15:43:12 +00:00
Byron Campen [:bwc] 6480f0a928 Bug 1560636: Avoid using main thread with PMediaTransport. r=mjf,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D36818

--HG--
extra : moz-landing-system : lando
2019-07-15 15:49:30 +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 cf67d306f8 Bug 1561569 - Put limits to width and height constraints in MediaEngineVideoDefault. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36028

--HG--
extra : moz-landing-system : lando
2019-07-08 14:56:13 +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 dc0eb05ef0 Bug 1560207 - Reset all settings on every settings update, to avoid double-constructing. r=jib
Depends on D36192

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:13:11 +00:00
Sylvestre Ledru 2bf505b023 Bug 1562642 - Add missing MPL2 headers r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D37053

--HG--
extra : moz-landing-system : lando
2019-07-05 17:05:57 +00:00
Boris Zbarsky 2a6bd5b432 Bug 1350254 part 10. Switch RTCCertificate to [Serializable]. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D35724

--HG--
extra : moz-landing-system : lando
2019-06-25 06:49:06 +00:00
Boris Zbarsky a136313b5e Bug 1350254 part 7. Consolidate ReadString/WriteString helpers for structured serialization. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D35721

--HG--
extra : moz-landing-system : lando
2019-06-25 06:48:33 +00:00
sotaro e615d8edf3 Bug 1557257 - Rename KnowsCompositor* aForwarder to aKnowsCompositor r=nical
Differential Revision: https://phabricator.services.mozilla.com/D33928

--HG--
extra : moz-landing-system : lando
2019-06-07 12:27:05 +00:00
Andreas Pehrson 19b125b016 Bug 1537986 - Add facingMode to MediaEngineRemoteVideoSource's settings. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32965

--HG--
extra : moz-landing-system : lando
2019-06-03 10:40:02 +00:00
Andreas Pehrson 612199b2c5 Bug 1537986 - Implement GetSettings for the tab source. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32963

--HG--
extra : moz-landing-system : lando
2019-05-31 10:55:31 +00:00
Andreas Pehrson fccffd3cd8 Bug 1537986 - Implement GetSettings for audio capture. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32962

--HG--
extra : moz-landing-system : lando
2019-05-31 14:47:47 +00:00
Andreas Pehrson c6cab7dc2e Bug 1537986 - Implement GetSettings for fake devices. r=jib
This will help our WPT stats.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 10:55:10 +00:00
Andreas Pehrson 4b297e5e1e Bug 1537986 - Make MediaSourceEngine::GetSettings mandatory. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D32960

--HG--
extra : moz-landing-system : lando
2019-05-31 10:54:56 +00:00
Jan-Ivar Bruaroey 6f1f1f6d20 Bug 1546865 - Retry gUM on mic process limit collision after 200 ms. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D30290

--HG--
extra : moz-landing-system : lando
2019-05-10 16:06:09 +00:00
Dan Minor 522725a730 Bug 1497559 - Remove application capture support; r=ng
This removes all references to application capture except from MediaSourceEnum.
That was left in place so as to not change the enumerated values used
for WEBRTC_GET_USER_MEDIA_TYPE telemetry.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 16:35:39 +00:00
Byron Campen [:bwc] fd880e95f8 Bug 1545827: Use TabId instead of PBrowserOrId, use LoadInfoArgs to avoid using the system principal on the socket process, and use PSocketProcess for the WebrtcProxyChannel when on the socket process. r=kershaw,mjf
Differential Revision: https://phabricator.services.mozilla.com/D28239

--HG--
extra : moz-landing-system : lando
2019-04-26 14:46:26 +00:00
Masayuki Nakano 2933c032e7 Bug 1545342 - part 3: Move remaining public enum of nsIPresShell to mozilla namespace in mozilla/PresShellForwards.h and make them enum class r=smaug
This patch moves remaining public `enum` of `nsIPresShell` to `mozilla`
namespace in `mozilla/PresShellForwards.h` and make them `enum class`es.

Additionally, some methods which use the moving `enum`s from `nsIPresShell`
to `PresShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 05:04:23 +00:00
Sylvestre Ledru a1dce6440a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-22 16:35:03 +00:00
Andrew McCreight f242e71c8a Bug 1545822 - Clean up some whitespace in XPIDL files. r=froydnj
The attributes for an interface should be on the line right before the
interface.

Interface attributes should be separated by spaces.

Clean up some trailing whitespace in widget/.

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

--HG--
extra : moz-landing-system : lando
2019-04-21 01:47:00 +00:00
Alex Chronopoulos bd827c189f Bug 1541290 - Close audio input from main thread to ensure that the message is not executed on a closed graph. r=pehrsons
CloseAudioInut method posts a message, to the graph thread, in order to close the input asynchonously. When CloseAudioInput method was being executed from a thread other than the main thread, a runnable would be posted to main thread in order to post the async message from there. That was a risky path because when the graph was shutting down there were no guarantee that the close-input message would reach the graph thread before destroy takes place. By limiting CloseAudioInput to main thread it is ensured that the close-input message will be executed before destroy.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 18:35:20 +00:00
Paul Adenot 784704534a Bug 1531833 - When the input is voice, activate the global communication mode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21738

--HG--
extra : moz-landing-system : lando
2019-04-16 15:42:42 +00:00
Paul Adenot b1c0df1177 Bug 1531833 - Add a way to tell the graph driver that the audio input is voice. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21737

--HG--
extra : moz-landing-system : lando
2019-04-16 15:42:38 +00:00
Masayuki Nakano 0986fb819b Bug 1542506 - Make nsDocShell use mozilla::PresShell* directly rather than nsIPresShell* r=bzbarsky
This patch makes `nsDocShell::GetPresShell()` and
`nsDocShell::GetEldestPresShell()` return `mozilla::PresShell*` and
some non-public methods use `mozilla::PresShell*` directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-13 01:03:13 +00:00
Boris Zbarsky 6d78fdff25 Bug 1543564 part 1. Get rid of pointless nsPIDOMWindowOuter::AsOuter() methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27026

--HG--
extra : moz-landing-system : lando
2019-04-11 12:12:04 +00:00
Oana Pop Rus 212a653d81 Backed out 6 changesets (bug 1531833) for geckoview failures on PermissionDelegateTest.media CLOSED TREE
Backed out changeset f90ad6bb8ebd (bug 1531833)
Backed out changeset 465570a54b46 (bug 1531833)
Backed out changeset e725253ee976 (bug 1531833)
Backed out changeset 74ad8e7a722b (bug 1531833)
Backed out changeset b1268e5f7023 (bug 1531833)
Backed out changeset e3ec78b2db1f (bug 1531833)

--HG--
extra : amend_source : 81aa19c352e72cac2369e014d19ec5a896538b21
2019-04-11 21:16:55 +03:00
Paul Adenot 387f4ae5fd Bug 1531833 - When the input is voice, activate the global communication mode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21738

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:35 +00:00
Paul Adenot 7806f50930 Bug 1531833 - Add a way to tell the graph driver that the audio input is voice. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21737

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Sylvestre Ledru 03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Csoregi Natalia ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Narcis Beleuzu 24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru 399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Sylvestre Ledru ef0bfc3822 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Andreas Pehrson 8a27a07a02 Bug 1494675 - Fix remaining static-analysis warnings in dom/media/webrtc. r=jib
Bug 1538113 fixed most, but apparently some remained. Unclear why -- perhaps I
ran it with a different config this time.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:58:45 +00:00
Andreas Pehrson 4b06f8478d Bug 1494675 - Remove windowID to MediaEngineSource mappings from MediaEngines. r=padenot
These once served a caching-and-reuse purpose it seems, but it makes less sense
when sources are not shared.

There seems to still be functioning code to re-use fake audio devices, but this
seems like premature optimization. Especially since we don't care much about
fake devices in release.

This patch removes it all, together with some plumbing around the mechanism.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:10:10 +00:00
Andreas Pehrson 45fe07077f Bug 1494675 - Remove AllocationHandle. r=padenot
The handle was used to keep separate allocations of the same source in a single
process apart. Sources no longer use sharing, so we no longer need allocations
or their handles even as a concept.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:10:24 +00:00
Andreas Pehrson 7148d512ea Bug 1494675 - Remove MediaEngineSource::RequiresSharing. r=padenot
Sources are no longer shared.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 14:10:27 +00:00
Andreas Pehrson 5797084794 Bug 1525323 - Remove SourceTrackListener from MediaManager. r=padenot
This moves the responsibility of forwarding NotifyPull() from the graph thread
to MediaEngineSources out of MediaManager and into the sources themselves. This
is better aligned with how the sources work, since not all sources need pulling.
This also clarifies lifetime management of these listeners in relation to when
pulling is enabled for a track, since the sources are already handling enabling
pulling themselves.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:05:56 +00:00
Nico Grunbaum 32257b8b2e Bug 1531494 - remove all unimplemented RTCStats types from the WebIDL and prune related dead code r=bwc,smaug
This removes all the unimplemented RTCStats types from RTCStatsReport.webidl and deletes the related code

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

--HG--
extra : moz-landing-system : lando
2019-03-26 17:21:02 +00:00
Nico Grunbaum f7e4ecddf4 Bug 1515716 - refactor the RTC RTP stats types to match spec r=jib,smaug
realigning the RTP stats types to match spec. This involves breaking out the remote dictionary types. This shouldn't create user space visible changes.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 06:06:36 +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
Andreas Pehrson e57962eea8 Bug 1423253 - Remove durations from VideoSegment::AppendFrame. r=padenot
VideoSegments still have durations, and they are still needed by the
MediaStreamGraph as it shuffles MediaSegments around.
They do not have a say in the wall-clock duration of video frames however.
Removing this should prevent any producers starting to add video chunks with
durations in the future.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 11:43:40 +00:00
Andreas Pehrson 9abc2ffdf4 Bug 1423253 - Remove pulling (and mutex) from the default video source. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22911

--HG--
extra : moz-landing-system : lando
2019-03-22 11:43:23 +00:00
Andreas Pehrson 198ca9c5c6 Bug 1423253 - Remove pulling from MediaEngineTabVideoSource and fix thread safety. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22910

--HG--
extra : moz-landing-system : lando
2019-03-22 11:43:15 +00:00
Andreas Pehrson 78c790ab2a Bug 1423253 - Change MediaEngineRemoteVideoSource to push instead of pull. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22901

--HG--
extra : moz-landing-system : lando
2019-03-22 11:42:23 +00:00
Boris Zbarsky f81be92ae2 Bug 1535384 part 2. Eliminate MOZ_CAN_RUN_SCRIPT_BOUNDARY on some webrtc callbacks. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D23773

--HG--
extra : moz-landing-system : lando
2019-03-19 04:32:43 +00:00
Alex Chronopoulos 509d004d90 Bug 1534313 - Make GetDeviceCollection accessible only by the enumerator. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22989

--HG--
extra : moz-landing-system : lando
2019-03-19 10:40:25 +00:00
Alex Chronopoulos 026c81cfc9 Bug 1534313 - Add new method in enumerator to get the device info from device name. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22987

--HG--
extra : moz-landing-system : lando
2019-03-19 10:40:05 +00:00
Alex Chronopoulos a996b0052f Bug 1534313 - Put the default audio output first in the list of devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22986

--HG--
extra : moz-landing-system : lando
2019-03-19 10:39:57 +00:00
shindli 8940f3f1cb Backed out 4 changesets (bug 1534313) for causing a perfmafailing Gtest in /builds/worker/workspace/build/application/firefox/gmp-clearkey CLOSED TREE
Backed out changeset fe17244230e8 (bug 1534313)
Backed out changeset fc232edfe6e8 (bug 1534313)
Backed out changeset eae4a9ff0b9b (bug 1534313)
Backed out changeset f4252f238b68 (bug 1534313)
2019-03-18 18:53:33 +02:00
Alex Chronopoulos 7d781144c5 Bug 1534313 - Make GetDeviceCollection accessible only by the enumerator. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22989

--HG--
extra : moz-landing-system : lando
2019-03-18 13:52:17 +00:00
Alex Chronopoulos 64ed19f8a9 Bug 1534313 - Add new method in enumerator to get the device info from device name. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22987

--HG--
extra : moz-landing-system : lando
2019-03-14 16:31:46 +00:00
Alex Chronopoulos a3b4311080 Bug 1534313 - Put the default audio output first in the list of devices. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D22986

--HG--
extra : moz-landing-system : lando
2019-03-14 16:30:25 +00:00
Andrea Marchesini 42688a705f Bug 1535525 - Rename TrackingDummyChannel to ClassifierDummyChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23616

--HG--
rename : netwerk/protocol/http/TrackingDummyChannel.cpp => netwerk/protocol/http/ClassifierDummyChannel.cpp
rename : netwerk/protocol/http/TrackingDummyChannel.h => netwerk/protocol/http/ClassifierDummyChannel.h
rename : netwerk/protocol/http/TrackingDummyChannelChild.cpp => netwerk/protocol/http/ClassifierDummyChannelChild.cpp
rename : netwerk/protocol/http/TrackingDummyChannelChild.h => netwerk/protocol/http/ClassifierDummyChannelChild.h
rename : netwerk/protocol/http/TrackingDummyChannelParent.cpp => netwerk/protocol/http/ClassifierDummyChannelParent.cpp
rename : netwerk/protocol/http/TrackingDummyChannelParent.h => netwerk/protocol/http/ClassifierDummyChannelParent.h
rename : netwerk/protocol/http/PTrackingDummyChannel.ipdl => netwerk/protocol/http/PClassifierDummyChannel.ipdl
extra : moz-landing-system : lando
2019-03-15 18:55:10 +00:00
Dorel Luca bc871ba7f1 Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 1a86c239e49011cf1a857de6e020b91ca0b6bd67
2019-03-14 18:27:51 +02:00
Sylvestre Ledru 4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Alex Chronopoulos 9a704267d1 Bug 1518946 - Use the Await method instead of a sync dispatch because the latter allows the event loop to run while waiting. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23476

--HG--
extra : moz-landing-system : lando
2019-03-14 12:44:57 +00:00
David Major e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Byron Campen [:bwc] c33b5e6569 Bug 1490658: Support RTCIceCandidate.usernameFragment. r=mjf,smaug
Differential Revision: https://phabricator.services.mozilla.com/D21803

--HG--
extra : moz-landing-system : lando
2019-03-08 15:24:27 +00:00
sotaro 13efe8615e Bug 1534170 - Fix scope of TextureClientAutoLock in MediaEngineTabVideoSource r=mattwoodrow
TextureClientAutoLock was added by Bug 1440038. Its scope is not good. It should be existed before "MutexAutoLock lock(mMutex)".

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

--HG--
extra : moz-landing-system : lando
2019-03-11 08:00:10 +00:00
Alex Chronopoulos 6c25265b3d Bug 1213453 - Update mochitest to expect group id. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20373

--HG--
extra : moz-landing-system : lando
2019-03-08 11:52:17 +00:00
Alex Chronopoulos 871823085b Bug 1213453 - Add getters/setters for group id in MediaEngineSource and the derived classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20370

--HG--
extra : moz-landing-system : lando
2019-03-08 11:51:59 +00:00
Alex Chronopoulos da31b1b51c Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 11:51:45 +00:00
Narcis Beleuzu ccb04a4f95 Backed out 5 changesets (bug 1213453) for bustages on MediaEngineDefault.cpp . CLOSED TREE
Backed out changeset 118792523194 (bug 1213453)
Backed out changeset 6208d9e15f3d (bug 1213453)
Backed out changeset ec1da6bbf1a7 (bug 1213453)
Backed out changeset f78c357f2f5f (bug 1213453)
Backed out changeset 6903f0739e83 (bug 1213453)
2019-03-08 13:34:52 +02:00
Alex Chronopoulos 990cbb15ed Bug 1213453 - Update mochitest to expect group id. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20373

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:57 +00:00
Alex Chronopoulos c00f4787e9 Bug 1213453 - Add getters/setters for group id in MediaEngineSource and the derived classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20370

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:51 +00:00
Alex Chronopoulos 3a6e2e8c5e Bug 1213453 - Add group id in various MediaManager classes. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20369

--HG--
extra : moz-landing-system : lando
2019-03-08 10:33:49 +00:00
Andreas Pehrson acf9d0ab88 Bug 1473469 - Make MediaStreamGraph run on a single thread with AudioWorklets enabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20828

--HG--
extra : moz-landing-system : lando
2019-03-06 20:12:25 +00:00
Gurzau Raul eedd13105c Backed out changeset 621207c8ef88 (bug 1515716) for failing at /src/base/pickle.cc on a CLOSED TREE. 2019-03-06 12:13:46 +02:00
Nico Grunbaum 73eb7b29fb Bug 1515716 - refactor the RTC RTP stats types to match spec r=jib,smaug
realigning the RTP stats types to match spec. This involves breaking out the remote dictionary types. This shouldn't create user space visible changes.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 01:50:20 +00:00
Csoregi Natalia 9d67bf069c Backed out changeset 45c838c4137d (bug 1473469) for various dom/worklet/ failures. CLOSED TREE 2019-03-01 19:39:32 +02:00
Gurzau Raul a218f01445 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-01 15:14:00 +02:00
Andreas Pehrson 1b78f72fe7 Bug 1473469 - Make MediaStreamGraph run on a single thread with AudioWorklets enabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20828

--HG--
extra : moz-landing-system : lando
2019-03-01 10:11:16 +00:00
Dan Minor 7df80039d5 Bug 1530488 - Disable camera for aarch64 windows builds; r=pehrsons
This disables the camera for win64-aarch64 for Windows versions below
19H1. These versions have problems with the DirectShow implementation
which prevent the camera from working properly.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 19:50:04 +00:00
Ryan Hunt 00e98538aa Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21106

--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Ryan Hunt 179b832433 Bug 1523969 part 1 - Move method definition inline comments to new line in accessible/. r=jamie
Differential Revision: https://phabricator.services.mozilla.com/D21101

--HG--
extra : rebase_source : 5b1dc394aba125c9f14977efc1a71b60455d1bf6
2019-02-25 16:02:26 -06:00
sotaro 197a7bcd4c Bug 1440038 - Use SharedRGBImage in MediaEngineTabVideoSource r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21177
2019-03-01 08:45:50 +09:00
Byron Campen [:bwc] 82599ca5ef Bug 1521879 - Part 5: Update IPC serialize/deserialize code for RTP stream stats to match what is in the dictionaries. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D17278

--HG--
extra : moz-landing-system : lando
2019-02-25 21:51:48 +00:00
Byron Campen [:bwc] 301b677d31 Bug 1521879 - Part 3: Get --disable-webrtc builds working. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17275

--HG--
extra : moz-landing-system : lando
2019-02-25 21:51:23 +00:00
Byron Campen [:bwc] 25ad4a9108 Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-25 21:50:58 +00:00
Byron Campen [:bwc] 8b6cc6a51f Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-25 21:50:42 +00:00
Gurzau Raul e6740c75fc Backed out 10 changesets (bug 1521879) for causing bug 1530107. a=backout
Backed out changeset f597a73a6eac (bug 1521879)
Backed out changeset 0bb76534f207 (bug 1521879)
Backed out changeset abcb8be12adf (bug 1521879)
Backed out changeset ed6c8d3bbfde (bug 1521879)
Backed out changeset 1addf1e15b55 (bug 1521879)
Backed out changeset 6b709cd9a479 (bug 1521879)
Backed out changeset 07747027c59c (bug 1521879)
Backed out changeset a6105ccc188c (bug 1521879)
Backed out changeset 48c9c643e7bb (bug 1521879)
Backed out changeset d4004105a04a (bug 1521879)
2019-02-25 12:12:15 +02:00
Byron Campen [:bwc] 45212e73ed Bug 1521879 - Part 5: Update IPC serialize/deserialize code for RTP stream stats to match what is in the dictionaries. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D17278

--HG--
extra : moz-landing-system : lando
2019-02-21 20:26:29 +00:00
Byron Campen [:bwc] 94a554c150 Bug 1521879 - Part 3: Get --disable-webrtc builds working. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17275

--HG--
extra : moz-landing-system : lando
2019-02-21 21:54:54 +00:00
Byron Campen [:bwc] 5ca6cf53af Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-21 20:25:07 +00:00
Byron Campen [:bwc] 7ab14bdf2c Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-21 20:24:54 +00:00
Brindusan Cristian 136394135f Backed out 9 changesets (bug 1521879) for flake failures at /transforms/tests.py. CLOSED TREE
Backed out changeset baac167868b3 (bug 1521879)
Backed out changeset 54ac1b47b736 (bug 1521879)
Backed out changeset 94b62c6f22e2 (bug 1521879)
Backed out changeset d44f15fd4529 (bug 1521879)
Backed out changeset 761fca0514fb (bug 1521879)
Backed out changeset 0b85b1a7c1ce (bug 1521879)
Backed out changeset 5dc76e863a02 (bug 1521879)
Backed out changeset 604b9a007fe5 (bug 1521879)
Backed out changeset c414d82a5325 (bug 1521879)
2019-02-21 19:32:31 +02:00
Byron Campen [:bwc] 9e2c830949 Bug 1521879 - Part 5: Update IPC serialize/deserialize code for RTP stream stats to match what is in the dictionaries. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D17278

--HG--
extra : moz-landing-system : lando
2019-02-21 15:35:06 +00:00
Byron Campen [:bwc] d7729846c2 Bug 1521879 - Part 3: Get --disable-webrtc builds working. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17275

--HG--
extra : moz-landing-system : lando
2019-02-21 15:32:15 +00:00
Byron Campen [:bwc] bc939b7978 Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-21 15:33:57 +00:00
Byron Campen [:bwc] 4604113749 Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-21 16:42:12 +00:00
Mike Hommey 9c34e0b914 Bug 1512504 - Don't set __PRETTY_FUNCTION__ on clang-cl. r=froydnj
clang-cl defines it on its own, although the value is slightly different
from __FUNCSIG__ (it doesn't contain the ABI, which doesn't really
matter). We've only been setting it this was on clang-cl by extension of
setting it for msvc.

Depends on D19616

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

--HG--
extra : moz-landing-system : lando
2019-02-14 18:56:29 +00:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Paul Adenot 1711340313 Bug 1524648 - Relax assertion in MediaEngineWebRTCMicrophoneSource::Deallocate to take into account the fact that starting the device can have failed. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D18979

--HG--
extra : moz-landing-system : lando
2019-02-11 09:05:08 +00:00
Narcis Beleuzu 61c7d6b9f5 Backed out changeset b350508a425c (bug 1524648) for bustages on MediaEngineWebRTCAudio.cpp . CLOSED TREE 2019-02-11 10:57:27 +02:00
Paul Adenot d2d300dd7d Bug 1524648 - Relax assertion in MediaEngineWebRTCMicrophoneSource::Deallocate to take into account the fact that starting the device can have failed. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D18979

--HG--
extra : moz-landing-system : lando
2019-02-11 05:48:49 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Paul Adenot 1116d6d4b0 Bug 1499426 - Align the lifetime of AudioInputProcessing with the lifetime of MediaEngineWebRTCAudio. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D16201

--HG--
extra : moz-landing-system : lando
2019-01-14 15:09:34 +00:00
arthur.iakab 404cf74da4 Backed out changeset 0f68913927a5 (bug 1499426) for mochitest failure on MediaEngineWebRTCAudio CLOSED TREE 2019-01-11 21:04:03 +02:00
Paul Adenot 166bf2eb1a Bug 1499426 - Align the lifetime of AudioInputProcessing with the lifetime of MediaEngineWebRTCAudio. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D16201

--HG--
extra : moz-landing-system : lando
2019-01-11 17:22:24 +00:00
Andreas Pehrson 7577f27956 Bug 1518834 - Don't disable pulling when stopping microphone source. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D16148

--HG--
extra : moz-landing-system : lando
2019-01-10 06:13:25 +00:00
Andreas Pehrson 6f2800844c Bug 1517711 - Guard other uses of SetPullingEnabled too. r=padenot
Depends on D15892

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

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:08 +00:00
Andreas Pehrson 72327b88f5 Bug 1517711 - Check for a destroyed MediaStream on the right thread. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D15892

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:11 +00:00
Andreas Pehrson 97ca0d12ba Bug 1517710 - Avoid calling SetPullingEnabled on a destroyed MediaStream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D15798

--HG--
extra : moz-landing-system : lando
2019-01-07 08:24:08 +00:00
Andreas Pehrson fef7f858ef Bug 1513973 - Remove mutable keyword from MediaEngineWebRTCMicrophoneSource runnables. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15220

--HG--
extra : moz-landing-system : lando
2019-01-04 06:40:05 +00:00
Andreas Pehrson 997855e877 Bug 1513973 - Enable pulling at the same time as starting audio sources. r=jib
Otherwise we risk building up a buffer in the microphone source from when
Start() is run until pulling is enabled. This manifests itself as input latency
to the user.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:43 +00:00
Andreas Pehrson d8bf65f800 Bug 1513973 - Make MediaEngineSource::SetTrack return void. r=jib
All subclasses are now returning NS_OK, so there's no point in keeping nsresult
as the return type.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:40 +00:00
Andreas Pehrson de06fc1905 Bug 1513973 - Remove check for `false`. r=jib
The microphone source is no longer shared so this check is moot.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:33 +00:00
Jan-Ivar Bruaroey cbb94950ec Bug 1321221 - Delay getDisplayMedia() promise until first frame arrives, to pass wpt. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D15283

--HG--
extra : moz-landing-system : lando
2018-12-28 03:13:11 +00:00
Jan-Ivar Bruaroey ee3a9f9f4f Bug 1474376 - Merge window+screen sharing for content (list fullscreen as option in window-list), and get away from MediaSourceEnum. r=pehrsons,florian
Differential Revision: https://phabricator.services.mozilla.com/D14941

--HG--
extra : moz-landing-system : lando
2018-12-27 23:40:36 +00:00
Dorel Luca 12e4f91411 Backed out 5 changesets (bug 1513973) for browser-chrome failures in browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js. CLOSED TREE
Backed out changeset 2ddf61b1db11 (bug 1513973)
Backed out changeset 6c839f548745 (bug 1513973)
Backed out changeset 5669b30f2265 (bug 1513973)
Backed out changeset 6781e633d62c (bug 1513973)
Backed out changeset f1892f178011 (bug 1513973)
2018-12-21 23:28:51 +02:00
Andreas Pehrson 567bfc91f0 Bug 1513973 - Remove mutable keyword from MediaEngineWebRTCMicrophoneSource runnables. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15220

--HG--
extra : moz-landing-system : lando
2018-12-21 20:05:05 +00:00
Andreas Pehrson 45dfbfc836 Bug 1513973 - Enable pulling at the same time as starting audio sources. r=jib
Otherwise we risk building up a buffer in the microphone source from when
Start() is run until pulling is enabled. This manifests itself as input latency
to the user.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 20:03:48 +00:00
Andreas Pehrson 4c26324fd2 Bug 1513973 - Make MediaEngineSource::SetTrack return void. r=jib
All subclasses are now returning NS_OK, so there's no point in keeping nsresult
as the return type.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 20:03:42 +00:00
Andreas Pehrson 2e3209d6dc Bug 1513973 - Remove check for `false`. r=jib
The microphone source is no longer shared so this check is moot.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 20:03:36 +00:00
Nico Grunbaum bb1557ee1c Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

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

--HG--
extra : moz-landing-system : lando
2018-12-21 02:35:58 +00:00
Narcis Beleuzu 1110297dc8 Backed out changeset ccb218cd2d87 (bug 1380555) for mozlint failure on PeerConnection.js . CLOSED TREE 2018-12-21 04:20:58 +02:00
Nico Grunbaum 684ea28cec Bug 1380555 - remove deprecated WebRTC RTP stat isRemote in favor of new stat types r=jib,smaug
Removes RTP stat field isRemote and adds the new types remote-inbound-rtp, and remote-outbound-rtp

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

--HG--
extra : moz-landing-system : lando
2018-12-21 00:46:54 +00:00
Dan Minor 73d9c4cce6 Bug 1498253 - Remove mozAvSyncDelay and mozJitterBufferDelay; r=ng
The value for mozAvSyncDelay has been broken since the branch 57 update
(Bug 1341285). We added SetCurrentSyncOffset() but never called it from
anywhere.

In the future we should be getting stats from AudioReceiveStream rather than
modifying the channel code, the delay_estimate_ms field provides almost the
same information.

Since we're attempting to get rid of moz prefixed stats, it makes sense to just
remove this code rather than fix it. The associated telemetry code has been
broken since Bug 1341285 as well so I think it is safe to remove.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 13:08:12 +00:00
Jan-Ivar Bruaroey 5a89bd8fda Bug 1512280 - Make LOG macros clang-format friendlier. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13859

--HG--
extra : moz-landing-system : lando
2018-12-12 20:42:18 +00:00
Dorel Luca d1d958a798 Backed out 4 changesets (bug 1512280) for bmsvc build bustage
Backed out changeset abe934612616 (bug 1512280)
Backed out changeset 9463a1a3d790 (bug 1512280)
Backed out changeset 9a68c5f1ca0d (bug 1512280)
Backed out changeset 616721cad893 (bug 1512280)
2018-12-12 07:22:49 +02:00
Jan-Ivar Bruaroey b43cd8e1dd Bug 1512280 - Make LOG macros clang-format friendlier. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13859

--HG--
extra : moz-landing-system : lando
2018-12-12 02:36:51 +00:00
Nico Grunbaum 41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

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

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Paul Adenot cb75fadba6 Bug 1274392 - When echo cancellation is disabled, disable automatic gain control and noise suppression as well. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D12902

--HG--
extra : moz-landing-system : lando
2018-11-28 13:41:02 +00:00
Andreas Pehrson 3771a0be22 Bug 1423241 - Handle DOMMediaStream destroying its input stream before we can end its track. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12746

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:39 +00:00
Andreas Pehrson 80cde33d12 Bug 1423241 - Always add tracks at the stream's current time. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12271

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:42 +00:00
Andreas Pehrson 193fd8f3eb Bug 1423241 - Move MediaManager from a stream listener to track listeners. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12268

--HG--
extra : moz-landing-system : lando
2018-11-23 15:00:20 +00:00
Nico Grunbaum 0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Boris Zbarsky 71db58cf83 Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug 2018-11-19 20:17:53 -05: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
Dan Minor b55165985b Bug 1376873 - Set default agc mode for Android in MediaEngineWebRTCAudio; r=padenot
This matches the current definition for kDefaultAgcMode in
voice_engine_defines.h.

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

--HG--
extra : rebase_source : 976a68104c164c6119d5d9036567477cc05c5c97
2018-07-27 09:20:00 -04:00
Dan Minor 4967afba54 Bug 1376873 - Updates to dom/media/, dom/media/systemservices and dom/media/webrtc; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7438

--HG--
extra : rebase_source : 940e0276f8881e4697771f49e85bca6e41fd7c47
2018-02-20 15:23:09 -05:00
Dan Minor 593c290d35 Bug 1376873 - Rollup conflict fixes for audio/video code; r=pehrsons
MozReview-Commit-ID: 1T8mgqdkzq3

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

--HG--
extra : rebase_source : 2ca9a77c98b703f849073c92b6b2448de9b8e1f5
2018-01-22 15:04:26 -05:00
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
Andreas Pehrson 150dc5e2f2 Bug 1480856 - Allow for another 10ms of silence when processing audio input. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D2786

--HG--
extra : moz-landing-system : lando
2018-08-07 21:02:41 +00:00
Ciure Andrei 6056bb970c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-07 01:11:21 +03:00
Nico Grunbaum 87231d6193 Bug 1480498 - P2 - renaming RTCRTPStreamStats in the WebRTCGlobals r=mjf
Renaming RTCRTPStreamStats in the WebRTCGlobals.

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

--HG--
extra : moz-landing-system : lando
2018-08-03 17:41:30 +00:00
Masatoshi Kimura 3b21b7868b Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Paul Adenot fc57da928f Bug 1404977 - Part 17 - Re-implement the workaround for the lack of input device enumeration on Android. r=pehrsons
MozReview-Commit-ID: 5EiQ6a3OaIR

--HG--
extra : rebase_source : d39706b5c09438f55ef1d26b3e0fb127ac05cfa6
2018-07-04 18:00:57 +02:00
Paul Adenot ce1884c2eb Bug 1404977 - Part 15 - Invalidate the device cache before re-enumerating devices when the cubeb backend does not support dynamic device collection invalidation. r=pehrsons
Also, clear the array that's been passed in before appending the new devices.

MozReview-Commit-ID: BTnwzyKBrb5

--HG--
extra : rebase_source : 23dbd11720804a30188389bc4408be4b40ad70b2
2018-06-22 11:47:06 +02:00
Paul Adenot a1777772d7 Bug 1404977 - Part 13 - Remove useless mutex, and assert why they were useless, in WebRTCAudioDataListeners. r=pehrsons
MozReview-Commit-ID: 2Mb5WZXbYgS

--HG--
extra : rebase_source : c4a7c8874919901eb11327cfb5f86d6b185be388
2018-05-31 16:44:00 +02:00
Paul Adenot 0bf09992fd Bug 1404977 - Part 11 - Make sure the default device is the first element in the list. r=pehrsons
MozReview-Commit-ID: LTJErFTm1wN

--HG--
extra : rebase_source : 5abdb58774a0011a2990d1f71c733181eed3c656
2018-05-29 15:20:47 +02:00
Paul Adenot 9b7c6c96da Bug 1404977 - Part 7 - Make each MediaEngineWebRTCMicrophoneSource independent. r=pehrsons
MozReview-Commit-ID: 1RSsT6AV3iI

--HG--
extra : rebase_source : ed7db6938c46d4c9e716c782f4b04f2438dff9a6
2018-04-30 15:37:18 +02:00
Paul Adenot 959bcfd615 Bug 1404977 - Part 6 - Remove unused include for lock-free FIFO. r=pehrsons
MozReview-Commit-ID: 8gVKlD7lMIX

--HG--
extra : rebase_source : cc5e02d3acb3a46edafe58002ff8e4d1e974b235
2018-04-30 15:33:28 +02:00
Paul Adenot 2ba8afaf4c Bug 1404977 - Part 5 - Allow querying the number of input channels from a WebRTCAudioDataListener. r=pehrsons
MozReview-Commit-ID: JkpEZOJpOTl

--HG--
extra : rebase_source : 055d86792861028c9a998b9731651b7e121f9bb0
2018-04-30 15:30:58 +02:00
Paul Adenot d9bf35a76c Bug 1404977 - Part 3 - Remove global statics, introduce an audio device enumerator r=pehrsons
MozReview-Commit-ID: 55VlpGIAOxp

--HG--
extra : rebase_source : 34b6f83bbb647975d273f900a4f11e25d393f1c4
2018-04-30 15:18:22 +02:00
Andreas Pehrson 0facadf342 Bug 1480161: Fix underrun assert for processed input stream. r=achronop
The logic here intends to (as is written in the comment) append one block of
silence to the track to allow for us to underrun one full scratch buffer.

The code doesn't match this behavior however, because if we are not underrunning
by less than a block, we end up appending *less* than a block. This causes us to
append at a later time as the scratch buffer can swallow more (up to a full
block) than we appended.

Without processing this seems to work because of timing and ordering, but
with processing (aec/agc/ns) we tend to add 71
(512 for an iteration - 441 packed) samples of silence,
leaving us to hit the assert with a 44% ((128-71)/128) chance during subsequent
iterations.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 10:25:05 +00:00
Paul Adenot 2f416390fe Bug 1152401 - Augment AudioDeviceInfo with a cubeb device id. r=padenot
MozReview-Commit-ID: 7QOcM5ITrxv

--HG--
extra : rebase_source : 41071cfbccfc22b0c8a3b2d6a5405d4fbf23c16d
2018-07-18 10:38:34 +02:00
Alex Chronopoulos 075ead24ea Bug 1152401 - Implement enumeration of speaker devices. r=jib
MozReview-Commit-ID: CppImscUcz4

--HG--
extra : rebase_source : aed0355743d547bd7b405a6b834cf9ab50edc4ee
2018-07-16 11:30:46 +02:00
Alex Chronopoulos 9e8bb0c379 Bug 1152401 - Update enumerate methods of MediaManager and MediaEngine to accept audio sink type. r=jib
MozReview-Commit-ID: 1RClh9UNQck

--HG--
extra : rebase_source : 23e3f1b9e4ad42f0cff86d3903e2b0c7e5bc6a01
2018-07-16 11:30:46 +02:00
Alex Chronopoulos 5d13851360 Bug 1152401 - Use MediaDevice in MediaEngine to allow enumeration of both sinks and sources. r=jib
MozReview-Commit-ID: 6ntA5YUFSnN

--HG--
extra : rebase_source : d90bc121bc8e4152d76429e2a49f4d4cc1cf439e
2018-07-11 08:59:13 +02:00
Alex Chronopoulos 96fb94d4ab Bug 1152401 - Create MediaSinkEnum for speakers. r=jib
MozReview-Commit-ID: 2FUrm3ZI05S

--HG--
extra : rebase_source : 02552f5ab399f075d5128037a0743b3a7dbb350d
2018-07-11 08:59:13 +02:00
Margareta Eliza Balazs 0cf58ddcab Backed out 9 changesets (bug 1152401) for android gv-junit failures org.mozilla.geckoview.test.PermissionDelegateTest.media on a CLOSED TREE
Backed out changeset 987f2e0b2cb1 (bug 1152401)
Backed out changeset e45630a7c7b1 (bug 1152401)
Backed out changeset 95661c6cd914 (bug 1152401)
Backed out changeset d68ab111809f (bug 1152401)
Backed out changeset 10b039210911 (bug 1152401)
Backed out changeset aebabaa96ad3 (bug 1152401)
Backed out changeset 93457990e40f (bug 1152401)
Backed out changeset 1630f67ac197 (bug 1152401)
Backed out changeset aef64bf5b024 (bug 1152401)
2018-07-19 13:35:58 +03:00
Paul Adenot 5dae77130d Bug 1152401 - Augment AudioDeviceInfo with a cubeb device id. r=padenot
MozReview-Commit-ID: 7QOcM5ITrxv

--HG--
extra : rebase_source : 41071cfbccfc22b0c8a3b2d6a5405d4fbf23c16d
2018-07-18 10:38:34 +02:00
Alex Chronopoulos c893b1d98d Bug 1152401 - Implement enumeration of speaker devices. r=jib
MozReview-Commit-ID: CppImscUcz4

--HG--
extra : rebase_source : aed0355743d547bd7b405a6b834cf9ab50edc4ee
2018-07-16 11:30:46 +02:00