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

2985 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 468205953d Merge inbound to mozilla-central. a=merge 2018-06-02 01:01:33 +03:00
Cosmin Sabou 1bc774a842 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-01 12:44:57 +03: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
Johannes Willbold 1142310e25 Bug 1432922: Implemented parsing support for rtcpfb-wildcard. r=bwc,dminor
Implemented Rust/C++ glue code for rtcp-fb
Implemented parsing support for rtcpfb-wildcard in rust
Activated c++ unit tests

MozReview-Commit-ID: 5xRSQz7pucZ

--HG--
extra : rebase_source : 97fdfda9134197381d16e0a61dda5357bba9e9da
2018-05-29 16:32:52 -07:00
Jan Keromnes 88a09b356c Bug 1464162 - Make a few vector operations more efficient by reserving size beforehand. r=jya
Summary:
These automated fixes were generated like so:
    ./mach configure --enable-clang-plugin
    ./mach build-backend --backend=CompileDB
    run-clang-tidy-6.0.py -p obj-x86_64-pc-linux-gnu/ -fix -checks=-*,performance-inefficient-vector-operation *

Reviewers: jya

Reviewed By: jya

Subscribers: jya

Bug #: 1464162

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

--HG--
extra : amend_source : 648dc48989c5af122a33f8d50c98c0f1efcf3874
2018-05-31 14:52:59 +03:00
Jan Beich b191e43264 Bug 1464680 - Add more WebRTC's gn-configs for BSDs on ARM. r=chmanchester
Based on output from FreeBSD armv7/aarch64.

MozReview-Commit-ID: L7mKj6FIGS5

--HG--
extra : rebase_source : 82729a252c941d4011fc764372fc4943e0a6dd9a
2018-05-27 13:49:33 +00:00
Jan de Mooij ce3eb7d5c0 Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke
The principals are on the realm so we need a realm instead of a compartment. Also adds js::GetNonCCWObjectRealm to get the realm of a non-CCW object.
2018-05-31 11:28:48 +02:00
arthur.iakab f1046ac67f Merge mozilla-central to inbound 2018-05-31 01:08:35 +03:00
arthur.iakab fb18cb09bd Merge mozilla inbound to central a=merge 2018-05-31 01:05:10 +03:00
Andrea Marchesini 1273dc5391 Bug 1446933 - Remove 'using namespace mozilla::net' from BackgroundUtils.h, r=qdot 2018-05-30 21:21:17 +02:00
Cameron Kaiser af336fb099 Bug 1465274 - Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : source : 3a2d42c1c0d47e11a1efc666cce491f3064469ef
2018-05-27 22:21:07 -07:00
Ryan VanderMeulen 7978cab95f Backed out changeset 3a2d42c1c0d4 for landing with the wrong bug number in the commit message. 2018-05-30 12:44:07 -04: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
Christian Holler 570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02: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
Cameron Kaiser fbc0928677 Bug 1434589: Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : rebase_source : 7915ec4e623b3e35fcdf84b21a4f8a869044bac8
2018-05-27 22:21:07 -07: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
Mike Hommey af5ff10060 Bug 1462873 - Link chromium_atomics to webrtc tests. r=froydnj
This redoes bug 1257888 which bug 1393119 undid.

--HG--
extra : rebase_source : 1f2e9225c1548d34d7b0d46a4c754ef594c44ee3
2018-05-19 13:00:56 +09: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
Randell Jesup 809e9aa0d4 Bug 1346291: update code that accidentally assumed libyuv would define things like int32 r=sotaro,jib 2018-05-09 23:59:16 -04:00
David Major 4ac65c8eef Bug 1459617: Merge upstream webrtc fix for build bustage with clang trunk. r=dminor
https://webrtc.googlesource.com/src/+/bda78c9464f4d0e6ff26b0035624a967269c3b0a
2018-05-09 16:32:31 -04:00
Dan Minor b9bfaf036c Bug 1456071 - Do not dispatch InsertDTMFTone call to sts thread; r=bwc
This removes the dispatch to the sts thread prior to calling
AudioConduit::InsertDTMFTone. There are assertions in ChannelProxy which
restrict the methods there to running on the main thread, so the current
code crashes immediately when inserting a tone in a debug build. The
inserted DTMF event ends up in a queue, so there is no reason not to just do
the insertion from the main thread.

MozReview-Commit-ID: G8JM9QDLrGF

--HG--
extra : rebase_source : 65168ee08efa5fc1960e35fd5acf4bdde0420b84
2018-04-26 11:36:19 -04:00
Dan Minor 21cb54ff16 Bug 1414829 - Fix VideoConduitTest gtest assertion failures; r=drno
--HG--
extra : rebase_source : 9e881c4a84389f480f2dcdd1c6be714bba2fdc72
2017-11-28 15:58:47 -05:00
Dan Minor f09687bfc8 Bug 1414829 - Add DeleteStreams to media conduits; r=jesup
--HG--
extra : rebase_source : da8ae4e2cb53e787f1730c2f5efcd65421de300f
2018-01-08 12:40:38 -05:00
Paul Adenot c6e563b490 Bug 1456115 - Make last_sample_rate_ in `neteq_impl.cc` atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot f412eb58ae Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Paul Adenot 1c6c907315 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot 19325f0f09 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Narcis Beleuzu d6e889b127 Backed out 4 changesets (bug 1456115) for Asan Mochitest filures "AddressSanitizer: stack-overflow /celt/bands.c:1437:4 in quant_all_bands". CLOSED TREE
Backed out changeset 3379d4fc07f6 (bug 1456115)
Backed out changeset 9c77f5b53b56 (bug 1456115)
Backed out changeset e48268ffa4d8 (bug 1456115)
Backed out changeset bffecfd92808 (bug 1456115)
2018-04-24 21:47:07 +03:00
Paul Adenot a1d88e5fb9 Bug 1456115 - Make last_sample_rate_ in `neteq_impl.cc` atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot 0640ca7fdb Bug 1456115 - Re-serialize inbound NotifyPull. r=jya
We made NotifyPull parallel to try to lower the load, and we initially measured
an improvement. However, we did the measurements with a profiler that did an
aggregation of the results. Our results had an high variance, so the mean load
was in fact not meaningful.

More careful measurement performed without doing any aggregation show that,
under load, relying on the fact that the scheduler schedules the tasks on time
is too risky, and that the code is fast enough to not have to parallelize.

MozReview-Commit-ID: CMhSn8Sc0OO

--HG--
extra : rebase_source : cfb41f861089bce9e10446bee81c13f8565ba90e
2018-04-12 14:23:03 +02:00
Paul Adenot 2d783a2f32 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot 581308e902 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Nils Ohlmeier [:drno] cf2d709fb0 Bug 1455557: accept new line as RTCP FB NACK terminator. r=bwc
MozReview-Commit-ID: B0KaqRvLqNs

--HG--
extra : rebase_source : 97bca7eb56b1e112fc3ff091e58323ff1d09d43e
2018-04-20 21:52:16 -07: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 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
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
Dan Minor aa20bd6084 Bug 1437345 - Update generated files; r=jesup
MozReview-Commit-ID: 5xmc2mrA2mz

--HG--
extra : rebase_source : 88e2293daadc84ca2e4246371ffa4e37ae9853ac
2018-03-19 08:35:21 -07:00
Jan Beich 036d3dfaf5 Bug 1437345 - Don't try to build audio_device backends. r=dminor
MozReview-Commit-ID: JjLucnqna0A

--HG--
extra : rebase_source : 3aff9d6da57917840b1f27430911a426ace4fbd0
2018-03-14 17:09:06 +00:00
Dan Minor 71ea2be163 Bug 1437345 - Set defaults for gn visual studio build; r=jesup
This hard codes the visual studio version to 2015. We did the same thing for the
gyp build. It also sets default paths for visual studio, which are ignored by the
remainder of the build system.

This was required to get gn code generation working on a fresh install of
Windows. I must have had similar changes on my old Windows VM but missed
commiting them as part of the gyp to gn build switch.

MozReview-Commit-ID: 7fYngpdIwxh

--HG--
extra : rebase_source : de24b50f8e19465d8c145ce96c31d4ad7cc52e57
2018-03-19 06:55:21 -07:00
Nicholas Nethercote 51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
Dan Minor b42c863551 Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode; r=pehrsons
A minimized window has a resolution of 1x1. Although we removed minimized windows from the list
of available windows to share, nothing prevents the user from minimizing it during a call. With
the current code, this will cause InitEncode to fail, resulting in a fatal release assert.

I tested this patch with window sharing on meet.google.com and I was able to minimize and restore
the window several times without problem. While minimized, the window appears as a black screen
to the other meeting participants. It renders normally when restored.

MozReview-Commit-ID: LE2NBiEy8nw

--HG--
extra : rebase_source : f95fd3f797e9f7262a938087ce3fb1e27f743920
2018-04-12 11:31:59 -07:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Jan-Ivar Bruaroey b5b5ad5862 Bug 1452031 - Use strong types for Media error names, fixing OverconstrainedError typo. r=pehrsons
MozReview-Commit-ID: AqGoW9rBdl5

--HG--
extra : rebase_source : fc7a638a2502aaebf318a35c6135755558a7396b
2018-04-10 01:22:53 -04:00
Dan Minor 30d5029270 Bug 1453030 - Only create RTCDTMFSender on audio RTCRtpSender senders; r=bwc
MozReview-Commit-ID: KsnUYCs8IYU

--HG--
extra : rebase_source : 2bee2f713ef65ef5baaa6cd37a3f9521beaa9a73
2018-04-10 13:19:42 -04:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Andreas Pehrson 2dcab8c04e Bug 1452048 - Read _captureStarted under lock on the camera thread. r=dminor
It is written under lock on the controlling thread (CamerasParent) in
StartCapture/StopCapture.

MozReview-Commit-ID: E7eq1YElhwt

--HG--
extra : rebase_source : f37b666d84c6710ac0d5c56002b82c707635f49b
2018-04-06 15:50:31 +02:00
Andreas Pehrson 3ed24c4f4c Bug 1452048 - Leave critical section before calling into java StartCapture(). r=dminor
If we stay in the critical section, and the StartCapture() is a reconfiguring
one, we risk deadlocking with IncomingFrame which runs on the camera thread.

MozReview-Commit-ID: 5rU4urrBWxr

--HG--
extra : rebase_source : 4c6e0c1e02eb1116a1fe433681bf4ad36f47186a
2018-04-06 15:49:24 +02:00
Andreas Pehrson edabee9ab6 Bug 1452048 - Give Looper lifetime control to external callers. r=dminor
Looper lifetime must be handled by external callers as otherwise internal
callers may accidentally and unknowingly quit the looper and essentially
terminate the camera thread, stopping any flow of frames and preventing future
messages.

