Commit Graph

6437 Commits

Author SHA1 Message Date
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
Dan Minor
118f324018 Bug 1411681 - Cherrypick 6728003bcf5657da8f9ed52ad84f46c1197ce54b from upstream webrtc.org; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D12417

--HG--
extra : moz-landing-system : lando
2018-11-20 12:07:07 +00:00
Dan Minor
a88b07525e Bug 1406941 - Add unittests for configuring AudioConduit; r=padenot
Depends on D12017

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:35 +00:00
Dan Minor
5efc93cb87 Bug 1406941 - Make AudioConduit more easily unit testable; r=padenot
This makes Init and DeleteChannels virtual and mRecvChannelProxy and
mSendChannelProxy protected. This will allow unit test code to override
the creation of channels so that we can use a mocked ChannelProxy instead.

Depends on D12016

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:43 +00:00
Dan Minor
80bc9e8334 Bug 1406941 - Remove unused error handling code from SetLocalRTPExtensions; r=padenot
Rather than returning an error, the channel proxies have asserts that the
underlying calls to the channel objects succeeded.

Depends on D12015

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:46:15 +00:00
Dan Minor
6c797e79ae Bug 1406941 - Set opus maxplaybackrate in AudioConduit; r=padenot
This was regressed by the branch 64 update. The parameter is used in
audio_encoder_opus.cc.

Depends on D12014

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:16 +00:00
Dan Minor
f064d3d180 Bug 1406941 - Fix typo in videoconduit_unittests.cpp; r=padenot
Depends on D12013

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:25 +00:00
Dan Minor
a9a121b9e9 Bug 1406941 - Remove unused fields from JsepAudioCodecDescription; r=bwc
Packet size and rate are no longer configured inside AudioConduit, so there is
no reason to continue to define them here. We now take the defaults provided
by webrtc.org.

Depends on D12012

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:44:16 +00:00
Dan Minor
450258b20a Bug 1406941 - Remove unused fields from AudioCodecConfig; r=padenot
With the branch 64 update we no longer configure packet size and rate
ourselves. Instead, we use the defaults provided in acm_codec_database.cc.
This removes the unused fields from AudioCodecConfig, the next commit does the
same thing for JsepAudioCodecDescription.

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:33 +00:00
Thomas Daede
9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Csoregi Natalia
c9b70719c8 Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Dan Horák
02a48779df Bug 1506644 - Add webrtc.org build configs for PPC and Arm Linux platforms; r=dminor
--HG--
extra : rebase_source : b9d40305a0bb16700d3863048424d892fde04001
2018-11-15 08:34:27 -05:00
Margareta Eliza Balazs
d5555d2998 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
byron jones
e79d7f7cdf Bug 1507057 - libtheora: replace libtheora's README_MOZILLA with moz.yaml; r=jya
Add moz.yaml and update `update.sh` to match other media libraries.

Note after upstream's switch from SVN to git the RSC headers have changed,
however, these changes have not yet been committed.  I've updated the patch
that had hunks with context extending into the RSC header so it continues to
apply after pulling from git.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 12:04:58 +00:00
Byron Campen [:bwc]
03444d1918 Bug 1487278: When a transceiver is stopped/disassociated by a remote description, clear its transport id too. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11778

--HG--
extra : moz-landing-system : lando
2018-11-14 23:29:41 +00:00
David Major
79ef206dc5 Bug 1503363: Regenerate webrtc moz.build files. r=dminor
--HG--
extra : rebase_source : 44e3d835c4bac4cd6692a406329512d16a3357c6
2018-11-14 10:37:21 -05:00
David Major
a09f9b750d Bug 1503363: Add gn json files for x64-windows. r=dminor
--HG--
rename : media/webrtc/gn-configs/x86_False_x86_win.json => media/webrtc/gn-configs/x64_False_x64_win.json
rename : media/webrtc/gn-configs/x86_True_x86_win.json => media/webrtc/gn-configs/x64_True_x64_win.json
extra : rebase_source : 6c72890bf43767f91faf185530610215a596d46b
2018-11-14 10:28:54 -05:00
Chris Manchester
8bc396706e Bug 1503363: Add gn json files for x86-linux. r=dminor
--HG--
rename : media/webrtc/gn-configs/x64_False_x64_linux.json => media/webrtc/gn-configs/x64_False_x86_linux.json
rename : media/webrtc/gn-configs/x64_True_x64_linux.json => media/webrtc/gn-configs/x64_True_x86_linux.json
extra : rebase_source : 64ef7ed051b5e4796194f35cf26efe4b78280b99
2018-11-14 10:28:53 -05:00
David Major
abaa2d2c68 Bug 1503363: Add gn json files for aarch64-windows. r=dminor
--HG--
extra : rebase_source : f96fd2ef8e045d4a0b56da883fa1542b4ab3e48b
2018-11-14 10:28:46 -05:00
David Major
7b8d1cf803 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor
--HG--
extra : rebase_source : ca3573f29f4ed56a64e39b702636dace1616c42d
2018-11-14 10:06:58 -05:00
Coroiu Cristina
d850d799a0 Merge inbound to mozilla-central a=merge 2018-11-14 11:51:31 +02:00
Nils Ohlmeier [:drno]
13c6f01479 Bug 1505733: add recording of DTLS protocol version used by PeerConnections. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D11300

