Commit Graph

7593 Commits

Author SHA1 Message Date
Dan Minor
d7b3697b38 Bug 1638361 - Remove uuid generation code from mdns_service; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76708
2020-05-26 18:30:20 +00:00
Dan Minor
a090854892 Bug 1638361 - Use nsIUUIDGenerator in NrIceCtx::GenerateObfuscatedAddress; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76707
2020-05-26 19:40:26 +00:00
Dan Minor
169cad5736 Bug 1639377 - Do not offer RRID header extension if RTX is disabled; r=drno
Differential Revision: https://phabricator.services.mozilla.com/D76890
2020-05-26 20:49:29 +00:00
Byron Campen [:bwc]
69fe649c2c Bug 1639916: Clean up pstream if we don't end up using it. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D76359
2020-05-21 19:05:07 +00:00
Dan Minor
715e2622ab Bug 1637319 - Only enumerate capture devices on Linux that support V4L2_CAP_VIDEO_CAPTURE; r=ng
The side effect of not filtering on V4L2_CAP_VIDEO_CAPTURE is that every device
is enumerated twice. Because we look up devices by name, and the device that
supports V4L2_CAP_VIDEO_CAPTURE seems to always appear first in /dev/video,
this does not seem to end up with us ever choosing an inappropriate device. We
might get away with just filtering device names from the list, but if the order
of devices ever changed in /dev/video there could be problems.

Differential Revision: https://phabricator.services.mozilla.com/D75593
2020-05-15 19:40:28 +00:00
Dan Minor
fdcf957cca Bug 1634675 - Remove webrtc-gtests r=drno,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73451
2020-05-20 19:59:45 +00:00
Aaron Klotz
b4b8568b47 Bug 1637452: Part 13 - Fix JNI includes in media/webrtc; r=bwc
In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75376
2020-05-15 17:05:28 +00:00
Aaron Klotz
de0ca92545 Bug 1637452: Part 12 - Fix JNI includes in media/libcubeb; r=cubeb-reviewers,kinetik
In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75375
2020-05-15 17:05:20 +00:00
Dan Minor
b9598227dc Bug 1632489 - Only adjust valid capture times when generating padding; r=bwc
The current code will only set the TranmissionOffset extension if
capture_time_ms is > 0, but when adjusting timestamps for rtx packets, it is
adjusted  without first checking to see if it is valid, which will cause invalid
values of capture_time_ms to be written to TranmissionOffset, leading to assertion
failures.

This bug is still present on tip of libwebrtc, so we'll also need to prepare a
patch for upstream.

Depends on D74842

Differential Revision: https://phabricator.services.mozilla.com/D75528
2020-05-15 14:47:36 +00:00
Dan Minor
83b49d068b Bug 1632489 - Use repaired-rtp-stream-id in rtx packets; r=ng
This imports a few fixes from tip of libwebrtc, which now supports mid, rid
and rrid. The rtx packet is now allocated as max_packet_size_, which is
necessary to have enough capacity for the rrid. It takes the
CopyHeaderAndExtensionsToRtxPacket function from upstream, which omits
copying extensions that should not be copied over, such as rid. It is necessary
to make AllocateExtension and FindExtension public in order for this
function to work.

It then copies the rid from the source packet over to rrid in the rtx packet.
Upstream has code for this as well, but taking it would require more
extensive changes to our copy of libwebrtc. We can drop these local
modifications with the next update.

Differential Revision: https://phabricator.services.mozilla.com/D74840
2020-05-15 11:58:54 +00:00
Dan Minor
0cf534a4f7 Bug 1632489 - Enable repaired-rtp-stream-id extension in jsep; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D74839
2020-05-15 11:55:08 +00:00
Nico Grunbaum
3ad9a07524 Bug 1279153 - Add support for rtcp-rsize;r=bwc,dminor
Differential Revision: https://phabricator.services.mozilla.com/D72807
2020-05-15 01:54:34 +00:00
Dan Minor
79e6c1318b Bug 1637636 - Add callback to Call::OnSentPacket in conduits; r=ng
In order for the SendSideCongestionController to work properly, it needs the
timestamp at which the packets were sent. This is set by calling
Call::OnSentPacket when a packet is sent. Without the sent timestamp, it drops
the estimated available bandwidth so low that only one simulcast stream will
be allocated any bandwidth.

Differential Revision: https://phabricator.services.mozilla.com/D75310
2020-05-14 18:29:44 +00:00
Nico Grunbaum
5a8efe4876 Bug 1534466 - P2 - add missing video impl for GetRtpSources;r=jib
Differential Revision: https://phabricator.services.mozilla.com/D74823
2020-05-13 23:18:24 +00:00
Brindusan Cristian
1b5de135bc acked out 4 changesets (bug 1632489) for android crashes at test_peerConnection_maxFsConstraint.html. CLOSED TREE
Backed out changeset 22ef19e55421 (bug 1632489)
Backed out changeset 8e0260c41854 (bug 1632489)
Backed out changeset cc52615f7682 (bug 1632489)
Backed out changeset 45ad6b848a8f (bug 1632489)
2020-05-14 00:15:50 +03:00
Dan Minor
110b9c482b Bug 1632489 - Use repaired-rtp-stream-id in rtx packets; r=ng
This imports a few fixes from tip of libwebrtc, which now supports mid, rid
and rrid. The rtx packet is now allocated as max_packet_size_, which is
necessary to have enough capacity for the rrid. It takes the
CopyHeaderAndExtensionsToRtxPacket function from upstream, which omits
copying extensions that should not be copied over, such as rid. It is necessary
to make AllocateExtension and FindExtension public in order for this
function to work.