In this case, a reconfig of the capture settings through startCapture() causes
startCaptureOnCameraThread() to restart the capture by calling into
stopCaptureOnCameraThread() (quitting the looper) and then re-calling
startCaptureOnCameraThread() (not restarting the looper as that is invalid).

The camera thread is set up by startCapture() on the external calling thread,
which will never know that a seemingly graceful camera thread operation stopped
the camera thread altogether, and so it cannot take any action.

MozReview-Commit-ID: DUTFdanTan1

--HG--
extra : rebase_source : afeb80aa8b2596a2615f57ec4af182a837323b7e
2018-04-06 13:59:45 +02:00
Andreea Pavel 7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00
Dan Minor d474e7f00c Bug 1432793 - Add gtests for simulcast screenshare and odd resolutions; r=bwc
MozReview-Commit-ID: ADBh7SCVgoC

--HG--
extra : rebase_source : 561a924560c0dbffbc95317b4cc5303dec6a8de6
2018-04-04 13:09:06 -04:00
Dan Minor 3eee879885 Bug 1432793 - Force screensharing simulcast to one layer and stop generating layers once an odd width and height are found; r=bwc
This limits screensharing simulcast to a single layer. When window sharing, our
source video can have arbitrary dimensions. If one of those dimensions ends up
being odd, the aspect ratio of the smaller layer will not match the aspect ratio
of the odd sized layer, causing a runtime assertion failure and crash.

It is not sufficient to prevent the creation of odd sized layers in
CreateEncoderStreams because the user can resize the window while it is being
shared, which will cause a fatal assertion prior to the streams being recreated.

When switching back from window sharing to camera, a call to
CreateEncoderStreams will occur with resolutions matching the dimensions of
the window that was just shared. To prevent a crash, this also adds a check
which prevents the creation of layers with odd resolutions.

Looking at cricket::GetSimulcastConfig for the version of webrtc.org in tree,
the number of simulcast layers is limited to one, or two if a field experiment
is enabled. That code also limits resolutions at which screensharing is allowed
as well as the number of layers that can be created for each resolution, and
ensures that each layer is exactly half the size of the layer above.

Adding these new constraints to CreateEncoderStreams makes us more consistent
with what the webrtc.org code would do when creating streams, which should
help to avoid more assertion failures in the future. Long term, I believe we
should just switch to using cricket::GetSimulcastConfig.

MozReview-Commit-ID: 8gjdY5GPPjl

--HG--
extra : rebase_source : b13b7acdac7f1e0b6016417b83bbe97dc2417a92
2018-03-28 11:07:54 -04:00
Narcis Beleuzu 2e33871511 Backed out changeset 847e9f622eb7 (bug 1432793) for build bustages on VideoConduit.cpp. CLOSED TREE 2018-04-05 00:16:14 +03:00
Dan Minor cc64345766 Bug 1432793 - Force screensharing simulcast to one layer and stop generating layers once an odd width and height are found; r=bwc
This limits screensharing simulcast to a single layer. When window sharing, our
source video can have arbitrary dimensions. If one of those dimensions ends up
being odd, the aspect ratio of the smaller layer will not match the aspect ratio
of the odd sized layer, causing a runtime assertion failure and crash.

It is not sufficient to prevent the creation of odd sized layers in
CreateEncoderStreams because the user can resize the window while it is being
shared, which will cause a fatal assertion prior to the streams being recreated.

When switching back from window sharing to camera, a call to
CreateEncoderStreams will occur with resolutions matching the dimensions of
the window that was just shared. To prevent a crash, this also adds a check
which prevents the creation of layers with odd resolutions.

Looking at cricket::GetSimulcastConfig for the version of webrtc.org in tree,
the number of simulcast layers is limited to one, or two if a field experiment
is enabled. That code also limits resolutions at which screensharing is allowed
as well as the number of layers that can be created for each resolution, and
ensures that each layer is exactly half the size of the layer above.

Adding these new constraints to CreateEncoderStreams makes us more consistent
with what the webrtc.org code would do when creating streams, which should
help to avoid more assertion failures in the future. Long term, I believe we
should just switch to using cricket::GetSimulcastConfig.

MozReview-Commit-ID: 8gjdY5GPPjl

--HG--
extra : rebase_source : 5a22f6d0a995303e6a4039eafc056631fbb86415
2018-03-28 11:07:54 -04:00
Boris Zbarsky 5ae1563978 Bug 1450422. Get rid of nsIDOMDataChannel. r=mystor
MozReview-Commit-ID: Dei5EEd0FZO
2018-04-04 15:32:19 -04:00
shindli 1b8212aefc Backed out 3 changesets (bug 1444976) for B, S and BR failures in z:\build\build\src\dom\media\AsyncLogger.h(47) on a CLOSED TREE
Backed out changeset 5a183343f307 (bug 1444976)
Backed out changeset 390ce943cda8 (bug 1444976)
Backed out changeset 75b4992b4a23 (bug 1444976)
2018-04-04 18:33:06 +03:00
Paul Adenot 84c49acfc5 Bug 1444976 - Trace some initial real-time media stuff. r=pehrsons
Tracing is very cheap, we should trace a bunch of stuff.

MozReview-Commit-ID: IhOyyRPXfg9

--HG--
extra : rebase_source : e6fa62f096ec269901f739bcd7f8ef6d61b79f12
extra : source : c0579ea271b9f5ff1b552fba1d4d2105b3d02eda
2018-03-20 18:23:26 +01:00
Byron Campen [:bwc] d0a45cf0c0 Bug 1448863: Stop sync dispatching in Decode. r=jesup
MozReview-Commit-ID: 3EK0zAsFpHz

--HG--
extra : rebase_source : 0591c5a8fa4abbe46b789817fd9c617e9ef02da6
2018-03-26 10:19:31 -05:00
Andreas Pehrson 14c26e7086 Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor
MozReview-Commit-ID: Ga3TgD9J030

--HG--
extra : rebase_source : d8edb95a541ecfb9ee391f03c5484f92865a2e2d
2018-04-05 12:03:12 +02:00
Andreas Pehrson 74e4bc1164 Bug 1440255 - Consolidate failure paths. r=dminor
The cameraThread is set by startCapture(), so a failed startCapture() that
quits the Looper and runs the cameraThread to completion needs to set
cameraThread back to null for consistency.

Likewise, stopCapture() shall always quit the Looper and set cameraThread to
null.

MozReview-Commit-ID: H1ExLyTixYw

--HG--
extra : rebase_source : 472b657cd8219533a5878f5b268b6288e1fe6320
2018-04-05 16:04:13 +02:00
Andreas Pehrson d9f2b85781 Bug 1440255 - Make VideoCaptureAndroid reconfigurable through subsequent startCapture. r=dminor
MozReview-Commit-ID: 9yslx7rMN2w

--HG--
extra : rebase_source : 87808e17efb58b7194ce87719beb610a19fa0be3
2018-04-04 20:17:21 +02:00
Andreas Pehrson 75146eb774 Bug 1440255 - Move thread exchanging out to runnables. r=dminor
This is the proper fix for bug 1420585.

MozReview-Commit-ID: 5WKMvbpQFSE

--HG--
extra : rebase_source : 32269d06a7e826db2ea882cbc974c366a63f39c0
2018-04-05 11:56:30 +02:00
Andreas Pehrson 745c2b59a9 Bug 1440255 - Backout bug 1420585 deadlock wallpaper fix r=dminor
MozReview-Commit-ID: DurGH2RmXQH

--HG--
extra : rebase_source : 16400494705c332bb8739b28735a941c84f0a379
2018-04-05 11:55:26 +02:00
Andreas Pehrson 8333691fd5 Bug 1441585 - Set picture size to something valid. r=dminor
MozReview-Commit-ID: 13lZcfR9wlC

--HG--
extra : rebase_source : 4037cca90cccc846f7b4e0c6da12eace3962d5af
2018-04-05 17:32:09 +02:00
Alex Chronopoulos 2ef6a59abe Bug 1387454 - Create a MediaStreamGraph according to the given sample rate. r=padenot
MozReview-Commit-ID: 4YP8oWIVyjy

--HG--
extra : rebase_source : 54c83c0aa122fecc9e07868405e42d31b2172516
2018-04-03 20:02:15 +03:00
Nils Ohlmeier [:drno] 2058100636 Bug 1394602: don't allow SSRC changes with Bundle. r=bwc
MozReview-Commit-ID: Kgb0lghAY7r

--HG--
extra : rebase_source : 26d44970231736c5cfefef4dcfc3b5afcb8b24ba
2017-12-01 15:54:57 -08:00
Byron Campen [:bwc] 5d6b88c22d Bug 1449042: Negotiate tracks even when they're not active. r=drno
MozReview-Commit-ID: CBhwHgjt1gf

--HG--
extra : rebase_source : c38a52290154e6d800a9f34f1ce87eab8859afa5
extra : source : cd4a5a800efa075bc1c4ba0c672bd301ee694ec0
2018-03-27 13:39:10 -05:00
Nathan Froyd 052d391b9c Bug 1448031 - make various audio/video/media constructors explicit; r=gerald
Attempting to stand up the static analysis for Android builds revealed
that we weren't being explicit enough.
2018-03-27 10:51:32 -04:00
Boris Zbarsky 37b111ac2a Bug 1447472 part 2. Remove nsIDOMCustomEvent. r=qdot
MozReview-Commit-ID: 3NPqLIU8cka
2018-03-26 14:53:51 -04:00
Cosmin Sabou 66b7c55e79 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-21 00:51:18 +02:00
Paul Adenot c1bbf3cd0d Bug 1437366 - Teach the AudioConduit to send audio that has a non-supported sample-rate. r=pehrsons
MozReview-Commit-ID: 6AvyPM4vpkr

--HG--
extra : rebase_source : 9a1decd2ba89281c88b0175bdcbad0d9d3df7680
2018-03-05 11:37:13 +01:00
Paul Adenot 33ec5a2a6a Bug 1437366 - Set the correct (possibly clamped) rate on the MediaStreamTrack when the MSG runs at a rate not compatible with the webrtc.org code, and fix interval calculation. r=jya,pehrsons
MozReview-Commit-ID: HOPjfdUJBSU

--HG--
extra : rebase_source : f47e232e7883cc4bdc2d433b8bdac1edb0fd1b0b
2018-03-05 13:31:00 +01:00
Jeff Walden 36462015eb Bug 1446592 - Update our local double_conversion to tip. Also remove one local patch as unnecessary as of MSVC 2010, hacking around prior versions' lack of <stdint.h> support. r=froydnj
--HG--
extra : rebase_source : ae21e264fc97373f42ea4a01189caed48e785e9c
2018-03-16 20:25:17 -07:00
Nils Ohlmeier [:drno] c43eaec585 Bug 1406529: adjust gtest to new extmap handling r=bwc
MozReview-Commit-ID: L7BXtoQNQBZ