--HG--
extra : moz-landing-system : lando
2018-11-10 20:29:57 +00:00
Nils Ohlmeier [:drno]
d0376ddab9 Bug 1456417: made MLineIndex nullable. r=bwc,smaug
Differential Revision: https://phabricator.services.mozilla.com/D10807

--HG--
extra : moz-landing-system : lando
2018-11-13 22:52:24 +00:00
Byron Campen [:bwc]
33bc9bd6b6 Bug 1498793: Accept msid without track id r=mjf,jib
Differential Revision: https://phabricator.services.mozilla.com/D10925

--HG--
extra : moz-landing-system : lando
2018-11-12 19:25:59 +00:00
byron jones
0ef0024e3e Bug 1505278 - replace libmkv's README_MOZILLA with moz.yaml. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D11147

--HG--
extra : moz-landing-system : lando
2018-11-11 22:01:14 +00:00
Dan Minor
cc500ea702 Bug 1506500 - Use ReceiveStreamStatistics for GetRTCPSenderReport; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D11794

--HG--
extra : rebase_source : 1d71f849f75b77f7e2834afa50f91a8259c7cb56
2018-11-13 11:43:17 -05:00
Brindusan Cristian
3a68003805 Backed out 3 changesets (bug 1503363) for build bustages on mozbuild. CLOSED TREE
Backed out changeset adc6f14f89e4 (bug 1503363)
Backed out changeset 0b7dd43c1e2e (bug 1503363)
Backed out changeset 8c2426b552ac (bug 1503363)
2018-11-13 18:28:48 +02:00
David Major
08ccde641f Bug 1503363: Regenerate webrtc moz.build files. r=dminor 2018-11-13 11:13:42 -05:00
David Major
9735854f16 Bug 1503363: Add gn json files for aarch64-windows. r=dminor 2018-11-13 11:13:42 -05:00
David Major
becc139296 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor 2018-11-13 11:13:41 -05:00
Paul Vitale
09f4c06235 Bug 1203503 - part 2. replace proxy tunnel with new ipc-based tunnel r+bwc, r+mayhemer
This replaces the tunnel using a new nr_socket implementation.  Proxy detection
code is still done in the peer connction.  However, the result is only used to
detect a proxy.  The result is unused.  Address resolution is done by necko code
in the parent process.  The new socket wraps a WebrtcProxyChannel which uses
necko to handle proxy negotiation.  This has a happy side effect of enabling all
authentication modes that necko already supports for http proxies.

This adds a protocol for Necko to manage, WebrtcProxyChannel.  This new protocol
serves as a pipe for a CONNECT tunnel.  It is only used in WebRtc and not built
in no WebRtc builds.

--HG--
extra : rebase_source : a951841f95eaaa0562886cf76b405b01f1adf70e
extra : intermediate-source : 5c3da21957fc80b07188bc8a405437b858027a22
extra : source : 594a32883463ab051677ba06e22fa6d062b4b4a9
2018-06-05 12:10:16 -05:00
Dan Minor
0185d52ba2 Bug 1376873 - Reduce thread stack size in platform_thread.cc; r=bwc
Summary:
The current default stack size of 1M results in intermittent OOMs on win32
builds while running web-platform tests. The value of 256k was chosen for
consistency with the default value used elsewhere in Gecko, which is defined in
nsIThreadManager.idl.

Reviewers: bwc

Tags: #secure-revision

Bug #: 1376873

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

--HG--
extra : rebase_source : 9039a5c4ac25c227ee65b0321fdffdecd81d085c
2018-11-05 10:33:02 -05:00
Dan Minor
29c115bb15 Bug 1376873 - Add generated moz.build files; r=ng
--HG--
extra : rebase_source : 4b6fbd953d68e9092be0159f2af004bf96a1226e
2018-09-13 07:53:01 -04:00
Jan Beich
f14826a7c9 Bug 1376873 - Add WebRTC 64 gn-configs for BSDs. r=dminor f=gaston
All gn-configs were generated on a single FreeBSD amd64 machine:
- DragonFly and NetBSD have is_clang=false, so differ only in target_os/OS_TARGET
- FreeBSD and OpenBSD have is_clang=true, so differ only in target_os/OS_TARGET
- x86 (i386) configs are from 32-bit chroot on x86_64 (amd64)
- arm (armv7) and arm64 (aarch64) configs are from qemu-user chroot
- qemu-user can't run rustc atm, so configure was hacked to work without
- qemu-user crashes with gn 68 on aarch64, so gn 65 was used

--HG--
extra : rebase_source : fb05d660c299851de6226fb23c6873bdfc34237f
2018-10-12 12:57:04 -04:00
Jan Beich
e13e881da5 Bug 1376873 - Unbreak WebRTC 64 build on BSDs. r=dminor f=gaston
--HG--
extra : rebase_source : 84db77b91bced707b6465ffc9683d8b733512c74
2018-10-12 12:56:27 -04:00
Dan Minor
c8da55a336 Bug 1376873 - Update gn generated json files; r=ng
This updates the gn generated json files for tier-1 platforms, and removes
the outdated configurations for remaining platforms.

