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

2256 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen 5b467557ab Bug 1357873 - Fix format warning in webrtc; r=jesup
Use printf macros to fix format warnings on AArch64.
2017-05-01 14:46:01 -04:00
Michael Froman 4e635ff251 Bug 1358224 - pt 3 - fix leak in RTPHeaderExtension's rid char buffer. r=drno
Turns out since Firefox doesn't receive simulcast streams, we never
noticed this leak.  Convert RTPHeaderExtension.rid from a char* to
rtc::scoped_ptr<char[]> so it gets deleted properly.  This also
requires a new copy constructor and assignment operator.

MozReview-Commit-ID: Jh4Gp4dAl9g

--HG--
extra : rebase_source : 8c1081fecd6e56a8f932af54fbd294adb85866f5
2017-04-27 12:27:02 -05:00
Michael Froman efa82b57bc Bug 1358224 - pt 2 - change to RTP stream id filtering on simulcast mochitests. r=drno
The simulcast mochitests setup the receiving PeerConnection to receive
simulcast video streams which Firefox doesn't really support.  Without
a test media server, this is about the best we can do and still test
simulcast.

Unfortunately the two simulcast streams arriving with different ssrcs
(as expect) exercises code we have to deal with some services switching
ssrcs midstream.  In the tests, this causes intermittent failures
because the test is waiting to receive a certain ssrc, and the receiving
VideoConduit has switched to the other ssrc.

This change adds the ability to filter on RID at the MediaPipeline level,
which we can setup prior to media flowing.  This avoids the ssrc switching
issue since the VideoConduit only receives one ssrc until we change the
RID filter to the second RID.  At that point, the VideoConduit sees a new
ssrc and the switching code works as intended.

The modified mochitests setup the RTP stream id header extension, and then
filter on each of the RTP stream ids in turn.

MozReview-Commit-ID: KApfaxMX8rl

--HG--
extra : rebase_source : d7ae88d9675acd7b3700f342ca6a68d0bbb0ced5
2017-04-26 10:51:00 -05:00
Michael Froman c526c139fc Bug 1358224 - pt 1 - addRIDExtension and addRIDFilter chrome-only API for RID (RTP Stream Id) filtering of receive tracks. r=qdot
The simulcast mochitests exhibit an intermittent failure due to ssrc-based
filtering that can be solved by filtering by RID.  The RTP header parser
used in MediaPipeline also needs to have the RID RTP header extension
specified in order for it to properly parse the RTP header and allow
filtering on RID.

MozReview-Commit-ID: E54HCGLVYDk

--HG--
extra : rebase_source : b53085f23cb6558611aa7622f55637e19439c9c3
2017-04-26 10:01:07 -05:00
Florian Queze 4b1556a5f2 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Randell Jesup 64a9d5c37f Bug 1343143: enable 3 temporal layers in simulcast mode, at all resolutions r=bwc
MozReview-Commit-ID: 3xf6qTMZPks
2017-04-21 11:03:45 -04:00
Mike Hommey 0f453b4ff8 Bug 1357328 - Remove media/webrtc/signaling/test/moz.build. r=jesup
Its content is a no-op since bug 1322707.

The code in the same directory, though, is meant to move to gtests
(bug 1316611).

--HG--
extra : rebase_source : fa269a034fd327856fde8d0673de58eba9b02d8e
2017-04-18 17:37:58 +09:00
Wes Kocher 20dd5f52c2 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Wes Kocher 514e230373 Merge inbound to central, a=merge 2017-04-13 17:24:01 -07:00
Nico Grunbaum a9c52a60b1 Bug 1241066 - fix mozRtt always 0 or 1;r=jib
My shortest patch to date.

MozReview-Commit-ID: 8r3ZrGUk40D

--HG--
extra : rebase_source : 38cc51ce85e03c03f46e063bf92f594927d1365f
2017-03-20 16:58:53 -07:00
Nils Ohlmeier [:drno] 75a0220f53 Bug 1325513: Check RTP extension header length. r=jesup
MozReview-Commit-ID: 6sUVQjUh8bF

--HG--
extra : rebase_source : 296cb8688a9c27b437380e5f70fd3cf9d43629f2
2017-04-12 15:09:18 -07:00
John Lin ab9060d531 Bug 1349883 - part 3: resolve decode promise according to buffer status. r=jya
MozReview-Commit-ID: JwOOi56t30Y

--HG--
extra : rebase_source : 48f0cc0bfde3f84cc0574c5a5da6c738112c843f
2017-04-07 17:07:02 +08:00
Nils Ohlmeier [:drno] 37ee2e02bb Bug 1355259: only filter out udp candidates if force_tcp is set. r=mjf
MozReview-Commit-ID: AKv0N74epZ1