--HG--
extra : rebase_source : 89a65b30b5f9493a661ad3ff1ab84c0fbac79007
2018-03-06 09:55:15 -08:00
Nils Ohlmeier [:drno] 25960e49eb Bug 1406529: ensure unique extmap IDs r=bwc
MozReview-Commit-ID: JIzYsUWLMfS

--HG--
extra : rebase_source : e0db4ecf9224ddc6883d1718550754c748516bb1
2018-03-05 11:28:47 -08:00
Christoph Diehl 74e4e24ec3 Bug 1446583: Update location for setting trace-pc coverage flags for LibFuzzer r=drno
--HG--
extra : amend_source : b3cd30a440c0e0e88a238bd93fc11e013d17ea84
2018-03-17 18:07:58 +01:00
Nils Ohlmeier [:drno] ed78750b13 Bug 1445860: set PeerIdenity only on transmitting Transceivers. r=mt
MozReview-Commit-ID: 10rKPDwuh9d

--HG--
extra : rebase_source : 59dec72acfbd3a47fd3b9cd6835f8f7dafc95e9d
2018-03-14 20:47:45 -07:00
Sylvestre Ledru fa45a3c670 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 5f5e37517aa80c2e7b5933962178d761074886e7
2018-03-16 14:29:15 +01:00
Jan Beich d4cf2a6748 Bug 1437670 - Regenerate mozbuild for WebRTC. r=dminor f=gaston
MozReview-Commit-ID: 3rH2nC0xsjZ

--HG--
extra : rebase_source : cabbc459e6b2da68f21a110b2b17cca67485aa51
2018-03-11 21:53:13 +00:00
Jan Beich 1a618eacd6 Bug 1437670 - Add WebRTC's gn-configs for BSDs. r=dminor f=gaston
Based on output from FreeBSD i386/amd64/aarch64 and OpenBSD amd64.

MozReview-Commit-ID: 8D1u28AJTME

--HG--
extra : rebase_source : b0667e3330bbc7988d289eec27160510c60c1a3e
2018-03-11 20:47:57 +00:00
Landry Breuil cc3d087962 Bug 1437670 - Restore BSD support in WebRTC. r=dminor f=jbeich
Original porting was done in bug 807492, so this is mostly gyp->gn translation.
cflags/libs are left unchanged as those aren't used by Gecko.

MozReview-Commit-ID: Bhw6KduoiVm

--HG--
extra : rebase_source : 485f1dfe38106b895ec481444e8a32d08f72f5e7
2018-03-10 13:30:00 -08:00
Jan Beich 5bd9fa806e Bug 1437670 - Add basic BSD support to GN build. r=dminor f=gaston
- If cross-toolchain is N/A use system one instead of error
- BSDs often use Linux interfaces, so don't exclude the files
- Define is_bsd as changes specific to a particular BSD are rare
- Adjust is_clang in case Gecko would use it in future

MozReview-Commit-ID: 5LlCbEKbAPO

--HG--
extra : rebase_source : 68fc72056f65c28d43d2bfb238b26b8895e76ba9
2018-03-11 18:34:27 +00:00
arthur.iakab 8976abf9ca Merge inbound to mozilla-central. a=merge 2018-03-14 12:00:13 +02:00
Nils Ohlmeier [:drno] 77731f0d87 Bug 1363900: re-enable extmap ID remapping error. r=bwc
MozReview-Commit-ID: 32Hog1LpIEU

--HG--
extra : rebase_source : 9825fe8e1c2d71ba539ecc05f8ca640aad8d3c5c
2018-02-27 21:55:01 -08:00
Dan Minor 650d4f0866 Bug 1379265 - Add RsdparsaSdpParser to sdp_unittests; r=bwc
This adds a bool parameter that allows the tests to run with either the Sipcc or
Rust SDP parsers.

The tests were changed as follows: One chunk of SDP ws missing a s= line, which
is non-optional as was added. Some of the SDP had a=ice-lite as a media
attribute, but it is only supposed to be a session attribute, and so the media
attribute was removed.

MozReview-Commit-ID: K45ynsVvmnB

--HG--
extra : rebase_source : 4e2a3ea18198f8e5467706b8ef9331aa225babd2
2018-01-23 14:24:44 -05:00
Paul Ellenbogen 1dd717f985 Bug 1379265 - Add RsdparsaSdpParser to JsepSessionImp; r=bwc
MozReview-Commit-ID: 6F4OQnldJez

--HG--
extra : rebase_source : 4cfba252856fcf0bb622d554126d272e000744ff
2018-01-11 15:14:17 -05:00
Paul Ellenbogen cecd8dd288 Bug 1379265 - Add C++ bindings for rsdparsa; r=bwc
MozReview-Commit-ID: FdhpTT5wzwI

--HG--
extra : rebase_source : e2c0c58dfe41e25df101ec52bca0b092bc330246
2017-06-30 12:54:12 -07:00
Paul Ellenbogen 9a973356aa Bug 1379265 - Add C API for rsdparsa; r=rillian
MozReview-Commit-ID: FdhpTT5wzwI

--HG--
extra : rebase_source : 9b0188b6e3c2604da77250b9e004508e91fe4497
2017-06-30 12:54:12 -07:00
Dan Minor 4dfdf9b22f Bug 1379265 - Import rsdparsa; r=rillian
Imported from git commit 0fd5ac915a134d4ffd5dd5949247632a1b92f7bc.

MozReview-Commit-ID: 8njzZT5YTTD

--HG--
extra : rebase_source : d2475db7f095f7ea55644b84b28d14efea1ab1e5
2018-01-11 10:42:16 -05:00
Narcis Beleuzu e73ecbc91f Backed out 4 changesets (bug 1437366) for mochitest failures on /test_peerConnection_basicAudio_forced_higher_rate.html
Backed out changeset 57826a5b03e8 (bug 1437366)
Backed out changeset a26852df062b (bug 1437366)
Backed out changeset abca0eb36d33 (bug 1437366)
Backed out changeset 41bb4a676575 (bug 1437366)

--HG--
extra : rebase_source : d81a0833db5d331fe928100cf88d1b9cc9253a1b
2018-03-08 19:27:25 +02:00
Paul Adenot 449e028ed9 Bug 1437366 - Teach the AudioConduit to send audio that has a non-supported sample-rate. r=pehrsons
MozReview-Commit-ID: 6AvyPM4vpkr

--HG--
extra : rebase_source : 45c40e2213f7dfe35e002141bf21040faeef6bf6
2018-03-05 11:37:13 +01:00
Paul Adenot a0f53590dc Bug 1437366 - Set the correct (possibly clamped) rate on the MediaStreamTrack when the MSG runs at a rate not compatible with the webrtc.org code, and fix interval calculation. r=jya,pehrsons
MozReview-Commit-ID: HOPjfdUJBSU

--HG--
extra : rebase_source : 65c475d09a3aaca8bb81988b562736a15d7b392b
2018-03-05 13:31:00 +01:00
Andreas Pehrson b9cd3068b0 Bug 1436341 - Stop() instead of Pause() device when stopping capture on Windows. r=jib
Pause() gave the benefit of another app not being able to steal
the device until the next Run(). It would keep the light on for
some cameras however.

Stop() makes the light go out on these cameras, but put them up
for another application to steal. Basically the same as on our
other platforms.

MozReview-Commit-ID: FPRYcZ2PEpm

--HG--
extra : rebase_source : 1870eb6933b02c83c7e61ac275b648fdde9b4cec
2018-03-07 10:43:23 +01:00
Andreas Pehrson c694fdcf48 Bug 1441145 - Hack the frame rotation through to CamerasParent and CamerasChild. r=jib
MozReview-Commit-ID: 1UL1Ixkzl86

--HG--
extra : rebase_source : c94147ecdb5c0fe8dbdc1e574dd064111921dfe4
2018-03-02 16:57:59 +01:00
Nico Grunbaum cb1016c774 Bug 1441260 - unify API for setting extmaps in AudioConduit r=dminor,mjf
MozReview-Commit-ID: 8PmvQyk32WW

--HG--
extra : rebase_source : 160ba11194fd823c5e90ccde9bddd7632efa9369
2018-02-26 20:59:01 -08:00
Masatoshi Kimura b1b043af08 Bug 1442266 - Stop including unnecessary <iostream>. r=froydnj
MozReview-Commit-ID: B0JDqyBanFE

--HG--
extra : rebase_source : dec1e2678083e3fb2b9a6b89322d1fa747ed6d4a
2018-03-01 23:07:56 +09:00
Byron Campen [:bwc] f4972e50cc Bug 1441192: Clear ICE operations queue in PeerConnectionMedia::SelfDestruct. r=drno
MozReview-Commit-ID: DNdq23SW0db

--HG--
extra : rebase_source : be06f784d04b6d0da353167ec54e1fa9100c114c
2018-02-26 10:59:24 -06:00
Andreas Pehrson 34646edc78 Bug 1436117 - Keep aImage around until the WrappedI420Buffer is released. r=dminor
MozReview-Commit-ID: GuBHFnPA3YQ

--HG--
extra : rebase_source : e5cc3c1d5e0f08279e8c40ebf03ef7e535cfe5e5
2018-02-26 10:32:29 +01:00
Csoregi Natalia ecb86060b4 Backed out 5 changesets (bug 1379265) for GTest crashes on RsdparsaSdpAttributeList::GetGroup. a=backout
Backed out changeset addf903ba015 (bug 1379265)
Backed out changeset 51f51dfe6095 (bug 1379265)
Backed out changeset 443378a6ed7a (bug 1379265)
Backed out changeset 0ea22b056105 (bug 1379265)
Backed out changeset d85d78ba8ccd (bug 1379265)
2018-02-24 12:58:24 +02:00
Dan Minor 7543dd987e Bug 1436959 - Update generated files; r=jesup
MozReview-Commit-ID: CAKOhpJQoxa

--HG--
extra : rebase_source : 221131f5f8ee2d6488f8a2c4ce42105f8ab835ec
extra : histedit_source : ad11eecf150e9bd974943efdbbc90018a8350993
2018-02-09 14:46:28 -05:00
Dan Minor e5ed549e69 Bug 1436959 - Use correct avfoundation library in video_capture; r=jesup
When switching to the gn build, we accidentally began linking against the
newer webrtc.org avfoundation library rather than the locally patched,
older version. This breaks the ondevicechange event and causes other
problems.

