Commit Graph

2439 Commits

Author SHA1 Message Date
Munro Mengjue Chiang
979c34dc04 Bug 1389534 - Enable continuous auto focus mode. r=jib
MozReview-Commit-ID: DrTkb9CxjlA

--HG--
extra : rebase_source : c65aabcf0939a20814690a4c3349846fde0be00a
2017-09-07 18:25:45 +08:00
Nico Grunbaum
a531d080c3 Bug 1393095 - remote audio receiver stats missing;r=dminor,jesup
MozReview-Commit-ID: 9izPPOqybcK

--HG--
extra : rebase_source : 31578d7198929267e423a1c0c4b13cd49f110629
2017-09-13 01:38:35 -07:00
Dan Minor
48f0f26faf Bug 1398820 - Do not add duplicate rtp extensions; r=bwc
MozReview-Commit-ID: G6wLXW7z05d

--HG--
extra : rebase_source : e90ca378082a899a2cb7961121b6822e2ba2a72c
2017-09-14 15:55:33 -04:00
Dan Minor
c9a33a6e73 Bug 1393687 - Fix handling of max-fr parameter; r=jesup
MozReview-Commit-ID: C30K1Pogm5u

--HG--
extra : rebase_source : e53ed34aed0c59b1495581562901b4e7cc78e3b0
2017-09-07 16:05:52 -04:00
Dan Minor
ceaff80d1d Bug 1393687 - Use VideoAdapter to handle max-fs; r=jesup
This uses the VideoAdapter to handle the max-fs constraint rather than
attempting to calculate and enforce it manually within the VideoConduit.
The resolution is taken as the small of the max-fs constraint and the
latest request from the video sink.

The old unit tests for max-fs and max-fr are removed as the size
calculation has now been delegated to the VideoAdapter and the tests do
not verify whether or not video has actually been scaled.

MozReview-Commit-ID: 18khmiNageR

--HG--
extra : rebase_source : 9d4c80ab5d426721c5c409d81130f2a586c862ad
2017-09-11 13:43:32 -04:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Nils Ohlmeier [:drno]
4ba00c2a5a Bug 1396974: make tests ensure no bundle-only is present in inactive m-swctions. r=bwc
MozReview-Commit-ID: 5pnTygvwTSy

--HG--
extra : rebase_source : 4856491656e8503412a42cafbb8f9af2814a00f3
2017-09-08 13:05:13 -07:00
Nils Ohlmeier [:drno]
7b33b594d5 Bug 1396974: stop bundeling inactive m-sections. r=bwc
MozReview-Commit-ID: AXBtipHlW0Y

--HG--
extra : rebase_source : c1cf7cd11896a757472b47ccf8810cfca7c413d1
2017-09-08 12:26:19 -07:00
Randell Jesup
62c5b9fbfe Bug 1396107: switch to using the same audio input method upstream webrtc.org does r=dminor,padenot 2017-09-12 10:14:41 -04:00
Chris Manchester
c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Nils Ohlmeier [:drno]
dfbfc1ccea Bug 1384801 - Improve the sdp base64 parser. r=bwc
MozReview-Commit-ID: 30e64v5vxo8
2017-09-01 15:58:01 -07:00
Nathan Froyd
8bc151b3cf Bug 1396864 - eliminate -Wunused-private-field warning in WebrcMediaCodecVideoCodec; r=jesup
The mTimestamp field is unused.
2017-09-06 08:57:09 -04:00
Dan Minor
28d9a3c000 Bug 1395566 - Enable more webrtc.org desktop capture tests; r=jesup
This adds the remaining desktop_capture unit tests with a few exceptions:
app_capturer_unittest does not compile and is not built by webrtc.org,
and desktop_capturer_differ_wrapper_unittest, rgba_color_unittest,
screen_drawer_unittest and test_utils_unittest rely upon code that we do
not build.

--HG--
extra : rebase_source : 6bdac36a46723ade37d6c2ba4a9384ff7205a6e1
2017-09-01 09:44:29 -04:00
Dan Minor
f1506a2ce3 Bug 1395849 - Fix G.722 audio codec; r=jesup
Even though we were building the G.722 codec, we weren't setting the
defines so that it would actually be used.

MozReview-Commit-ID: Dw8l2sYwZFA

--HG--
extra : rebase_source : 10cbd61cb483536be32d7b40f1e64222c3259089
2017-09-01 14:48:36 -04:00
Nils Ohlmeier [:drno]
b81119f1e6 Bug 1264479: don't crash on disappearing data channels. r=bwc
MozReview-Commit-ID: 3DmM7teByR8