It then copies the rid from the source packet over to rrid in the rtx packet.
Upstream has code for this as well, but taking it would require more
extensive changes to our copy of libwebrtc. We can drop these local
modifications with the next update.

Depends on D74839

Differential Revision: https://phabricator.services.mozilla.com/D74840
2020-05-12 21:35:10 +00:00
Dan Minor
06db56446e Bug 1632489 - Enable repaired-rtp-stream-id extension in jsep; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D74839
2020-05-12 15:14:01 +00:00
Dan Minor
d5f7cac185 Bug 1625694 - Set use_desktop_relative_cursor_position in DesktopAndCursorComposer; r=ng
Upstream has removed the mode used when use_desktop_relative_cursor_position_
is set to false as well as the associated override of OnMouseCursorPosition,
so the next time we update libwebrtc, this is the behaviour we will have.
Enabling it now fixes cursor display on Linux, which at the moment only works
for some windows.

Depends on D71392

Differential Revision: https://phabricator.services.mozilla.com/D71394
2020-05-05 21:15:57 +00:00
Dan Minor
d93f609fa8 Bug 1625694 - Remove unnecessary local modifications to mouse_cursor_monitor_x11; r=jib,ng
I think inner_window_ was added to handle the fact that window_ may not be
the same as child_window which could throw off the coordinates. Since we made
these modifications, upstream has added the XTranslateCoordinates call that
handles this case, so our local modifications are no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D71392
2020-05-12 21:28:42 +00:00
Paul Adenot
0c81475300 Bug 1626081 - Update cubeb to 80c3d838d2929c27. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D74276
2020-05-12 08:32:00 +00:00
Cosmin Sabou
72e80153f2 Backed out 3 changesets (bug 1626081) for causing build bustages. CLOSED TREE
Backed out changeset 82cae35b52eb (bug 1626081)
Backed out changeset 42135f164217 (bug 1626081)
Backed out changeset 2676f31077bc (bug 1626081)
2020-05-11 21:38:54 +03:00
Paul Adenot
4c16b73b14 Bug 1626081 - Update cubeb to 80c3d838d2929c27. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D74276
2020-05-11 18:23:14 +00:00
Sylvestre Ledru
45c60a761a Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D74530
2020-05-09 23:02:52 +00:00
Sylvestre Ledru
1929dd1ab3 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Nils Ohlmeier [:drno]
bd0469292f Bug 1418804: added unit test coverage for Opus fmpt parameters. r=ng
Depends on D74494

Differential Revision: https://phabricator.services.mozilla.com/D74495
2020-05-08 23:38:57 +00:00
Nils Ohlmeier [:drno]
3234b32c9c Bug 1418804: added support for cbr attribute. r=ng
Depends on D74493

Differential Revision: https://phabricator.services.mozilla.com/D74494
2020-05-08 23:42:23 +00:00
Nils Ohlmeier [:drno]
b999865cb0 Bug 1418804: added ptime attribute to rsdparsa C API crate. r=ng
Depends on D74492

Differential Revision: https://phabricator.services.mozilla.com/D74493
2020-05-08 23:45:54 +00:00
Nils Ohlmeier [:drno]
c4b7f99c65 Bug 1418804: add support for ptime attributes. r=ng
Depends on D71137

Differential Revision: https://phabricator.services.mozilla.com/D74492
2020-05-08 23:45:03 +00:00
Nils Ohlmeier [:drno]
33e7071cd6 Bug 1418804: adding support for usedtx and maxaveragebitrate. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D71137
2020-05-09 03:46:40 +00:00
Nils Ohlmeier [:drno]
21e50b8e9f Bug 1418804: update webrtc-sdp 0.3.5 -> 0.3.6. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D74491
2020-05-08 23:30:42 +00:00
Jon Bauman
ff79fde159 Bug 1624056 - Properly vendor mp4parse-rust. r=kinetik
This requires --build-peers-said-large-imports-were-ok since
third_party/rust/mp4parse/src/lib.rs is 113KB. This code is just moving from
media/mp4parse-rust to third_party/rust, so it's not really adding to net code
size.