MozReview-Commit-ID: Kz2RBK4xkjQ

--HG--
extra : rebase_source : 8ecd07177cc7de1571133d061faa57bd87a3fe4b
extra : histedit_source : 2a2044c85a28975e40996ef839c6c82926142d51
2018-02-09 14:46:28 -05:00
Dan Minor a45db31520 Bug 1379265 - Add RsdparsaSdpParser to sdp_unittests; r=bwc
This adds a bool parameter that allows the tests to run with either the Sipcc or
Rust SDP parsers.

The tests were changed as follows: One chunk of SDP ws missing a s= line, which
is non-optional as was added. Some of the SDP had a=ice-lite as a media
attribute, but it is only supposed to be a session attribute, and so the media
attribute was removed.

MozReview-Commit-ID: K45ynsVvmnB

--HG--
extra : rebase_source : cf99d92db4c92e17dc3aa32e0862984fe69452a9
2018-01-23 14:24:44 -05:00
Paul Ellenbogen 039d9a80d1 Bug 1379265 - Add RsdparsaSdpParser to JsepSessionImp; r=bwc
MozReview-Commit-ID: 6F4OQnldJez

--HG--
extra : rebase_source : 19dea073e0e252bb6771c8eb7670dcbf4ba9a941
2018-01-11 15:14:17 -05:00
Paul Ellenbogen ef68d81ca0 Bug 1379265 - Add C++ bindings for rsdparsa; r=bwc
MozReview-Commit-ID: FdhpTT5wzwI

--HG--
extra : rebase_source : 40447f2682dddf65d0b9f804b016e99b2c7f5d92
2017-06-30 12:54:12 -07:00
Paul Ellenbogen ccaf43a57e Bug 1379265 - Add C API for rsdparsa; r=rillian
MozReview-Commit-ID: FdhpTT5wzwI

--HG--
extra : rebase_source : b1fd70e19346794f9309a49cda4a06ccfcd403aa
2017-06-30 12:54:12 -07:00
Dan Minor ad14285e30 Bug 1379265 - Import rsdparsa; r=rillian
Imported from git commit 0fd5ac915a134d4ffd5dd5949247632a1b92f7bc.

MozReview-Commit-ID: 8njzZT5YTTD

--HG--
extra : rebase_source : eed1aaf0fefa879ed345054fb3a2b67e6ab6d2ba
2018-01-11 10:42:16 -05:00
Nico Grunbaum 4e323cc913 Bug 1439076 - P2 - csrc-audio-level jsep gtest fixes r=jib
MozReview-Commit-ID: 1ZHK4TFIc9E

--HG--
extra : rebase_source : 897ceea8637b15b9a3872c86a2c8b3ac551e096d
2018-02-20 17:00:27 -08:00
Nico Grunbaum 3a07a6a7ec Bug 1439076 - P1 - negotiate csrc-audio-level RTP header r=mjf
MozReview-Commit-ID: 3S2VYuQ7Qkg

--HG--
extra : rebase_source : 002c090e7a5cee3a5cf7221b9cc764a8d7ab0a7b
2018-02-16 23:02:11 -08:00
Nico Grunbaum 0bd02a8387 Bug 1439001 - AudioLevel RTP header ext. send/recv sense reversed in xceiver r=drno
MozReview-Commit-ID: CyI4Rh3juUe

--HG--
extra : rebase_source : 41369ba143754620f8c251d048e19d9924ba2029
2018-02-16 16:27:07 -08:00
Byron Campen [:bwc] 6b92557023 Bug 1437741 - Part 2: Map datachannel to an m-line after all RTP transceivers have been mapped. r=drno
MozReview-Commit-ID: 3hUvFaTYldx

--HG--
extra : rebase_source : 23beaa415109cb809198ae097d2821d9c0c52dc7
2018-02-15 10:25:03 -06:00
Byron Campen [:bwc] 83b3a27494 Bug 1437741 - Part 1: Expect datachannel m-sections to be last. r=drno
MozReview-Commit-ID: At6HhsLsJQn

--HG--
extra : rebase_source : 65230196217244c5151b46183dfc9adec4b76840
2018-02-15 10:23:49 -06:00
Nils Ohlmeier [:drno] 5d76400725 Bug 1173851: rename DataChannel to RTCDataChannel r=jib,smaug
MozReview-Commit-ID: L8OrIlxM7r1

--HG--
rename : dom/webidl/DataChannel.webidl => dom/webidl/RTCDataChannel.webidl
extra : rebase_source : 013fd0b02c6b5e3a95395bbfed68e27138b507ed
2018-02-09 14:36:48 -08:00
Dorel Luca 977a4712b6 Backed out 2 changesets (bug 1173851) for Mochitest failures on dom/tests/mochitest/general/test_interfaces.html. CLOSED TREE
Backed out changeset aba40941f027 (bug 1173851)
Backed out changeset 36e6f0595461 (bug 1173851)

--HG--
rename : dom/webidl/RTCDataChannel.webidl => dom/webidl/DataChannel.webidl
2018-02-15 01:10:06 +02:00
Nils Ohlmeier [:drno] 95deaeb484 Bug 1173851: rename DataChannel to RTCDataChannel r=jib,smaug
MozReview-Commit-ID: L8OrIlxM7r1

--HG--
rename : dom/webidl/DataChannel.webidl => dom/webidl/RTCDataChannel.webidl
extra : rebase_source : b89dbe0ac4dab71199d758b8cd85ea9655533067
2018-02-09 14:36:48 -08:00
Byron Campen [:bwc] d084a97e55 Bug 1437832 - Part 4: Remove unused function from PeerConnectionImpl r=jib
MozReview-Commit-ID: DJPLOWdm2IA

--HG--
extra : rebase_source : 74755f78b68fe04f413fb5ac0e68c5025b0270e1
2018-02-13 14:40:49 -06:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Nils Ohlmeier [:drno] 1e1b47f60a Bug 1435025: don't parse padding on SRTP packets r=bwc,jesup
MozReview-Commit-ID: HNW2BTRoJp2

--HG--
extra : rebase_source : b61dfd0fee200045beaa60b9a4ed12c979ae6dc5
2018-02-07 22:50:55 -08:00
Byron Campen [:bwc] 300c9ec2f3 Bug 1429768: Stop modifying mDescription on main. r=drno
--HG--
extra : rebase_source : 39281b98976d26cc8a68fe4693e813f866eefd2e
2018-02-07 12:49:24 -06:00
Robert-André Mauchin 38a3ee1f79 Bug 1435695 - WebRTC fails to build with GCC 8; r=dminor
--HG--
extra : rebase_source : d26e183b2082fa4f88ce3b837e2db5fc8acbff5b
2018-02-05 09:46:44 -05:00
Michael Froman 38bdfba7a2 Bug 1414171 - pt 2 - Sort ICE stats by componentId on about:webrtc. r=drno
- add new component_id field to NrIceCandidatePair
- add the candidate pair component_id to RTCIceCandidatePairStats in
  RecordIceStats_s
- add new column in ice stats table for component id
- sort ice stats by component id first


MozReview-Commit-ID: J89ZIYEUyRk

--HG--
extra : rebase_source : 681a5afa1303b4e377fcc14d099ce0b3d852f22c
2018-01-30 22:23:54 -06:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky 31dfca239b Bug 1434803. Properly propagate out errors from various PeerConnectionImpl methods. r=drno
PeerConnectionImpl defines two versions of various fallible methods: a version
taking an ErrorResult argument, and a version returning nsresult.  The methods
were not marked fallible in the webidl, so the bindings called the
nsresult-returning version, but ignored the returned value.  As a result,
failures got swallowed instead of being propagated out.

The changes here annotate the relevant parts of the webidl as throwing, and
convert non-fallible methods to returning void to make infallibility clearer.

MozReview-Commit-ID: JU9NzmEf8FV
2018-02-01 14:22:48 -05:00
Andreas Pehrson 678079da9d Bug 1299515 - Use an I420BufferPool for allocations in VideoFrameConverter. r=dminor
MozReview-Commit-ID: 50evWtMNjHz

--HG--
extra : rebase_source : 3ac599a252f65fb37b953b7eb920215006a24f2c
2017-11-28 11:42:33 +01:00
Andreas Pehrson 85ded5b958 Bug 1299515 - Plumb MediaStreamTrack enabled state to sources. r=jib
MozReview-Commit-ID: Eg1g9JtLmOz

--HG--
extra : rebase_source : 73057e1093d487736f69addca346b05c48d8d280
2017-11-10 15:55:42 +01:00
Andreas Pehrson c16103af60 Bug 1408294 - Simplify MSG integration code for MediaPipelineReceive. r=bwc
Most importantly this avoids having a SourceMediaStream *with a track* but
*without any listeners*.

I'm adding asserts to ensure that all NotifyPull()s append enough data to all
live tracks.

MozReview-Commit-ID: InGj3n0f0y3

--HG--
extra : rebase_source : a9820d9943dfae12d8cc9835c594f062925ee8fa
2017-12-21 15:55:26 +01:00
Dan Minor ef3c58e0e6 Bug 1433005 - Simplify codec pruning in NegotiateCodecs; r=bwc
--HG--
extra : rebase_source : 648d672c3e1f5ff2d3c8c35e548a8d7fc994b8af
2018-01-26 11:46:51 -05:00
Gurzau Raul 768779f6a9 Backed out changeset 62da02a0aa77 (bug 1433005) for Gtest failures on Linux x64 asan and Windows 10 x64 debug 2018-01-30 19:14:12 +02:00
Dan Minor 26329414af Bug 1433005 - Simplify codec pruning in NegotiateCodecs; r=bwc
--HG--
extra : rebase_source : dd40820b009cb8dc3cff74bbaee9a1d3dbe2a0dc
2018-01-26 11:46:51 -05:00
Byron Campen [:bwc] 4cfe4f3aa5 Bug 1411977 - Part 6: Don't unwind the stack when firing onsignalingstatechange. r=drno
MozReview-Commit-ID: 5qAlxKFzKQk

--HG--
extra : rebase_source : 6757a3c16e974cf9ebd5c1216c40bd25369880e5
2018-01-25 10:09:17 -06:00
Byron Campen [:bwc] be3a417b19 Bug 1411977 - Part 5: Don't pass a pointer to a temporary to NotifyDataChannel_m. r=drno
MozReview-Commit-ID: 3ydeM9U1P4b

--HG--
extra : rebase_source : aad2510f6179d5cc3218b0b352540072a9dd2561
2018-01-25 10:04:55 -06:00
Masatoshi Kimura c38c925733 Bug 685236 - Workaround for WebRTC. r=jesup
MozReview-Commit-ID: 8gdmPmF4V4b