--HG--
extra : rebase_source : 9a77174afca8fd45b614ec49f4eb86f04ced888a
2017-04-10 16:52:09 -07:00
Munro Mengjue Chiang d61aa73f60 Bug 1354993 - Add PictureID into VP8 CodecSpecificInfo. r=jolin
MozReview-Commit-ID: 7l2WygPuHRX

--HG--
extra : rebase_source : 1594349dbce9140041e0a976534327f5fd4ed8be
2017-04-10 14:49:36 +08:00
Nico Grunbaum 9352ee95aa Bug 1344970 - rename mozRtt to roundTripTime r=jib,smaug
MozReview-Commit-ID: 3kES8JUPd3n

--HG--
extra : rebase_source : e49846845d7cbd43f96d13cb1881e0383517f197
2017-03-06 15:50:10 -08:00
Vineet 7c01ecff24 Bug 1337294 - Removed the unnecessary call to c_str() r=jesup
MozReview-Commit-ID: CpDEC7kRSXs

--HG--
extra : rebase_source : 7d44fe50c35abc6ee643a35821c9b3dea9560f10
2017-03-02 11:09:08 +05:30
Eric Rahm 2d1b7da05b Bug 1354207 - Set webrtc build flags when building under valgrind, etc. r=jesup
The webrtc gyp files have a 'build_for_tool' flag that controls among other
things what defines are provided at build time. This meant that during a
firefox valgrind build webrtc would still specify NVALGRIND, thus disabling
some valgrind macros. Similarly there are flags for asan and tsan that we
should probably have been specifying as well. This patch sets the
'build_for_tool' flag to the appropriate value when building under valgrind,
asan, and tsan.
2017-04-07 09:20:37 -07:00
James Willcox 224324d56d Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV


--HG--
rename : mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/FormatParam.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodec.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridge.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaDrmBridgeCallbacks.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/IMediaManager.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/IMediaManager.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/Sample.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/Sample.aidl
rename : mobile/android/base/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/media/SessionKeyInfo.aidl
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/AsyncCodecFactory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/AsyncCodecFactory.java
rename : mobile/android/base/java/org/mozilla/gecko/media/Codec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/Codec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/CodecProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/CodecProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/FormatParam.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/FormatParam.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrm.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrm.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV21.java
rename : mobile/android/base/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoMediaDrmBridgeV23.java
rename : mobile/android/base/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/JellyBeanAsyncCodec.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaDrmProxy.java
rename : mobile/android/base/java/org/mozilla/gecko/media/MediaManager.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/MediaManager.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridge.java
rename : mobile/android/base/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/RemoteMediaDrmBridgeStub.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SamplePool.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SamplePool.java
rename : mobile/android/base/java/org/mozilla/gecko/media/SessionKeyInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/SessionKeyInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/mozglue/SharedMemory.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
2017-04-06 14:32:58 -05:00
Byron Campen [:bwc] f93af701e0 Bug 1353028: Fix broken extmap validation logic. r=drno
MozReview-Commit-ID: Egvr4ppNZ5Q

--HG--
extra : rebase_source : f22da96ae9beb4b43338f84168e41bfa230700d1
2017-04-03 15:05:31 -05:00
Nico Grunbaum deeb9fdcf9 Bug 1348657 - Part 2 - split send/recv packet counts r=jib
MozReview-Commit-ID: 2SENT4rGsLX

--HG--
extra : rebase_source : 8a6c960871ed7fffb28d5a7676d20c016daa3b58
2017-03-30 10:59:46 -07:00
Nico Grunbaum af67a2fb4c Bug 1348657 - implement framesEncoded, pliCount, nackCount and firCount for webrtc stats r=jib,smaug
MozReview-Commit-ID: E873mbcrlLL

--HG--
extra : rebase_source : ca6f5d7ab0490948aaed1ae793ed5906149b7236
2017-03-21 21:52:06 -07:00
Randell Jesup d5d480e33d Bug 1349581: defer nativeRegistration for android Jni to avoid thread issues r=gcp
MozReview-Commit-ID: Ep0ej5HkGE3
2017-04-03 16:58:44 -04:00
Adam Velebil 69da80395b Bug 1308100 - Replace PL_strlen/PL_strnlen with strlen/strnlen;r=erahm
MozReview-Commit-ID: CGnzomkIsi5
***
Bug 1308100 - Replace PL_strlen/PL_strnlen with strlen/strnlen;r?erahm

--HG--
extra : rebase_source : a14b1538ed91848ecd02fb4607bce4cb9b2ab7c4
2017-04-13 20:47:00 +02:00
Nils Ohlmeier [:drno] 2b6192d5b7 Bug 1355010: temporarily turn off extmap direction verification to avoid Chrome interop issues. r=bwc
MozReview-Commit-ID: 76Zayg9XMi7