--HG--
extra : rebase_source : 238054d17ff624eb203f8352493cd2ce99e11402
2017-08-31 14:30:50 -07:00
Jean-Yves Avenard
64a4b87c4c Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Sebastian Hengst
e9bfcd79f9 Backed out changeset de401d17868d (bug 1394591) 2017-09-04 00:06:51 +02:00
Jean-Yves Avenard
9b2818843f Bug 1394591 - P6. Simplify some internal codec mimetype. r=gerald
The codec mimetype is now shown in the media devtools. May as well make it readable.

MozReview-Commit-ID: 6rccDiTR24m

--HG--
extra : rebase_source : 7b8d1da8f05d0c46d5fd57b5e604ec3aed36a5f2
2017-09-01 23:04:39 +02:00
Nico Grunbaum
f9027b2f13 Bug 1381627 - EverySecondTelemetryCallback target r=billm,jib
MozReview-Commit-ID: 2noZLkM4ZjO

--HG--
extra : rebase_source : a5e022b083f7341c26e71314578ea9f0e9023818
2017-08-17 17:39:39 -07:00
Wes Kocher
8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Dan Minor
ed140d9eeb Bug 1395289 - Convert from points to pixels when invalidating rect for screensharing when building on OS X older than 10.8; r=jesup
When we build for versions of OS X below 10.8 it is still necessary to
convert from points to pixels when invalidating rectangles as we use the
CGRegisterScreenRefreshCallback and CGRegisterMoveCallback interfaces.

--HG--
extra : rebase_source : cc3a405c1faaf010922b9acbe0edc21da15bb9ac
2017-08-31 13:29:34 -04:00
Mike Hommey
a03ea28fe8 Bug 1395769 - Don't define MOZ_JEMALLOC_IMPL when building webrtc-gtest. r=froydnj
This define is only meant to be set when building mozjemalloc itself.

--HG--
extra : rebase_source : 5660b691855c3b0be55375ad8d9525ea2288bb69
2017-08-31 16:16:23 +09:00
Tom Ritter
c756f0c92e Bug 1393795 Lowercase includes so WebRTC compiles with MinGW r=jesup
This edits the third party SCTP library, but upstream has already applied this change to master

MozReview-Commit-ID: ERpMc8EvYZ7

--HG--
extra : rebase_source : cea0d3758275b73a395ad2738edd8eb57c833e1a
2017-08-25 14:04:36 -05:00
Nils Ohlmeier [:drno]
44e91b37c9 Bug 1392813: removed unused sendrecv attributes. r=bwc
MozReview-Commit-ID: 4T3taLcYXtq

--HG--
extra : rebase_source : bce648963cfeb437d9c3f015b0fe33889628212a
2017-08-22 15:27:08 -07:00
Nils Ohlmeier [:drno]
776005a2ec Bug 1392745: verify mid presence in inactive m-section r=mjf
MozReview-Commit-ID: 7XISDzZCirr

--HG--
extra : rebase_source : a786be541a31edac05647fe2ee4d0c63c982d3d0
2017-08-22 14:22:52 -07:00
Nils Ohlmeier [:drno]
240ea1983a Bug 1392745: keep MID when disabling m-sections r=mjf
MozReview-Commit-ID: 3CDA7lF70kr

--HG--
extra : rebase_source : 6d1a663acfde0a48cbb8fa0c51899a886b24b41a
2017-08-22 12:05:22 -07:00
Michael Froman
5d1597b31f Bug 1391857 - fixing ctx flags for e10s stun addr gathering. r=drno
In the case of e10s, the ctx flags for default route only (and less
importantly in this case, proxy only) were not set on the ice ctx
when SetStunAddrs was called in PeerConnectionMedia.

MozReview-Commit-ID: CldUpJfaaH3

--HG--
extra : rebase_source : 6223722275d4741519890d4d2b8436b05ca43155
2017-08-22 10:13:06 -05:00
Mike Hommey
f7fa48a68d Bug 1392515 - Properly link webrtc-gtest on Linux. r=gps
The main difference between Linux and other platforms is that mozglue is
a static library and doesn't include the allocator, while it is a
dynamic library and includes the allocator on other platforms.

As such, linking against mozglue alone doesn't guarantee everything that
should be linked is linked, which GeckoProgram() does. But since
webrtc-gtest doesn't want to link libxul, we use linkage=None.

--HG--
extra : rebase_source : 552b123cb4ef6a861a49bc5eea0f03b9b5427e8b
2017-08-22 14:51:44 +09:00
Wes Kocher
6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Dan Minor
b779bb7db1 Bug 1392583 - Remove calls to FATAL() from audio_device_template.h for unimplemented functions; r=padenot
This removes calls to FATAL() and replaces them with LOG() statements. The
unimplemented functions already returned error codes.