--HG--
extra : source : 7abbc86a73c6083892d8c6c6e449f53da609e016
extra : intermediate-source : 7c8da9c7bb641c9ae45eaf514737f38153e9336c
2017-12-15 21:42:49 +09:00
Tom Prince 3f845e43fa Bug 1429819: Allow using tooltool macOS SDK on all automation builds and all cross-builds. r=dminor
The original logic I wrote had the condition backwards.

MozReview-Commit-ID: IFIS8vZLgd4

--HG--
extra : rebase_source : 9f9baeb2f6284c551fb63f139d6f5942569890fd
2018-01-23 11:56:50 -07:00
Dan Minor 2e81df0e1c Bug 1393119 - Remove webrtc gyp files; r=jesup
This removes the gyp files to build webrtc. It looks like part of Bug 1371485 is
to vendor gyp elsewhere in tree at which time we can complete cleaning this up.

MozReview-Commit-ID: 8MqatafniN5

--HG--
extra : rebase_source : 1cf7a41f0b8a1a95dc008f4a39536ee7e76027c4
2017-12-19 09:21:03 -05:00
Dan Minor 22eb0295df Bug 1393119 - Add generated files; r=jesup
MozReview-Commit-ID: 379Yq1cIQyD

--HG--
extra : rebase_source : b2293ce8dde69c772d99275635c4ea437eb515a8
2017-12-01 12:44:51 -05:00
Dan Minor 1568190e4c Bug 1393119 - Update gn files for mozilla build; r=jesup
MozReview-Commit-ID: KRaCt8uvTJH

--HG--
extra : rebase_source : 53e3f4886e1a4cad6bb5d6fa82fc5c57f128d99b
2017-07-27 13:04:25 -04:00
Dan Minor 769c460cfb Bug 1393119 - Add webrtc.org trunk/build/ files to support gn build; r=jesup
MozReview-Commit-ID: KaupPBeJucK

--HG--
extra : rebase_source : 2ca9af9b1ba6568f18fb4afa82b7368898e5c9f0
2017-07-27 12:42:30 -04:00
Chris Manchester 093501400b Bug 1393119 - Add webrtc gn build config; r=dminor
MozReview-Commit-ID: FIPjkDWwAQx

--HG--
extra : rebase_source : 4007024b78d1bb05b189189d18d2e88ec700cd7a
2017-11-29 11:18:44 -08:00
Sebastian Hengst 78d2a3c1db Merge mozilla-central to mozilla-inbound 2018-01-24 14:24:05 +02:00
Margareta Eliza Balazs 6adca5400a Backed out 5 changesets (bug 1393119) for bustage on linux in /builds/worker/workspace/build/src/obj-firefox/dist/system_wrappers/alsa/asoundlib.h:3:15: alsa/asoundlib.h missing on a CLOSED TREE
Backed out changeset 7d374c8be17d (bug 1393119)
Backed out changeset 98e1989b1f48 (bug 1393119)
Backed out changeset 8fa5de0eb6ea (bug 1393119)
Backed out changeset c5c2d30ed6da (bug 1393119)
Backed out changeset 17d7a6d5e889 (bug 1393119)
2018-01-24 13:00:42 +02:00
Tom Prince 642b5fb351 Bug 1429819: Allow using tooltool macOS SDK on all automation builds and all cross-builds. r=dminor
The original logic I wrote had the condition backwards.

MozReview-Commit-ID: IFIS8vZLgd4

--HG--
extra : rebase_source : 8504e1834e39f2a244abe0a89f2235bca8cae640
2018-01-23 11:56:50 -07:00
Dan Minor df482ce890 Bug 1393119 - Remove webrtc gyp files; r=jesup
This removes the gyp files to build webrtc. It looks like part of Bug 1371485 is
to vendor gyp elsewhere in tree at which time we can complete cleaning this up.

MozReview-Commit-ID: 8MqatafniN5

--HG--
extra : source : 91cfd14052f510f2ba105b257a0d5dbdddb86a13
2017-12-19 09:21:03 -05:00
Dan Minor 8528588995 Bug 1393119 - Add generated files; r=jesup
MozReview-Commit-ID: 379Yq1cIQyD

--HG--
extra : source : eac997d73d67f5b8e895fcfd61b02796e9bf6bba
2017-12-01 12:44:51 -05:00
Dan Minor cf2b991775 Bug 1393119 - Remove webrtc gyp files; r=jesup
This removes the gyp files to build webrtc. It looks like part of Bug 1371485 is
to vendor gyp elsewhere in tree at which time we can complete cleaning this up.

MozReview-Commit-ID: 8MqatafniN5

--HG--
extra : rebase_source : 372440bdf73290e268d0a5318cb2c16ecfefcd2a
2017-12-19 09:21:03 -05:00
Dan Minor 63330c4c65 Bug 1393119 - Add generated files; r=jesup
MozReview-Commit-ID: 379Yq1cIQyD

--HG--
extra : rebase_source : 8865b2d88031c9ead9dbbd77cbaf762c515fae00
2017-12-01 12:44:51 -05:00
Dan Minor 15ab7b52c6 Bug 1393119 - Update gn files for mozilla build; r=jesup
MozReview-Commit-ID: KRaCt8uvTJH

--HG--
extra : source : f8321fda6acc26af22745c82a33e849a851ac492
2017-07-27 13:04:25 -04:00
Dan Minor 28d0aa7c68 Bug 1393119 - Update gn files for mozilla build; r=jesup
MozReview-Commit-ID: KRaCt8uvTJH

--HG--
extra : rebase_source : 8c73406fb78c01d91e94bd1d8b3bffc03a28ff45
2017-07-27 13:04:25 -04:00
Dan Minor 48af827f2f Bug 1393119 - Add webrtc.org trunk/build/ files to support gn build; r=jesup
MozReview-Commit-ID: KaupPBeJucK

--HG--
extra : source : 67092d3b35fec1d14960c13c9aae1f494f5e6375
2017-07-27 12:42:30 -04:00
Chris Manchester 0a473080e6 Bug 1393119 - Add webrtc gn build config; r=dminor
MozReview-Commit-ID: FIPjkDWwAQx

--HG--
extra : source : 5b4da712bf1e276dd5df44a1b23e2a715f5c19cb
2017-11-29 11:18:44 -08:00
Andreea Pavel 3a37861e1a Backed out 5 changesets (bug 1393119) for failing dom/media/tests/mochitest/test_peerConnection_audioSynchronizationSources.html on a CLOSED TREE 2018-01-24 03:20:11 +02:00
Dan Minor aece8e3136 Bug 1429390 - Make H.264 Encode dispatch asynchronous; r=jesup
Historically we made a synchronous dispatch to the GMP thread on encode to avoid
copying the frame buffer. The frame buffer is now held by a refptr so we can now
make this call asynchronously.

--HG--
extra : rebase_source : 0c339d0b4721847f0f96f469fedb3320821883fd
2018-01-10 09:33:06 -05:00
Dan Minor 1b50620f9c Bug 1393119 - Add webrtc.org trunk/build/ files to support gn build; r=jesup
MozReview-Commit-ID: KaupPBeJucK

--HG--
extra : rebase_source : d721dfdc6d4ec298291ff32d0e49ea33d25eeca1
2017-07-27 12:42:30 -04:00
Chris Manchester a86c71dab3 Bug 1393119 - Add webrtc gn build config; r=dminor
MozReview-Commit-ID: FIPjkDWwAQx

--HG--
extra : rebase_source : de81c0f2a9a0d3c4406361a52076df8134771202
2017-11-29 11:18:44 -08:00
Nico Grunbaum e30c99af1c Bug 1419093 - P2 - update rtp source impl & unit tests r=mjf
Update the c++ side with the new WebIDL definitions, note that
many fields are now required. See P1 for more details.


MozReview-Commit-ID: FKHi86Nj7UO

--HG--
extra : rebase_source : 7491551b46a9fb0e8c8cba77861b01f90ea95644
2017-12-18 19:24:01 -06:00
Byron Campen [:bwc] ea3dd6304c Bug 1430707: Don't MOZ_CRASH when conduit operations fail. r=drno
MozReview-Commit-ID: 32nYEJ3hht2

--HG--
extra : rebase_source : c18a30c442da5ca646943d7ecee37f0cd06d4c71
2018-01-19 08:39:59 -06:00
Jean-Luc Bonnafoux f1e5d39e10 Bug 1430425 - VideoStreamFactory constructor should pass codec name by reference r=dminor
MozReview-Commit-ID: 8rUH1DfEUts

--HG--
extra : rebase_source : 2e9a2693653daa8b918f1966af36226b915f333e
2018-01-14 17:26:26 +01:00
Mike Hommey dbd4c4810a Bug 1428608 - Forbid / or !/ in LOCAL_INCLUDES. r=froydnj
And remove the two cases that currently set that, without actually using
it. The webrtc gtest one never relied on it, and the gfx one was added
in bug 1427668 for a single header, and the corresponding #includes were
changed in bug 1428678.

--HG--
extra : rebase_source : ebb3aed6ff8e3438d4a2f011725cf1a15986fee6
2018-01-17 17:10:20 +09:00
Munro Mengjue Chiang 3c82ef78a0 Bug 1420585 - remove unnecessary stopCapture which causes deadlock. r=jib
MozReview-Commit-ID: F8xcOSPihDN

--HG--
extra : rebase_source : 057b77496aa86f9e7f3b4ccd858ec74e8c8453a8
2018-01-05 15:50:23 +08:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Michael Froman 35cf761e08 Bug 1429085 - only initiate ice restart in PeerConnectionMedia if jsep create offer/answer succeeds. r=drno
Separate setting up the ice credentials for ice restart from the actual
restart call into PeerConnectionMedia.  This allows waiting until after
the call to JsepSessionImpl::CreateOffer or JsepSessionImpl::CreateAnswer
succeeds.

MozReview-Commit-ID: Hex0lNstv0H

--HG--
extra : rebase_source : 49ad2e204b7dfef6a5c359c11e38b57d8e7beade
2018-01-12 15:17:50 -06:00
Byron Campen [:bwc] ae7b275a48 Bug 1425621 - Part 5: Handle transceiver removal caused by rollback after track events. r=drno,jib,smaug
MozReview-Commit-ID: 5Z5ntG5Bvgc

--HG--
extra : rebase_source : ae8a2438dfdc1dd968768fba86a8a6752934bd82
extra : intermediate-source : 347e79f12f838355b45f3eebbc33322bf866d75f
extra : source : 8a127885a8d0265994c5f9d4ef9bd384279f6858
2017-12-21 10:22:37 -06:00
Byron Campen [:bwc] 802d9b4a0d Bug 1425621 - Part 4: Move track event logic to JS. r=drno,jib,smaug
MozReview-Commit-ID: 8kUbYQnD3Oc