--HG--
extra : rebase_source : f5c3a27df5a54db51f18413405ea0e295c82a452
2017-04-11 14:08:32 -07:00
Munro Mengjue Chiang 5907cfe44d Bug 1265755 - Implement remote vp8 encoder and enable/disable them with pref; r=jolin
MozReview-Commit-ID: JZ1eUZNLAKq

--HG--
extra : rebase_source : 3d0da18ab91239db56d5425889d638b184e02b82
2017-03-30 09:00:13 +08:00
Dan Minor 1d80aba420 Bug 1351700 - Fix linking error when building webrtc-gtest; r=jesup
This adds a stub implementation for nsTraceRefcnt::WalkTheStack which we're
pulling in from <mozilla/Assertions.h> in some debug builds.

MozReview-Commit-ID: 6wVghIfKWWZ

--HG--
extra : rebase_source : 1e8472935c7f8ac486794fab764e08b30eea79ed
2017-03-29 14:22:23 -04:00
Dan Minor 774e2f6945 Bug 964133 - Build webrtc.org unit tests; r=jesup,ted.mielczarik
This adds a moz.build file for the tests. The alternative would be to hack up
the gyp files. Since gyp support has already been removed from upstream, this
does not really buy us anything as far as maintainabily goes. Once gn support
is available in our build system, we can remove this moz.build file and use
the gn files instead.

The include paths for the gtest and gmock headers in the webrtc.org tests are
not compatible with where we export the headers. We could patch each unittest,
but the include location has already changed upstream making this painful
to maintain. Instead, we duplicate the relevant headers to the expected path.

MozReview-Commit-ID: 1ADUAMxTCFq

--HG--
extra : rebase_source : 2cc10faa7018ee8af8e8f3d7805265ed2dd89507
2017-03-27 15:51:16 -04:00
Dan Minor 164d41ff3a Bug 964133 - Add stub implementation of OSXRunLoopSingleton.cpp; r=jesup
MozReview-Commit-ID: 8yJh0V2rLoR

--HG--
extra : rebase_source : 3df843511ecb40af2b6d83030453758e838e94be
2017-02-07 13:47:00 -05:00
Dan Minor f44831c17d Bug 964133 - Build gflags; r=ted.mielczarik
This adds gflags to the list of ignored directories for clang static
analysis and adds "explicit" where required in mutex.h.

We also stop building a duplicate copy of snprintf for windows as our builds
already include a definition for it.


MozReview-Commit-ID: 4uMhTMvAKL0

--HG--
extra : rebase_source : d63d3797053c7720c725b3994cb3b2ca11bb191f
2017-03-28 15:46:57 -04:00
Dan Minor 15ed133076 Bug 964133 - Import gflags from webrtc.org branch 49; r=ted.mielczarik
MozReview-Commit-ID: 2AouGZrZa9w

--HG--
extra : rebase_source : 76ab8e4a280912aa08a6c94e1cdfb25488df836a
2017-03-08 11:33:01 -05:00
Dan Minor 6affa752e1 Bug 964133 - Fixup FakeIPC to build on windows; r=jesup
MozReview-Commit-ID: 2Jm82qs4hFL

--HG--
extra : rebase_source : dfade0944c84df23580121384d2501229b78c0c6
2017-01-30 15:37:57 -05:00
Dan Minor d71edf00c9 Bug 964133 - Move FakeIPC to webrtc.org gtest; r=jesup
These were written for the signaling tests but are no longer needed there
because those tests link against libxul. They are still useful for the
webrtc.org unit tests, so we should move them there.

MozReview-Commit-ID: GVskiZebq19

--HG--
rename : media/webrtc/signaling/test/FakeIPC.cpp => media/webrtc/trunk/gtest/FakeIPC.cpp
rename : media/webrtc/signaling/test/FakeIPC.h => media/webrtc/trunk/gtest/FakeIPC.h
extra : rebase_source : 57b70f5dd3a55e73de0b066f228ddf957f477c26
2017-01-13 14:03:17 -05:00
Dan Minor 4205129c92 Bug 964133 - Remove webrtc.org copy of gtest; r=ted.mielczarek
MozReview-Commit-ID: LURWNU2zwRT

--HG--
extra : rebase_source : 5a0c8cd1e56bfbe82e581bce9dcf2cb126a605c5
2017-03-28 15:44:38 -04:00
Byron Campen [:bwc] 87716f1d4e Bug 1344556 - Part 6: Sanity check extmaps in answers. r=drno
MozReview-Commit-ID: Jv91RSe9ooL

--HG--
extra : rebase_source : b61404a8b41d68b3153bee8bdcd44d8a2359a2c8
2017-03-08 15:02:28 -06:00
Byron Campen [:bwc] 5ae671c866 Bug 1344556 - Part 5: Fix bug where sendonly extmaps would be configured on recv tracks, and vice versa. r=drno
MozReview-Commit-ID: DMwDGCnUTYX

