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
Alex Chronopoulos
0a08cf0372
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
43ba614cd9
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
97c47e4336
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
Andreas Pehrson
ebd2cf6c8c
Bug 1471588 - Trace all NotifyPull calls. r=padenot
...
MozReview-Commit-ID: XlYfZ0CVZM
--HG--
extra : rebase_source : 8c147419731942a35e27d0aab0e2c4a6a9747438
2018-06-27 17:59:19 +02:00
Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Jan de Mooij
f7fb3be6ec
Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
...
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Emilio Cobos Álvarez
1e9c395548
Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
...
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:
s/mozilla::Forward/std::forward/
s/Forward</std::forward</
The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)
MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
Emilio Cobos Álvarez
fffb25b74f
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Dan Minor
50a3ab6cd4
Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
...
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.
MozReview-Commit-ID: 5jre75E3JLi
--HG--
extra : rebase_source : 5f5154fc9fc7590cc02eb25146e5bc20b2243fa3
2018-05-08 15:55:36 -04:00
Dorel Luca
8e1a0ee1c6
Backed out changeset c13ca75c9bcb (bug 1450658) for Browser-Chrome failures on browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js
2018-05-23 17:07:33 +03:00
Dan Minor
40fcbf60d9
Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
...
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.
MozReview-Commit-ID: 5jre75E3JLi
--HG--
extra : rebase_source : 97f472f6ed1c5d6bed1af01fb7243a82b2629b03
2018-05-08 15:55:36 -04:00
Jim Chen
4053e24872
Bug 1458020 - 3. Set JavaVM when actually using video capture; r=jib
...
We currently set the Android JavaVM pointer in MediaEngineWebRTC.
However, because of that, we end up setting the pointer in the child
process, even though we really want to set the pointer in the parent
process because that's where the camera will be accessed.
This patch makes us set JavaVM inside VideoEngine itself, where we
actually access the camera in the parent process.
MozReview-Commit-ID: 3TeLiiK2vyh
2018-05-18 10:16:04 -04:00
Adrian Wielgosik
c501e3beb0
Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
...
MozReview-Commit-ID: LKRnyDPNlle
--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Alex Chronopoulos
6316ff735c
Bug 1460559 - Enable AsyncLogger in media capture files. r=pehrsons
...
MozReview-Commit-ID: 7IXcP2zcn5k
--HG--
extra : rebase_source : a75af575a137b7c050355a9c84ec256e6fc585b6
2018-05-11 15:05:16 +02:00
Alex Chronopoulos
d409b4d3b8
Bug 1457427 - Restructure EnumerateDevices method is webrtc engine to improve readability. r=pehrsons
...
Restructuring of the existing code no functional change.
MozReview-Commit-ID: FARNItrajfD
--HG--
extra : rebase_source : 0887c6546bb43538e32b99950e2febca77a32bfb
2018-05-07 19:33:41 +02:00
Paul Adenot
fbf116232d
Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
...
MozReview-Commit-ID: 7mmDHVS2t8f
--HG--
extra : rebase_source : ac56722792f99aadd8e359ef9ae4b30f6dc78076
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Andreea Pavel
5a4b5686f6
Merge mozilla-central to autoland a=backout on a CLOSED TREE
...
--HG--
extra : rebase_source : 3bbd9b3ffa46ec76f58d6d4d6ce672dd909b8457
2018-04-18 21:36:17 +03:00
Andreea Pavel
14ac5e554d
Backed out 3 changesets (bug 1444976) for failing android at dom/media/tests/mochitest/test_getUserMedia_mediaStreamTrackClone.html a=backout
...
Backed out changeset 79b7ee8b01ee (bug 1444976)
Backed out changeset 35ca96cabe3c (bug 1444976)
Backed out changeset 2512c9c24244 (bug 1444976)
2018-04-18 21:25:14 +03:00
Andreas Pehrson
1c41efddfa
Bug 1454625 - Don't update settings from constraints if already updated from frame. r=padenot
...
MozReview-Commit-ID: KgiPUnXCWoM
--HG--
extra : rebase_source : 2f378128008ed8c95fb7f3cb3b6601c54ef4c88b
2018-04-17 17:09:11 +02:00
Andreas Pehrson
3be3fab400
Bug 1454625 - Schedule settings update before setting mImage. r=padenot
...
MozReview-Commit-ID: 9IasAgJImuI
--HG--
extra : rebase_source : 67fc9036b72c19f8fa73084053d617537e0cdaca
2018-04-17 11:14:19 +02:00
Paul Adenot
f00a090b8a
Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
...
MozReview-Commit-ID: 7mmDHVS2t8f
--HG--
extra : rebase_source : a6b0bd42a63f3fc6e4a6307249ed447d749f96c4
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Cosmin Sabou
2680ecadac
Backed out 3 changesets (bug 1444976) for build bustages on dom/media/AsyncLogger. CLOSED TREE
...
Backed out changeset b021b33ddf74 (bug 1444976)
Backed out changeset 822a57090d84 (bug 1444976)
Backed out changeset 0fa5f7cfee1d (bug 1444976)
2018-04-17 13:07:12 +03:00
Paul Adenot
d9b247b0d7
Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
...
MozReview-Commit-ID: 7mmDHVS2t8f
--HG--
extra : rebase_source : 0ab839099c0a5d83f639a1157c126d6fae60cb1e
extra : source : 7b9d0ce0b1cb20540d1c5bf4c77596359b5cb73e
2018-04-12 17:51:35 +02:00
Nico Grunbaum
b5c0e1c02f
Bug 1449832 - restore screen share scaling code to prevent cropping r=pehrsons
...
MozReview-Commit-ID: KctPLbF4PSa
--HG--
extra : rebase_source : 8a3a63a1df890e2343dec44f4cdfe1193d317a9a
2018-04-12 14:26:14 -07:00
Andreas Pehrson
aaf89f2684
Bug 1447982 - Rename mLastPrefs to mNetPrefs and update comment for clarity. r=padenot
...
MozReview-Commit-ID: CJPSDG5OHBs
--HG--
extra : rebase_source : 4be85639204fb53f02f1f5262fa945b78a97b286
2018-03-26 12:24:17 +02:00
Andreas Pehrson
83d5534ca3
Bug 1447982 - Remove early exit when no change on Reconfigure. r=padenot
...
We don't want to skip all remaining steps. For now it just affects some logging,
but there may be new ones added in the future.
MozReview-Commit-ID: 7fBdgLNT780
--HG--
extra : rebase_source : dc5113298c1dbadd23c19127349a4a66cd460b4c
2018-03-26 12:23:12 +02:00