--HG--
extra : rebase_source : a1f0685c8156c75438cf57e0d55117b8a4025bc8
extra : intermediate-source : 9b756cb6bccaca473925679725688a012d4086f6
extra : source : b3f9155a0ec77f819a0a02ce798d0d0a84da0524
2017-12-20 17:00:40 -06:00
Ryan VanderMeulen 24c532d428 Backed out 6 changesets (bug 1393119, bug 1429819) so it can re-land after the Gecko 60 version bump instead.
Backed out changeset 4bf890d84416 (bug 1429819)
Backed out changeset 91cfd14052f5 (bug 1393119)
Backed out changeset eac997d73d67 (bug 1393119)
Backed out changeset f8321fda6acc (bug 1393119)
Backed out changeset 67092d3b35fe (bug 1393119)
Backed out changeset 5b4da712bf1e (bug 1393119)
2018-01-12 11:33:12 -05:00
Narcis Beleuzu 4de0807d09 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 13:25:57 +02:00
Michael Froman 0dbf6aa0f7 Bug 1425780 - Don't allow queue-jumping for gathering state change events. r=bwc 2018-01-11 21:38:36 -05:00
Tom Prince 0e8d2f23ed Bug 1429819: Allow using tooltool macOS SDK on all automation builds, not just cross-builds; r=dminor
MozReview-Commit-ID: IFIS8vZLgd4

--HG--
extra : rebase_source : 5494d93404e5fff0c669df2540534456579f9acf
2018-01-11 09:23:16 -07:00
Ciure Andrei f7400ad72e Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
Randell Jesup c359f64e82 Bug 1429219: Ensure VP8 simulcast with temporal layers won't fail if there aren't enough bits r=drno 2018-01-10 20:41:09 -05:00
Randell Jesup aa370f7694 Bug 1426449: set the correct number of temporal layers for screencasts r=drno 2018-01-10 20:41:03 -05:00
Michael Froman 69d270acdf Bug 1427009 - limit accepted mid length to 16 chars. r=bwc
webrtc.org only supports one-byte rtp header extensions which means
we can only support 16 character mids for now.

MozReview-Commit-ID: C7aTeB5Bi2M

--HG--
extra : rebase_source : e25518d02fb056f82d298f000e37cfe059099a38
2018-01-08 16:23:06 -06:00
Andreas Pehrson 3ab8b1b7d2 Bug 1428098 - Do not reconfigure manually when input resolution changes. r=dminor
webrtc.org now handles this.

MozReview-Commit-ID: 8loJR1L0h1m

--HG--
extra : rebase_source : adc9ced1b2d64a04ef19e951a40a85c88856a280
2018-01-03 10:28:17 +01:00
Dorel Luca a19f5582cc Merge mozilla-central to mozilla-inbound r=merge 2018-01-11 00:05:23 +02:00
Dan Minor 58945425b9 Bug 1393119 - Remove webrtc gyp files; r=jesup
This removes the gyp files to build webrtc. It looks like part of Bug 1371485 is
to vendor gyp elsewhere in tree at which time we can complete cleaning this up.

MozReview-Commit-ID: 8MqatafniN5

--HG--
extra : rebase_source : 2f45ef1473c2bbf2882fe867e8b535998b8dc9ef
2017-12-19 09:21:03 -05:00
Dan Minor 582a3b1cc8 Bug 1393119 - Add generated files; r=jesup
MozReview-Commit-ID: 379Yq1cIQyD

--HG--
extra : rebase_source : a684d4020bb94c9b4e2bf2a0b8f89b1392eb6c8f
2017-12-01 12:44:51 -05:00
Dan Minor 8711c98b6f Bug 1406936 - Add unittests for re-configuring VideoConduit; r=pehrsons
This adds new tests that are a subset of the existing tests for configuration.
Another option would be to use parameterized tests to get coverage of all existing
tests during reconfiguration, but I don't think the additional complexity is
justified at this point.

MozReview-Commit-ID: F28KRYaVe1B

--HG--
extra : rebase_source : fdcb1316387504240424f1041d43df5d98331380
2017-11-28 14:50:05 -05:00
Dan Minor 2a03027769 Bug 1406936 - Copy state when reusing SendStream in ConfigureSendMediaCodecs; r=pehrsons
This is necessary for changes to encoding constraints and simulcast encodings to
be picked up.

MozReview-Commit-ID: JpVN0ST70Cn

--HG--
extra : rebase_source : ea61544b98e7e231527cf6f13d78862d3567b4b7
2017-11-28 14:51:53 -05:00
Dan Minor 3761af22af Bug 1406936 - Reset FEC payloads in ConfigureRecvMediaCodecs; r=mjf
MozReview-Commit-ID: CAyDUry0Ekr

--HG--
extra : rebase_source : 12284b7751b7c4e5ae5d6fa2de6857eefe8cdf13
2017-11-30 10:59:54 -05:00
Dan Minor 311a54355d Bug 1406936 - Clean up unused variables; r=pehrsons
MozReview-Commit-ID: DZtmnViblGS

--HG--
extra : rebase_source : f85697a1f7fb6d3e549b3f6663ad101b8fc020e0
2017-11-30 13:13:26 -05:00
Randell Jesup f007b19e6f Bug 1426123: add assertion and comments that SelectSendResolution() can never result in divide-by-zero r=jib 2018-01-04 14:11:00 -05:00
Ryan VanderMeulen c20bfd39b5 Bug 1425996 - Add in a few more instances of Unused that got missed in the first patch. r=gerald 2017-12-23 16:40:13 -05:00
Jean-Yves Avenard 212565b86e Bug 1426486 - P2. Make mTrackId a base member. r=bwc
Also remove unused code.
mTrackId / mTrackIdexternal were protected/private members and only ever written.

MozReview-Commit-ID: C3wMhxSCA2H

--HG--
extra : rebase_source : 18845e480e8e2d741ef1172b212373888a9c1fe8
2017-12-21 17:57:24 +01:00
Jean-Yves Avenard 2bd009f7e0 Bug 1426486 - P1. Make GetInputStream()->AsSourceStream() invariant. r=pehrsons
It can never be nullptr, strongly assert that this is the case and remove unecessary tests.

MozReview-Commit-ID: 7fi6jNnFUH8

--HG--
extra : rebase_source : 632ad1738c2984dd803c25dc44aa81c896292b64
2017-12-20 21:33:26 +01:00
Dan Minor f122364420 Bug 1426678 - Ensure SendTrack is not null before trying to dispatch DTMF event; r=bwc
MozReview-Commit-ID: CZbvPlIceXB

--HG--
extra : rebase_source : a77a1b804d1705d474f145f36b475c02d0e1c49d
2017-12-21 11:41:41 -05:00
Csoregi Natalia 12c47a01be Merge inbound to mozilla-central r=merge a=merge 2017-12-21 12:01:59 +02:00
JW Wang 79b5f2dd2e Bug 1425996 - fix build error: unused variable 'rv'. r=gerald
MozReview-Commit-ID: 7MhsSWbxB3z

--HG--
extra : rebase_source : 81207a1e5b663314295f2f95afd4b726ffe8f12d
2017-12-21 12:12:42 +08:00
Jean-Yves Avenard c3f319f1c7 Bug 1426171 - Only use the graph's rate if supported by the AudioConduit. r=pehrsons
Otherwise we will use 48kHz as default, the MSG will resample as needed.
It would be possible to allow all frequencies in the AudioConduit as the webrtc backend supports them all, however it would require more changes and likely heap allocation that we're trying to limit in this part of the code.

MozReview-Commit-ID: B3x5t1FSaQ8

--HG--
extra : rebase_source : 77f83a876ed9b5ded45419245655709aee2573df
2017-12-20 14:16:04 +01:00
Heiher dc4dbdb876 Bug 1426323 - Media: WebRTC: Fix build config for MIPS64. r=jesup
---
 media/webrtc/trunk/build/build_config.h | 4 ++++
 1 file changed, 4 insertions(+)
2017-12-21 09:00:39 +08:00
Byron Campen [:bwc] 3361602026 Bug 1425956 - Part 3: Remove duplicate track ids on incoming SDP. r=drno
MozReview-Commit-ID: Ldac3oB5ocz

--HG--
extra : rebase_source : 9066ff2aae30aee610ad6807ad566bfaedd0ea51
extra : source : f1dcabc223896a5280041480596f6c9ba8d78a99
2017-12-18 17:52:44 -06:00
Byron Campen [:bwc] 95c68733b2 Bug 1425956 - Part 2: Don't emit duplicate track ids in SDP. r=drno
MozReview-Commit-ID: 9POpM1ZXsYY

--HG--
extra : rebase_source : eca9bc7c75482d67751254edc1e9d2428859361f
extra : source : a695cd1176edf5054c8574c40b25404cb6424b3c
2017-12-18 17:37:57 -06:00
Byron Campen [:bwc] a6bb393781 Bug 1425901: Use nsITimerCallback for DTMF timers. r=drno
MozReview-Commit-ID: 2IlDknNhlAG

--HG--
extra : rebase_source : 3c51e468c2285b5714372108c6ef5f41f8ba00d5
2017-12-18 12:36:23 -06:00
Byron Campen [:bwc] 2d7be6de42 Bug 1425873 - Part 2: Sync send stream ids even when there is no send track. r+drno r=drno
MozReview-Commit-ID: 7s3f1Q8sCI1

--HG--
extra : rebase_source : a3c0446e31cff547b8277c8811de2e5e0967de93
2017-12-18 11:52:01 -06:00
Michael Froman e49fa718b2 Bug 1414169 - pt 6 - Add all raw candidates table (local and remote). r=ng
Also remove the unmatched candidates in the candidate pair table since
they are now included in the "all raw candidates" table.

MozReview-Commit-ID: 4ZvhWfmjGJh

--HG--
extra : rebase_source : bf999db83cd49dd454434d2b157023da41b0dbcd
2017-11-29 14:16:12 -06:00
Michael Froman 2383b3776a Bug 1414169 - pt 4 - Trickled ICE candidates are highlighted with a light blue background. r=ng
MozReview-Commit-ID: JEMmf9LjvYd

--HG--
extra : rebase_source : 666559431e08e6671d1590d43bbaa15fe7178c58
2017-11-22 14:28:02 -06:00
Alex Chronopoulos 331eac4d0a Bug 1423770 - r=padenot 2017-12-18 15:20:06 +01:00
Paul Adenot 1ca7466136 Bug 1425596 - Stop busy looping in mFakeAudioDevice. r=jya
This is a workaround for the fact that our code is wrong.