--HG--
extra : rebase_source : bccb7a5476d5d0a66aa90657f839cea5e49ff4ce
2018-02-23 15:01:50 -05:00
Andreas Pehrson
30610de2f0 Bug 1376873 - Use VP8SimulcastAdapter in VideoConduit; r=ng
The VP8SimulcastAdapter automatically handles cropping to accomodate
constraints on VP8 simulcast streams that each stream have exactly half the
width and height of the higher resolution stream before it.

This also adjusts min_bitrate_estimate in
test_peerConnection_simulcastOddResolution.html to compensate for changes in
the simulcast resolutions chosen by the webrtc.org code.

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

--HG--
extra : rebase_source : b7ea403f7c9d6175a34eb11c7af17dd12ee55c31
2018-09-21 16:45:47 +02:00
Dan Minor
0cf790ab2b Bug 1376873 - Fix up rotation in video_capture_impl.cc; r=pehrsons
This fixes a bug in the upstream code introduced when they removed the
ConvertToI420 helper method from webrtc_libyuv.cc. The buffer size is
passed into libyuv::ConvertI420 incorrectly when rotation is applied, which
causes bad rendering and instabilities.

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

--HG--
extra : rebase_source : d6910e01ebd81a626b6924f04b31f37b87900a66
2018-09-19 15:06:13 -04:00
Dan Minor
ceb2cc2230 Bug 1376873 - Make FunctionThatDoesNothing use const; r=ng
Windows ASAN builds complain about attempting to cast away the const qualifier
in FunctionThatDoesNothing, so this makes the argument const.

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

--HG--
extra : rebase_source : dbfa0a48f50c30afa5a41b81af32bd9744a31511
2018-09-18 11:05:25 -04:00
Dan Minor
0370dcd88f Bug 1376873 - Don't define _USE_MATH_DEFINES in audio_processing.h; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7476

--HG--
extra : rebase_source : 479864aa7db0f3050bbc2dbd9465cbc35ae172c0
2018-09-18 06:57:35 -04:00
Dan Minor
641b71af57 Bug 1376873 - Keep track of active codec mode in VideoConduit; r=pehrsons
Upstream has added an assertion in video send stream that prevents using
ReconfigureVideoEncoder if the content type has changed. This adds a
mActiveCodecMode member and uses it to prevent calling that method if the
codec mode has changed.

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

--HG--
extra : rebase_source : d6af217ae501163f6ee742f2ad48f1f22d2869b4
2018-09-17 15:51:32 -04:00
Dan Minor
461e6fc686 Bug 1376873 - Setup contributing sources extension in audio_receive_stream.cc; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7474

--HG--
extra : rebase_source : 61e403ccc644d35a541e796c36f92abc198989af
2018-09-17 15:03:34 -04:00
Dan Minor
426cafe100 Bug 1376873 - Rollup of changes from cd8671232fd8 to 2a59b432d2bd; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7472

--HG--
extra : rebase_source : c9c96bfd25942ecb51f2ea7e3f8c913cd866cd8e
2018-09-17 07:24:22 -04:00
Dan Minor
eab091ae07 Bug 1376873 - Fix GetRTPStatistics; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7471

--HG--
extra : rebase_source : c85d48f46800be6b26e32a9f216b053e26bc523d
2018-09-06 16:24:33 -04:00
Dan Minor
d044bb4e47 Bug 1376873 - Fix warning in mean_variance_estimator.cc; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7470

--HG--
extra : rebase_source : 2357593c29910f2a99c1c1f8365a5621bea8d717
2018-08-13 10:24:46 -04:00
Dan Minor
2eda698370 Bug 1376873 - Allow single channel opus; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7469

--HG--
extra : rebase_source : 2d270cc630ed9910d6e6c3ef793b5e8a3beacac3
2018-08-13 08:34:44 -04:00
Dan Minor
4884df4153 Bug 1376873 - Make lock_block explicit; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D7468

--HG--
extra : rebase_source : c81c3a142595e24b4177b03c2fbf58b49ec0062d
2018-08-02 13:56:10 -04:00
Dan Minor
d236b5c9ba Bug 1376873 - Cherrypick rev 09133af36fba93691a22151765097c0bd581c1fa; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7466

--HG--
extra : rebase_source : 71b4f43d9be1717cc60b8adbb4d42a47925b1820
2018-08-02 08:50:15 -04:00
Dan Minor
0c883f7989 Bug 1376873 - Change OS X logging include to prevent preprocessor multiple defines; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7465

--HG--
extra : rebase_source : b7dcd4720f764a763560b72674c16e8f17bc57fd
2018-07-31 13:45:43 -04:00
Dan Minor
b7851918aa Bug 1376873 - OS X desktop capture fixes; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7464

--HG--
extra : rebase_source : d09de73b006c2b8a68b763c21b3ea4dc68a59b56
2018-07-31 13:32:44 -04:00