MozReview-Commit-ID: KgXVCIKWoLp

--HG--
extra : rebase_source : 993d3700e734fd6042fc5708261dc58d9987e64b
2017-08-22 09:58:03 -04:00
Dan Minor
0c9287d1b6 Bug 1388129 - Fix interaction between quality scaler and scaleResolutionDownBy; r=jesup
Currently we apply the scaleResolutionDownBy factor to the resolution
requested by the quality scaler. This can lead to a cycle where the quality
scaler requests a slightly larger resolution and we scale it down even
smaller than the current resolution.

This changes things so that we only apply scaleResolutionDownBy to the
incoming resolution and then take the minimum of the scaled resolution and
the resolution requested by the quality scaler.

--HG--
extra : rebase_source : 1d16ed60b575c48d43e2e1928c518bc197339cbc
2017-08-18 12:11:50 -04:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm
50513900c7 Bug 1389598 - Part 2: Remove gonk references from media/ r=jesup
--HG--
extra : rebase_source : d1af2d0987038e1c0b0b0c971d0d2e4e9f08364a
2017-08-11 17:46:15 -07:00
Michael Froman
cb5753f469 Bug 1390318 - add MID support to webrtc.org. r=drno
MozReview-Commit-ID: EHgEuhw855n

--HG--
extra : rebase_source : 8d575753a628b18472c3acd13ca88f5aa63c16b1
2017-07-27 16:19:56 -05:00
Dan Minor
9f34033ad7 Bug 1387525 - Fix crash in webrtc::NetEqImpl::InsertPacketInternal; r=jesup
The webrtc.org code assumes we will always get a valid decoder for a known payload
type, but this is not true for our builds. This adds a check that we have a valid
decoder before calling IncomingPacket.

MozReview-Commit-ID: GUJR7Qn28vh

--HG--
extra : rebase_source : 6bd5872b59d964c3246708f0e6f549bb74dcc0b3
2017-08-15 08:25:43 -04:00
Randell Jesup
e4fdfcbf3b Bug 1390202: Populate temporal_layer_thresholds_bps so we'll send temporal layers in webrtc r=bwc 2017-08-18 00:33:59 -04:00
Henri Sivonen
29fb7aad8e Bug 1378123 - Make inner window track whether there is an active PeerConnection. r=jib
MozReview-Commit-ID: 98Hwhnxtt1T

--HG--
extra : rebase_source : 3d7be906acec0d4262fae15d1755cdb7cfc71eb3
2017-08-04 13:28:15 +03:00
Michael Froman
830c799f81 Bug 1389256 - fix incomplete handling of RepairedRtpStreamId after webrtc.org backport of RtpStreamId. r=bwc
During my backport of RtpStreamId from webrtc.org, I missed a few
places where RepairedRtpStreamId was used or was not completely
implemented.  Also, the webrtc.org code used repairedStreamId,
which is not really correct per the spec (draft-ietf-avtext-rid)
so I fixed all occurances to use the correct repairedRtpStreamId
to avoid confusion later.

The RTP header extensions default IDs for RtpStreamId and
RepairedRtpStreamId were also adjusted to not collide with
PlayoutDelay's default ID.

MozReview-Commit-ID: HSlS8nsKQ29

--HG--
extra : rebase_source : f1bf7fc9ceec22de1c56ef3b7be22fccea01ecdb
2017-07-28 14:52:46 -05:00
Lennart Grahl
c2ebc3e45e Bug 979417 - Implement EOR when receiving and explicit EOR when sending on data channels (including DCEP). r=drno,jesup
This allows sending and receiving arbitrarily (we limit to 1 GiB atm) sized
messages while not relying on the deprecated PPID fragmentation/reassembly
mode. The code already supports the ndata extension but it's not activated,
yet. Without the SCTP ndata extension, a large data channel message will
monopolise the SCTP association. While this is a problem, it is a temporary
solution until the extension is being activated. Keep in mind that every
application that uses data channels currently does fragmentation/reassembly on
application-level and it's unlikely that this will change until the popular
implementations (libwebrtc) implement EOR as well. Moreover, until the WebRTC
API specifies an API that hands over partial messages, doing application-level
fragmentation/reassembly is still useful for very large messages (sadly).

We fall back to PPID-based fragmentation/reassembly mode IFF a=max-message-size
is not set in the SDP and the negotiated amount of SCTP inbound streams is
exactly 256. Other implementations should avoid using this combination (to be
precise, other implementations should send a=max-message-size).