FakeAudioDeviceModule :::TimeUntilNextProcess() returns 0, so we're busy
looping.

I'm switching that to 100, which is arbitrary, but makes the problem go away. I
want to fix that soon, because this is a terrible workaround.

FakeAudioDeviceModule is _not_ made to be used in production.

MozReview-Commit-ID: FoGs6GFsRRN

--HG--
extra : rebase_source : d62f7c2d5b98c4814c06be13aca49bd478d5b381
2017-12-15 17:05:42 -06:00
Jean-Yves Avenard 6258e4b122 Bug 1425631 - Reduce global threads count. r=jya
MozReview-Commit-ID: JWPH6DRg1k7

--HG--
extra : rebase_source : 5a05a3de3123db26ac2facb0e6ffdf6f9a0815f0
2017-12-15 21:45:35 +01:00
Jean-Yves Avenard 9c5a09051e Bug 1404997 - P26. Give Await the threadpool to use. r=gerald
This allows to re-use the SharedThreadPool across calls, preventing the need to create a new thread on each call.

MozReview-Commit-ID: CbP6OTYKhHL

--HG--
extra : rebase_source : 969f2c74f00614d6265fe0e25abfb36c9648d564
2017-12-15 20:06:38 +01:00
Jean-Yves Avenard 1769747959 Bug 1404997 - P23. Strongly enforced that our destination buffer is big enough. r=padenot
MozReview-Commit-ID: A1kLsH75SzX

--HG--
extra : rebase_source : bcc4460507638ef36986ad519e48ba2d4596f4cf
2017-12-13 18:44:30 +01:00
Jean-Yves Avenard 485b10a8b0 Bug 1404997 - P22. Make mConduit release on main thread consistent. r=pehrsons
There's no need for a custom class to perform this task.

MozReview-Commit-ID: JxpDQVM97fl

--HG--
extra : rebase_source : 8387efa0ed3add9e4a42daed98e97372d9cabee5
2017-12-11 00:32:00 +01:00
Jean-Yves Avenard 0c03c673b3 Bug 1404997 - P21. Make MediaPipelineReceiveAudio listener asynchronous. r=pehrsons
We keep the synchronous version that will be used in bug 1424653

MozReview-Commit-ID: JTGaRYm20ca

--HG--
extra : rebase_source : aa694b7ac4f03322edbdefd64cefd198c0909cec
2017-12-11 00:16:24 +01:00
Jean-Yves Avenard c32881f98c Bug 1404997 - P19. Use new Await method with WebrtcMediaDataDecoder. r=gerald
MozReview-Commit-ID: nRQL312aDE

--HG--
extra : rebase_source : d63e120d24ab4e7f10843387b321fa2ed05f5af3
2017-12-08 17:30:28 +01:00
Jean-Yves Avenard d9f13cf692 Bug 1404997 - P12. Remove unused TrackAddedCallback class. r=pehrsons
MozReview-Commit-ID: HGe6RjwwC5z

--HG--
extra : rebase_source : f283f958fd8197a31630991f60217117c48daabc
2017-12-05 11:38:11 +01:00
Jean-Yves Avenard bc93df2fbe Bug 1404997 - P11. More constness fixes. r=pehrsons
MozReview-Commit-ID: 5qgO43V9R9P

--HG--
extra : rebase_source : 6f387e73486079737c066420a3e95f15c1c0ac16
2017-12-05 00:07:52 +01:00
Jean-Yves Avenard f702757959 Bug 1404997 - P9. Remove unused member and accessor. r=pehrsons
MozReview-Commit-ID: HAO4NTXHJp1

--HG--
extra : rebase_source : b295c0409fa480755f1a925471d8bbda70ca8b5e
2017-12-17 10:15:59 +01:00
Jean-Yves Avenard 4139ca0019 Bug 1404997 - P8. Follow coding style for members and methods. r=drno,padenot
It allows to more easily distinguish between methods from upstream webrtc.org and our code.

MozReview-Commit-ID: ILQhEAYbSmc

--HG--
extra : rebase_source : 934505afddcca9253b00c4094776c95a087058fb
2017-12-08 21:32:38 +01:00
Jean-Yves Avenard b8ec246a1f Bug 1404997 - P7. Simplify played time calculations. r=pehrsons
Now that the graph rate match the one out of NetEQ, we can remove an unecessary conversion.

Additionally, move a member from the base case to the only one where it's used.

MozReview-Commit-ID: II5mdcl0vhK

--HG--
extra : rebase_source : 1d9edfc2803c3fadde7505b4d84293640e4311e0
2017-12-08 20:58:09 +01:00
Jean-Yves Avenard 2ecd33016c Bug 1404997 - P6. Fix constness were applicable. r=pehrsons
MozReview-Commit-ID: JPlZpRz4A9w

--HG--
extra : rebase_source : c788018469818489965756866765e0872c3fa741
2017-11-30 20:48:48 +01:00
Jean-Yves Avenard af842a70cd Bug 1404997 - P4. Make AudioProxyThread use AutoTaskQueue. r=pehrsons
Also, pass arguments are const reference.
We also rename class members as per coding style.

MozReview-Commit-ID: 9IkV8wCMpz7

--HG--
extra : rebase_source : 6dc8285342742bf19dd2d03f66dd0668fc32bbcc
2017-11-30 16:27:37 +01:00
Jean-Yves Avenard d9f0678a3a Bug 1404997 - P3. Rename some VideoFrameConverter members per coding style. r=pehrsons
MozReview-Commit-ID: Dsi5ZdD3Tay

--HG--
extra : rebase_source : 6faef2c1913da77b5978ccbfedfbe870d3c75e9e
2017-11-30 16:25:52 +01:00
Jean-Yves Avenard 6ae2d7162b Bug 1404997 - P2. Use AutoTaskQueue in VideoFrameConverter. r=pehrsons
It removes the need to explicitly shutdown the taskqueue and wait on the taskqueue to have run all dispatched task.
We do want to enforce that no listeners are being called once the VideoFrameConverter's owner has been destroyed as it could potentially lead to a UAF.
For now, access is okay as all operations are performed on the MSG's thread.
However, this will change in follow up patches.
The SourceMediaStream keeps a raw pointer to the MSG, and check if it's value isn't null to determine if the MSG has been shutdown or not, however SourceMediaStream::mGraph isn't thread safe as its access isn't protected by a mutex/monitor.

MozReview-Commit-ID: 1QsJAzPuE6L

--HG--
extra : rebase_source : 35f34450e62ff1f445ad6ccd06c6f6cbd3c6ed54
2017-11-30 16:23:28 +01:00
Jean-Yves Avenard 2fa0e45609 Bug 1404997 - P1. clang-format MediaPipeline.{cpp,h}. r=pehrsons
It's bound to be done automatically, makes it easier to modify later.

MozReview-Commit-ID: IQ5TBtS8Z3v

--HG--
extra : rebase_source : 0b1a326ada5761cfa50c33acbff9b61cf4e59c8c
2017-11-30 13:47:27 +01:00
Paul Adenot 1d9f5026c1 Bug 1397793 - Revert Mozilla changes to OutputMixer r=jesup
The MSG provides the reverse stream, and feed it directly to the APM.

MozReview-Commit-ID: A6DO407CJkp

--HG--
extra : rebase_source : df4ad965c171eab5a72a8d09e0305b1e79325a03
extra : source : e92ff1339db1ca5affa56ccdbec1c8b3836bcd95
2017-10-31 17:40:19 +01:00
Paul Adenot 2c9ab89b7c Bug 1397793 - Move away from VoEExternalMedia "external" API in AudioConduit.cpp. r=dminor
This forces us to do a copy. It's not the end of the world but could be avoided.
The number of channels received is now explicit (via
`AudioFrame::num_channels_`), instead of being guessed based on the number of
samples (considering we're always dealing with 10ms of audio, and we know the
rate).

It's still coupled a bit with audio devices, but we cheat, and use a "fake audio
device", which isn't going to touch actual OS APIs.

MozReview-Commit-ID: 1Tfajkv1HQR

--HG--
extra : rebase_source : c0c8c240621b076bb3b056689f45289212498903
extra : source : 9e92591ba6dcb18364da98756c645c91bfe81517
2017-10-31 17:33:42 +01:00
Paul Adenot 800e5eb38a Bug 1397793 - Use the MSG rate in MediaPipeline/PeerConnectionImpl. r=pehrsons
We used to fix the rate, arbitrarily, to 32kHz. Because the graph is almost
never running at 32kHz (more like 44.1kHz or 48kHz), and the codec would often
not be at 32kHz, this meant multiple resampling:
- Once here, in MediaPipeline, to bring to 32kHz
- Once when getting inserted in the MSG (so that the audio was brought back to
MSG rate)
- Maybe once in cubeb (depending on the platform)

This always removes the second resampling: the track is now at the correct rate,
as far as the MSG is concerned.

Additionally, if the MSG is running at 48kHz, more resampling are saved, because
it's one of the native webrtc.org rates.

MozReview-Commit-ID: DBWcwuWxUpu

--HG--
extra : rebase_source : 2b961a8bd91d952ccbe9df5a6ab7649321f282a6
extra : source : a3d9aa2649b95329d0cf686d79aa5179e9f3506d
2017-10-31 17:24:26 +01:00
Paul Adenot e4a5c78e55 Bug 1397793 - Delete old-deprecated VoEExternalMedia. r=dminor
MozReview-Commit-ID: C2189mFvWiY

--HG--
extra : rebase_source : 310304d83b883d82146fb4cc8422cc5c7ba080be
extra : source : b44e089bcfe7a6e2cd6dddce616c4f195d3c5ea2
2017-10-31 17:17:20 +01:00
Dan Minor 01f50b040b Bug 1393119 - Update gn files for mozilla build; r=jesup
MozReview-Commit-ID: KRaCt8uvTJH

--HG--
extra : rebase_source : 343341a758bf37581b9d686760f32784bb36138c
2017-07-27 13:04:25 -04:00
Dan Minor 662432279a Bug 1393119 - Add webrtc.org trunk/build/ files to support gn build; r=jesup
MozReview-Commit-ID: KaupPBeJucK

--HG--
extra : rebase_source : 304c0a281d409c1e33321fbef555196e288451f1
2017-07-27 12:42:30 -04:00
Chris Manchester 73ad6401d3 Bug 1393119 - Add webrtc gn build config; r=dminor
MozReview-Commit-ID: FIPjkDWwAQx