Differential Revision: https://phabricator.services.mozilla.com/D74488
2020-05-09 00:36:48 +00:00
Jean-Yves Avenard
912e294406 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-08 20:20:44 +00:00
Narcis Beleuzu
58a833221c Backed out 9 changesets (bug 1634253) for bc failures on browser_bug295977_autoscroll_overflow.js . CLOSED TREE
Backed out changeset d41b75c1f7ec (bug 1634253)
Backed out changeset 5f8a1ee17b81 (bug 1634253)
Backed out changeset 43eda078b405 (bug 1634253)
Backed out changeset e98212a74709 (bug 1634253)
Backed out changeset 855e222ceb14 (bug 1634253)
Backed out changeset 9f01acdf4367 (bug 1634253)
Backed out changeset ea62cb1ec472 (bug 1634253)
Backed out changeset fa3e7588e7d6 (bug 1634253)
Backed out changeset 139e7035e736 (bug 1634253)
2020-05-08 23:09:31 +03:00
Dan Minor
5c53ff71b6 Bug 1164187 - Add pref for rtx; r=bwc
Off by default until we land repaired-rid support.

Differential Revision: https://phabricator.services.mozilla.com/D72231
2020-05-08 18:12:15 +00:00
Dan Minor
1355b5f885 Bug 1164187 - Do not switch ssrcs for packets with rtx and ulpfec packet types; r=bwc
With rtx enabled, we can't just switch ssrcs when we receive a packet with an
unrecognized ssrc. This changes the ReceiveRTPPacket call to take the entire
rtp header, and then examines the payload type. If the payload type is
associated with rtx or ulpfec, the ssrc will not be changed. This is what is
done by the libwebrtc unsignaled ssrc change code, so this behaviour should
match what Chrome does.

Differential Revision: https://phabricator.services.mozilla.com/D72230
2020-05-08 18:12:05 +00:00
Sergio Garcia Murillo
8a1430ae7a Bug 1164187 - Plumb rtx through peerconnection and conduits; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72229
2020-05-08 18:11:44 +00:00
Dan Minor
9efa9bb6b0 Bug 1164187 - Add new JsepSessionTests for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72228
2020-05-08 18:11:19 +00:00
Sergio Garcia Murillo
daaa798f22 Bug 1164187 - Update JsepSessionTest for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72226
2020-05-08 18:11:11 +00:00
Dan Minor
6a3b43fa14 Bug 1164187 - Add jsep support for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72225
2020-05-08 18:10:59 +00:00
Dan Minor
2143491530 Bug 1164187 - Add sdp unit test for rtx; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72224
2020-05-08 18:10:46 +00:00
Sergio Garcia Murillo
d15b1feb18 Bug 1164187 - Add support for parsing rtx fmtp parameters in sipcc; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D72223
2020-05-08 18:10:34 +00:00
Dan Minor
daf262752e Bug 1164187 - Fixes to RtxParameters; r=bwc
This changes the constructor to not take any parameters for consistency
with how the other parameters are handled. It also fixes serialization, the
current code will output an ascii character rather than the numeric value.

Differential Revision: https://phabricator.services.mozilla.com/D72222
2020-05-08 18:10:16 +00:00
Jean-Yves Avenard
f304da03ac Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 08:04:53 +00:00
Alex Chronopoulos
e72615c01c Bug 1629984 - Stop enumerating suspended cameras. r=padenot
Suspended cameras are not able to capture data thus they are removed from the list of enumerated devices.

Differential Revision: https://phabricator.services.mozilla.com/D74210
2020-05-07 12:57:08 +00:00
Simon Giesecke
61ad805d68 Bug 1626570 - Use CopyableTArray in ipdlc as member type for now. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D73685
2020-05-07 08:11:08 +00:00
Dorel Luca
9340fa2b2d Backed out 11 changesets (bug 1635001, bug 1634253) for Browser-chrome failures in browser_bug295977_autoscroll_overflow.js
Backed out changeset c3c27cb46db6 (bug 1635001)
Backed out changeset 6cea251e5910 (bug 1635001)
Backed out changeset 3cb0a05be7fc (bug 1635001)
Backed out changeset 1cbb2866a3ad (bug 1634253)
Backed out changeset 53fd00dcf95c (bug 1634253)
Backed out changeset e3acd9db7065 (bug 1634253)
Backed out changeset 5c0b7aa99406 (bug 1634253)
Backed out changeset dc7e17f772be (bug 1634253)
Backed out changeset 6e47af64396a (bug 1634253)
Backed out changeset 8865de9ae0ef (bug 1634253)
Backed out changeset 6fac93b596c2 (bug 1634253)
2020-05-07 11:00:04 +03:00
Jean-Yves Avenard
96d7622823 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 05:03:42 +00:00
Byron Campen [:bwc]
213a5cff8c Bug 1634145: Avoid leaking nr_ice_sockets due to various kinds of failure. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D73287
2020-05-04 12:00:26 +00:00
Byron Campen [:bwc]
088ad10f93 Bug 1626364: Reinit decoder on error in WebrtcMediaDataDecoder. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D69649
2020-04-27 16:54:37 +00:00
Matthew Gregan
f7177d3d52 Bug 1631965 - Switch AudioIPC to bugfix fork of mio-named-pipes. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D71836
2020-05-05 21:13:30 +00:00