It also changes behaviour of RTCDataChannel.send which now raises TypeError in
case the message is too large for the other peer to receive. This is a
necessity to ensure that implementations that do not look at the EOR flag when
receiving are always able to receive our messages. Even if these
implementations do not set a=max-message-size, we use a safe default value (64
KiB, dictated by the spec) that every implementation should be able to receive,
with or without EOR support.

* Due to the use of explicit EOR, this required some major refactoring of all
  send-related and deferred sending functions (which is now a lot less
  complex). There's now only one place where `usrsctp_sendv` is being used.
* All data channel messages and DCEP messages will be sent without copying them
  first. Only in case this fails (e.g. usrsctp's buffer is full), the message
  will be copied and added to a buffer queue.
* Queued data channel messages will now be re-sent fairly (round-robin).
* Maximum message size and the PPID-based fragmentation are configurable using
  about:config (media.peerconnection.sctp.force_ppid_fragmentation and
  media.peerconnection.sctp.force_maximum_message_size).
* Enable interleaving of incoming messages for different streams (preparation
  for SCTP ndata, has no effect until it is enabled).
* Enable interleaving of outgoing messages (disabled if SCTP ndata has not been
  negotiated).
* Add pending messages flag to reduce performance impact from frequent calls to
  SendDeferredMessages.
* Handle partial delivery events (for cases where a partially delivered message
  is being aborted).
* Close a data channel/the connection in case the message is too large to be
  handled (this is only applied in cases where the remote peer ignores our
  announced local maximum message size).
* Various size_t to uint32_t conversions (message length) and back should be
  safe now.
* Remove aUsingDtls/mUsingDtls from DataChannelConnection.
* Set maximum message size in SDP and in the data channel stack.
* Replace implicit NS_ENSURE_*'s with explicit NS_WARN_IF's.
* Add SetMaxMessageSize method for late-applying those signalling parameters
  when a data channel has been created before the remote SDP was available.
* Limit remote maximum message size and add a GetMaxMessageSize method for a
  future implementation of RTCSctpTransport.maxMessageSize.

MozReview-Commit-ID: FlmZrpC5zVI

--HG--
extra : rebase_source : 54e1b838c788a3abbded4fb32fe7c2788f8a9bc0
2017-07-26 13:18:54 +02:00
Wes Kocher
cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Sylvestre Ledru
d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
Matthew Gregan
2f8cc7804c Bug 1388236 - Remove B2G-only AudioChannel code from MSG. r=padenot 2017-08-10 13:00:08 +12:00
Paul Adenot
09ca1b1297 Bug 1384655 - Remove obsolete latency measuring macros in downstream code we don't use anymore. r=jesup
MozReview-Commit-ID: ARAWGe7yFM4

--HG--
extra : amend_source : b1b3f4f33c9c2b15465ac5670a3639b8527a16a3
2017-08-08 10:00:37 +02:00
Sylvestre Ledru
289b4ecd71 Bug 1387376 - Reserve memory before using push_back with vector r=jesup
MozReview-Commit-ID: CrSFN0Ov1B4

--HG--
extra : rebase_source : 9863893841abcc1c7ef35932160cdbddaa535e45
2017-08-04 21:28:50 +02:00
Makoto Kato
d2130a3810 Bug 1386164 - Part 2. Use MOZ_SYSTEM_LIBEVENT for webrtc. r=jesup
GYP of WebRTC should reference MOZ_SYSTEM_LIBEVENT values if available.

MozReview-Commit-ID: CshsPrRidM8

--HG--
extra : rebase_source : 9e619c2f49e7c2b3f680814b95b823996773fa6c
2017-08-03 13:28:25 +09:00
Makoto Kato
b2458fa168 Bug 1386164 - Part 1. Use libevent2 headers instead of deprecated event.h. r=jesup
libevent uses event.h header that is fuzzy name.  Since our in-tree libevent is libevent2, we should use libevent2 headers instead of deprecated event.h

MozReview-Commit-ID: 6DjW9JEkNWL

--HG--
extra : rebase_source : b774e177b137bf7427122253a3e4c698689e08a4
2017-08-03 13:22:26 +09:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Nicholas Nethercote
581214bd8b Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj.
--HG--
extra : rebase_source : fe566945a55c281d8290634a5b55bed19415c839
2017-07-31 10:52:51 +10:00
Sebastian Hengst
d7527a414d Backed out changeset 07b534f44740 (bug 1384835) for failing xpcshell's security/manager/ssl/tests/unit/test_cert_sha1.js checkCertErrorGenericAtTime on Linux x64 debug. r=backout 2017-07-28 10:30:29 +02:00