--HG--
extra : rebase_source : 420774d076919ed5c1424181c8153c5e40acbaaf
2017-11-29 11:18:44 -08:00
Sebastian Hengst 281d99b3d3 Backed out changeset b44e089bcfe7 (bug 1397793). r=backout a=backout
--HG--
extra : histedit_source : 2ccb7b753a4be80fb820ed9f1a0e6bccab1320b0
2017-12-11 12:34:38 +02:00
Sebastian Hengst fe440c72a7 Backed out bug 1423923 for crashes, requested by drno. r=backout a=backout
Backed out changesets:
b44e089bcfe7
a3d9aa2649b9
9e92591ba6dc
e92ff1339db1
bf8977e0f440
a781b123b252
2c7a56648de9
0107b3feb84b
d12894d77770
1cf542ff8687
771c95f2963b
16f44ac4978a
ea8d6efcf3ef
a0d519ba5332
81889a72ac45
c02fd9acc634

--HG--
extra : histedit_source : 1cc2bad6f9f291f76d6c2385a5c7fa4512b9c6e3%2C758892ad6f034b39773940602a1399f4e3c8f887
2017-12-11 12:34:23 +02:00
Byron Campen [:bwc] 06af3d8af8 Bug 1400363 - Part 4: Mute webrtc receive tracks when they are negotiated to stop receiving. r=drno
MozReview-Commit-ID: JEWPHvoiwVC

--HG--
extra : rebase_source : d6bb933f79f27c23cfb693d7d71ce2ff30c5b518
2017-11-29 13:38:32 -06:00
Byron Campen [:bwc] 2e2cf6753f Bug 1400363 - Part 3: Start webrtc receive tracks as muted. r=drno
MozReview-Commit-ID: G2JIyhiAYwl

--HG--
extra : rebase_source : 5ac0178aaddb5b6bf305a30f7359c12d66073c6a
2017-11-29 13:37:21 -06:00
Byron Campen [:bwc] 357ca1db92 Bug 1400363 - Part 2: Unmute webrtc receive tracks when RTP is received. r=drno
MozReview-Commit-ID: IQrCOzBQmqu

--HG--
extra : rebase_source : 2db6b0ca785ffb13dd6345a6e201c13766d0b742
2017-11-29 13:36:41 -06:00
Byron Campen [:bwc] 63a499f3be Bug 1400363 - Part 0: Expose the SourceMediaStream of MediaStreamTrack, and store tracks instead of the source streams. r=pehrsons
MozReview-Commit-ID: KSYFGHsr0qk

--HG--
extra : rebase_source : 657ea373fb69d1e85b28a5535028a650c33dce9e
2017-11-30 14:47:13 -06:00
Sylvestre Ledru 4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru 5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Mike Hommey b8fc1317ef Bug 1424114 - Add missing string.h include in timecard.c. r=jesup
--HG--
extra : rebase_source : e81ef4ec2d920dc0ef3e0f70fc5e7bd68c23e755
2017-12-08 11:45:28 +09:00
Byron Campen [:bwc] faba4831bd Bug 1422215 - Part 2: Do offer/answer validation sooner. r=drno
--HG--
extra : rebase_source : d0ef727ddfe291201ac10822cb8041ad8117e1fb
extra : source : e01d1eabb63a569b3e1da87118e364a8e39ee433
2017-12-05 16:01:23 -06:00
Byron Campen [:bwc] 07cece1597 Bug 1422215 - Part 1: Make logging more consistent in JsepSessionImpl. r=drno
--HG--
extra : rebase_source : 893995a73d234e426b80f7c63480e4f200d76cf5
extra : source : 4a8daeb3732d028c70778953aa08ab70fe042665
2017-12-05 16:00:37 -06:00
Paul Adenot f73796a286 Bug 1397793 - Revert Mozilla changes to OutputMixer r=jesup
The MSG provides the reverse stream, and feed it directly to the APM.

MozReview-Commit-ID: A6DO407CJkp

--HG--
extra : rebase_source : 65515c02928ed56d57ddd2facd586125df7f09ec
extra : histedit_source : fc61533566deca6023cb749acda96b5772661ebc
2017-10-31 17:40:19 +01:00
Paul Adenot 42b91c9e61 Bug 1397793 - Move away from VoEExternalMedia "external" API in AudioConduit.cpp. r=dminor
This forces us to do a copy. It's not the end of the world but could be avoided.
The number of channels received is now explicit (via
`AudioFrame::num_channels_`), instead of being guessed based on the number of
samples (considering we're always dealing with 10ms of audio, and we know the
rate).

It's still coupled a bit with audio devices, but we cheat, and use a "fake audio
device", which isn't going to touch actual OS APIs.

MozReview-Commit-ID: 1Tfajkv1HQR

--HG--
extra : rebase_source : f9ed6f1beeb3745dc17c4e6264808d1918e8906c
extra : histedit_source : 4338aea961b861462caa79afab66ebaea06e40b2
2017-10-31 17:33:42 +01:00
Paul Adenot 43c980e20d Bug 1397793 - Use the MSG rate in MediaPipeline/PeerConnectionImpl. r=pehrsons
We used to fix the rate, arbitrarily, to 32kHz. Because the graph is almost
never running at 32kHz (more like 44.1kHz or 48kHz), and the codec would often
not be at 32kHz, this meant multiple resampling:
- Once here, in MediaPipeline, to bring to 32kHz
- Once when getting inserted in the MSG (so that the audio was brought back to
MSG rate)
- Maybe once in cubeb (depending on the platform)

This always removes the second resampling: the track is now at the correct rate,
as far as the MSG is concerned.

Additionally, if the MSG is running at 48kHz, more resampling are saved, because
it's one of the native webrtc.org rates.

MozReview-Commit-ID: DBWcwuWxUpu

--HG--
extra : rebase_source : 588d188f63237f1ce2cb0f2b290d54797d2d22e8
extra : histedit_source : 51733a22f6019140f7a309038a2ff524fbb564a4
2017-10-31 17:24:26 +01:00
Paul Adenot 15fe8a65ea Bug 1397793 - Delete old-deprecated VoEExternalMedia. r=dminor
MozReview-Commit-ID: C2189mFvWiY

--HG--
extra : rebase_source : 9182b1c9ddc8548cb0687b63bf850d94627dd505
extra : histedit_source : e115740ff0e51c5af4bdc596e9833728d91a6ed7
2017-10-31 17:17:20 +01:00
Byron Campen [:bwc] 184f4a9578 Bug 1421965: Avoid nullptr crash when conduits cannot be created. r=drno
MozReview-Commit-ID: AdWiIbpFP0Y

--HG--
extra : rebase_source : 5e2327f1ddf2249ba0f55c5dcbb4acdf49b65133
2017-12-04 12:57:26 -06:00
Sebastian Hengst 586a1914e3 merge mozilla-central to autoland. r=merge a=merge 2017-12-05 01:37:16 +02:00
Nico Grunbaum b3714d4280 Bug 1422987 - Correct override warning in RtpSourceObserver work. r=mjf, a=RyanVM
MozReview-Commit-ID: 6bkbBfodlUH
2017-12-04 14:19:46 -08:00
Nils Ohlmeier [:drno] 36b122125e Bug 1421819: only init Call object in Tranceivers. r=bwc
MozReview-Commit-ID: 7Rhk9470BVO

--HG--
extra : rebase_source : 173bd1da34fec75dcf5be9b0230ef3c9aa46e960
2017-11-30 17:46:32 -08:00
Nico Grunbaum 34b88025d1 Bug 1363667 - P2.1 - Fix jsep extmap unit test r=mjf
MozReview-Commit-ID: A5aqX2t5Lqu

--HG--
extra : rebase_source : ff985e6046bb1819a9489f5af4d4c316d6905005
2017-11-21 14:51:26 -08:00
Nico Grunbaum 98751926ce Bug 1363667 - P7 - RTP Source mochitests r=mjf
MozReview-Commit-ID: D4kBN2hVYpo

--HG--
extra : rebase_source : 02a668baf6c6880c2029c23fac7c433978c68d6c
2017-11-14 10:34:53 -08:00
Nico Grunbaum a3f1b24f7a Bug 1363667 - P6 - RTP Source PeerConnection JS impl r=mjf
MozReview-Commit-ID: CkFY5fABkr

--HG--
extra : rebase_source : 85e274f27600affb29d09e16f9c6d43dee191df3
2017-11-14 10:32:07 -08:00
Nico Grunbaum 89b0c3e5e9 Bug 1363667 - P4 - RTP Source Observer unit tests r=mjf
MozReview-Commit-ID: DuFqdReT7JD

--HG--
extra : rebase_source : 2341750f103f391b2e7903f1fed21252df2e95bb
2017-11-14 10:26:04 -08:00
Nico Grunbaum b42a174bc8 Bug 1363667 - P3 - RTP Source Observer r=mjf
MozReview-Commit-ID: BwZhi49KlfB

--HG--
extra : rebase_source : b6b9230d07848952a200d2ded956d39439e5dc1e
2017-11-14 10:17:10 -08:00
Nico Grunbaum 9dbbdd4080 Bug 1363667 - P2 - Add RTP Sources RTP header extensions r=mjf
MozReview-Commit-ID: JVPR5OhHMOR

--HG--
extra : rebase_source : 15ee770fa7eb56b606ec1a497a43710207300c3e
2017-11-14 09:32:29 -08:00
Munro Mengjue Chiang 14192dcba4 Bug 1388219 - down scale camera output frame to the target capability. r=jib
MozReview-Commit-ID: 7dlbWXndbgf

--HG--
extra : rebase_source : d29809c0b898648b535afdd2c9e3e97a297d99e0
2017-12-01 10:12:51 +08:00
Ryan VanderMeulen 5395ec18d2 Backed out 3 changesets (bug 1421025, bug 1388219) for causing bug 1421706 on a CLOSED TREE.
Backed out changeset 1a69438ec05f (bug 1421025)
Backed out changeset 213c2c200c08 (bug 1388219)
Backed out changeset 341aaeb4ce69 (bug 1388219)
2017-11-29 17:00:27 -05:00
Dorel Luca be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Dorel Luca f1b2e9a5b8 Backed out changeset 98a1ef2f2b30 (bug 1414829) for merge conflict 2017-11-29 12:24:09 +02:00
Dorel Luca d23400b578 Backed out changeset 47c4c885164f (bug 1414829) for merge conflict 2017-11-29 12:22:35 +02:00
Tiberius Oros 18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Jesse Schwartzentruber 5b3e545888 Bug 1419798 - Only build fuzzing interfaces if clang or AFL compilers are used. r=glandium
MozReview-Commit-ID: H1I9wdqTV4n

--HG--
extra : rebase_source : 18eb2536a5db80c585828ae44329f1a00d82209a
2017-11-22 11:21:09 -05:00