--HG--
extra : rebase_source : c2eb3698f4d625d2e08d7deb6c27cce0d0312f01
2017-03-08 15:02:01 -06:00
Byron Campen [:bwc] fa0a599b34 Bug 1344556 - Part 4: Fix bug where direction on negotiated extmaps was recorded backwards. r=drno
MozReview-Commit-ID: BFQ2WcNs4OH

--HG--
extra : rebase_source : c1805d0a166cbbdf53dbde85e5e772a2dbeff1ec
2017-03-08 14:13:44 -06:00
Byron Campen [:bwc] 46618bebbc Bug 1344556 - Part 3: When answering, pay attention to JS simulcast constraints. r=drno
MozReview-Commit-ID: Krwt1om2NLF

--HG--
extra : rebase_source : 788533a7dbc6a0c9b70275652f7d006b1d29d763
2017-03-08 13:51:10 -06:00
Byron Campen [:bwc] 71467de191 Bug 1344556 - Part 2: Some helper functions for working with SDP direction attributes. Makes subsequent work simpler. r=drno
MozReview-Commit-ID: 177Sp8pj9kX

--HG--
extra : rebase_source : a91a896baf342cd49de18d082c5188ab4b82dead
2017-03-08 13:49:12 -06:00
Byron Campen [:bwc] 94936dea03 Bug 1344556 - Part 1: Test cases for simulcast answerer. r=drno
MozReview-Commit-ID: DiHjaPlmmDx

--HG--
extra : rebase_source : 9319082052b02d731d7a3016906bde128e72414a
2017-03-08 11:22:32 -06:00
Randell Jesup 80022975a2 Bug 1349233: allow SSRC changes in VideoConduits r=bwc
MozReview-Commit-ID: 6PNyjLyl9L0
2017-03-28 10:43:10 -04:00
Randell Jesup 340f43be8a Bug 1350912: Set min and start bandwidth according to b=TIAS, instead of only max r=drno
MozReview-Commit-ID: DH1rFn53sNN
2017-03-28 06:54:12 -04:00
Ben Kelly 4ffa062ade Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Andrea Marchesini 1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Dan Minor f7809b18ec Bug 862837 - Build signaling unit tests on Windows; r=drno
MozReview-Commit-ID: 1pLKmXEcaAM

--HG--
extra : rebase_source : 4bef49068433660e5b44ea46b2ff4edd5065513a
2017-03-17 09:48:19 -04:00
Nils Ohlmeier [:drno] e7dd39ae18 Bug 1347813: take cumulativeLost from RTCP. r=jesup
MozReview-Commit-ID: LIPxL8vcnHl

--HG--
extra : rebase_source : e7df61a4200e088dba0b5f85d59669e99d35476f
2017-03-20 14:03:46 -07:00
Michael Froman 647131bd6f Bug 1345511 - pt 3 - start using IPC call for stun addrs in PCMedia. r=bwc
Two new calls are added to NrIceCtx.
1) A static call to allow StunAddrsRequestParent to get stun addrs from the main
process.
2) A call to allow StunAddrsRequestChild to pass the new stun addrs back to
PeerConnectionMedia on the content process.

PeerConnectionMedia, when running in e10s mode, sets up the StunAddrsRequestChild
and makes the async request to get the stun addrs.  When they are returned, it
sets the stun addrs in NrIceCtx avoid the network calls that would otherwise
cause a further restricted sandbox to fail.

MozReview-Commit-ID: C2hYBzm6WNv

--HG--
extra : rebase_source : 4c71056850c418efdc0f709f4d838a3e0bf4bee2
2017-03-22 09:59:46 -05:00
Nils Ohlmeier [:drno] 45e84a2ec3 Bug 1323723: update a=setup tests. r=bwc
MozReview-Commit-ID: LEKNXjKy80R

--HG--
extra : rebase_source : 0ab6554f534f44ffc46505c18cc6c0e92814edab
2017-03-15 15:52:06 -07:00
Nils Ohlmeier [:drno] 451faf7781 Bug 1323723: reject setup value actpass in answers. r=bwc
MozReview-Commit-ID: FnuiLB6OjbL

--HG--
extra : rebase_source : c1e133d3e0baa056b2238b7ec9e96e1194c32506
2017-03-13 21:38:25 -07:00
Nils Ohlmeier [:drno] d42d78db4e Bug 1323723: enforce a=setup in SDP offers. r=bwc
MozReview-Commit-ID: 88y11CrXdhf

--HG--
extra : rebase_source : 4148ee5b1e408350328efe7f1cf45199fbc26404
2017-03-14 14:39:54 -07:00