Henrik Boström
5e56c5927e
DtlsIdentityStoreInterface added and the implementation is called DtlsIdentityStoreImpl (previously named without the -Impl bit and without an interface).
...
DtlsIdentityStoreImpl is updated to take KeyType into account, something which will be relevant after this CL lands:
https://codereview.webrtc.org/1189583002
The DtlsIdentityService[Interface] classes are about to be removed (to be removed when Chromium no longer implements and uses the interface). This was an unnecessary layer of complexity. The FakeIdentityService is now instead a FakeDtlsIdentityStore.
Where a service was previously passed around, a store is now passed around.
Identity generation is now commonly performed using DtlsIdentityStoreInterface. Previously, if a service was not specified, WebRtcSessionDescriptionFactory could fall back on its own generation code. Now, a store has to be provided for generation to occur.
For more information about the steps being taken to land this without breaking Chromium, see referenced bug.
BUG=webrtc:4899
R=magjed@webrtc.org , tommi@webrtc.org
Review URL: https://codereview.webrtc.org/1176383004 .
Cr-Commit-Position: refs/heads/master@{#9696}
2015-08-11 08:33:27 +00:00
honghaiz
503726c349
Fix the generation mismatch assertion error.
...
BUG=4860
Review URL: https://codereview.webrtc.org/1248063002
Cr-Commit-Position: refs/heads/master@{#9667}
2015-07-31 19:37:43 +00:00
tommi
0f620f4e31
Make sure we process all pending offer/answer requests before terminating.
...
This fixes a bug in the WebRtcSessionDescriptionFactory where messages would be dropped or worse yet processed after the factory was deleted.
BUG=chromium:507307
Review URL: https://codereview.webrtc.org/1231823002
Cr-Commit-Position: refs/heads/master@{#9557}
2015-07-09 10:25:04 +00:00
Peter Thatcher
54360510ff
Add flakyness check based on the recently received packets.
...
BUG=
R=pthatcher@webrtc.org
Review URL: https://codereview.webrtc.org/1207563002 .
Cr-Commit-Position: refs/heads/master@{#9553}
2015-07-08 18:08:39 +00:00
jbauch
ac8869ec5a
Report metrics about negotiated ciphers.
...
This CL adds an API to the metrics observer interface to report negotiated
ciphers for WebRTC sessions. This can be used from Chromium for UMA metrics
later to get an idea which cipher suites are used by clients (e.g. compare
the use of DTLS 1.0 / 1.2).
BUG=428343
Review URL: https://codereview.webrtc.org/1156143005
Cr-Commit-Position: refs/heads/master@{#9537}
2015-07-03 08:36:22 +00:00
Henrik Lundin
5263b3c1dd
Add options for NetEq fast accelerate mode through libjingle
...
This CL connects RTCConfiguration::audioJitterBufferFastMode in
PeerConnection.java, through libjingle, down to
NetEq::Config::enable_fast_accelerate in native WebRTC.
When enabled, it will allow NetEq to do faster time-compression when
the buffer level is very high.
BUG=4691
R=henrika@webrtc.org , mflodman@webrtc.org , pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/55479004
Cr-Commit-Position: refs/heads/master@{#9344}
2015-06-01 08:29:55 +00:00
Jelena Marusic
c28a896a7b
VoE: Initialize WebRtcVoiceMediaChannel with AudioOptions during creation
...
BUG=4690
Changes:
1. In MediaEngineInterface changed CreateChannel() to CreateChannel(const AudioOptions&). Plan is to eventually remove Get/SetAudioOptions and the cousins SetDelayOffset and SetDevices.
2. In ChannelManager changed CreateVoiceChannel(...) to CreateVoiceChannel(..., const AudioOptions&).
3. In ChannelManager removed SetEngineAudioOptions, because it is not used and we want to eventually remove SetAudioOptions.
4. Updated MediaEngineInterface implementations and unit tests accordingly.
5. In WebRtcVoiceEngine changed access of Set/ClearOptionOverrides to protected. These are only used by WebRtcVoiceMediaChannel (now a friend). Plan is to rethink the logic behind option overrides.
6. Cosmetics: replaced NULL with nullptr in touched code
R=solenberg@google.com , tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/56499004
Cr-Commit-Position: refs/heads/master@{#9330}
2015-05-29 13:05:52 +00:00
Joachim Bauch
04e5b49827
Make maximum SSL version configurable through PeerConnectionFactory::Options
...
This can be used to activate DTLS 1.2 through a command-line flag from Chromium
later.
BUG=chromium:428343
R=jiayl@webrtc.org , juberti@google.com
Review URL: https://webrtc-codereview.appspot.com/54509004
Cr-Commit-Position: refs/heads/master@{#9328}
2015-05-29 07:40:51 +00:00
Peter Thatcher
af55ccc054
Add RtcpMuxPolicy support to PeerConnection.
...
BUG=4611
R=juberti@google.com
Review URL: https://webrtc-codereview.appspot.com/46169004
Cr-Commit-Position: refs/heads/master@{#9251}
2015-05-21 14:48:19 +00:00
Henrik Lundin
64dad838e6
Reland r9159 "Adding a new constraint to set NetEq buffer capacity ..."
...
The original change was reverted due to a breakage in the chrome build.
This change includes a fix for this.
TBR=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/49329004
Cr-Commit-Position: refs/heads/master@{#9169}
2015-05-11 10:44:20 +00:00
Henrik Lundin
1f629232d5
Revert r9164 "Adding a new constraint to set NetEq buffer capacity ..."
...
This reverts commit fd32f35aff8fc28ec084bddc274de284e0422a57.
TBR=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/55369004
Cr-Commit-Position: refs/heads/master@{#9165}
2015-05-10 09:06:20 +00:00
Henrik Lundin
fd32f35aff
Reland r9159 "Adding a new constraint to set NetEq buffer capacity ..."
...
This reverts commit cdb47a4533b7b1e29e803ed6591a68bb1a4f1692.
Contains a tentative fix to the chrome build breakage caused by the
original change.
TBR=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/47139004
Cr-Commit-Position: refs/heads/master@{#9164}
2015-05-10 09:03:00 +00:00
Henrik Lundin
cdb47a4533
Revert r9159 "Adding a new constraint to set NetEq buffer capacity ..."
...
This reverts commit 208a2294cde839025318f1b3d57559cb0611a4e7.
Breaks the Chrome build.
TBR=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/53399004
Cr-Commit-Position: refs/heads/master@{#9161}
2015-05-08 12:03:46 +00:00
Henrik Lundin
208a2294cd
Adding a new constraint to set NetEq buffer capacity from peerconnection
...
This change makes it possible to set a custom value for the maximum
capacity of the packet buffer in NetEq (the audio jitter buffer). The
default value is 50 packets, but any value can be set with the new
functionality.
R=jmarusic@webrtc.org , mflodman@webrtc.org , pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/50869004
Cr-Commit-Position: refs/heads/master@{#9159}
2015-05-08 10:58:51 +00:00
Fredrik Solenberg
4b60c73e74
Hook up libjingle WebRtcVoiceEngine to Call API for combined A/V BWE.
...
BUG=4574,3109
R=pbos@webrtc.org , tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/49269004
Cr-Commit-Position: refs/heads/master@{#9150}
2015-05-07 12:07:46 +00:00
Peter Thatcher
4eddf18b1c
Don't crash if SetRemoteDescription is called first with BundlePolicy=max-bundle.
...
BUG=
R=decurtis@webrtc.org , juberti@google.com
Review URL: https://webrtc-codereview.appspot.com/46149004
Cr-Commit-Position: refs/heads/master@{#9124}
2015-04-30 17:56:21 +00:00
Donald Curtis
0e209b03bf
Update bundle behavior to match BundlePolicy spec in http://rtcweb-wg.github.io/jsep/ .
...
BUG=1574
R=juberti@webrtc.org , pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/36659004
Cr-Commit-Position: refs/heads/master@{#8851}
2015-03-24 16:30:02 +00:00
pthatcher@webrtc.org
592470b4ff
Remove a dependency of BaseChannel on WebRtcSession by having WebRtcSession push down new media descriptions to BaseChannel rather than having BaseChannel listen to the description changes from WebRtcSession.
...
This is a part of the big BUNDLE implementation at https://webrtc-codereview.appspot.com/45519004/
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/47599004
Cr-Commit-Position: refs/heads/master@{#8743}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8743 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-03-16 21:16:23 +00:00
pthatcher@webrtc.org
4eeef584a7
Remove a hacky dependency of BaseChannel on BaseSession by moving the handling of DTLS setup failure into a signal on BaseChannel rather than a method call on BaseSession.
...
This is a part of the big BUNDLE implementation at https://webrtc-codereview.appspot.com/45519004/
R=decurtis@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/47589004
Cr-Commit-Position: refs/heads/master@{#8740}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8740 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-03-16 19:34:40 +00:00
pthatcher@webrtc.org
c04a97f054
Move from BaseSession::GetStats to WebRtcSession::GetTransportStats
...
This is a part of the big BUNDLE implementation at https://webrtc-codereview.appspot.com/45519004/
Review URL: https://webrtc-codereview.appspot.com/45639004
Cr-Commit-Position: refs/heads/master@{#8739}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8739 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-03-16 19:32:23 +00:00
andresp@webrtc.org
ff689be3c0
Use std::min and std::max instead of self-defined functions such as rtc::_min/_max.
...
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/35079004
Cr-Commit-Position: refs/heads/master@{#8347}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8347 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-12 11:55:32 +00:00
pthatcher@webrtc.org
877ac765ad
Cleanup and prepare for bundling.
...
- Add a GetOptions function. Needed for eventual bundle testing to
confirm that channel options are preserved.
- Simplify unit tests and cleanup unused code.
This is a re-roll of 8237 (https://webrtc-codereview.appspot.com/39699004 ) with a default GetOption implementation.
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/38909004
Cr-Commit-Position: refs/heads/master@{#8245}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8245 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-04 22:03:41 +00:00
bjornv@webrtc.org
520a69e8ea
Revert 8238 "Add RefCounting for TransportProxies"
...
Failing on Mac64_Debug
> Add RefCounting for TransportProxies
>
> BUG=1574
> R=pthatcher@webrtc.org
>
> Review URL: https://webrtc-codereview.appspot.com/37869004
TBR=decurtis@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/37159004
Cr-Commit-Position: refs/heads/master@{#8243}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8243 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-04 12:46:13 +00:00
bjornv@webrtc.org
c5f697135e
Revert 8237 "Cleanup and prepare for bundling."
...
libjingle_peerconnection_objc_test consistently failing on Mac64 Debug.
> Cleanup and prepare for bundling.
>
> - Add a GetOptions function. Needed for eventual bundle testing to
> confirm that channel options are preserved.
> - Simplify unit tests and cleanup unused code.
>
> BUG=1574
> R=pthatcher@webrtc.org , tommi@webrtc.org
>
> Review URL: https://webrtc-codereview.appspot.com/39699004
TBR=pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/34959004
Cr-Commit-Position: refs/heads/master@{#8241}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8241 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-04 10:22:43 +00:00
decurtis@webrtc.org
e2506670a4
Add RefCounting for TransportProxies
...
BUG=1574
R=pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/37869004
Cr-Commit-Position: refs/heads/master@{#8238}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8238 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-03 23:19:23 +00:00
pthatcher@webrtc.org
af01d93aa2
Cleanup and prepare for bundling.
...
- Add a GetOptions function. Needed for eventual bundle testing to
confirm that channel options are preserved.
- Simplify unit tests and cleanup unused code.
BUG=1574
R=pthatcher@webrtc.org , tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/39699004
Cr-Commit-Position: refs/heads/master@{#8237}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8237 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-03 23:14:18 +00:00
jiayl@webrtc.org
dacdd9403d
Reland r7980:
...
Accept incoming pings before remote answer is set, to reduce connection latency.
Set ICE connection state to 'checking' after setting the remote answer, so that it can transition into 'connected' if the peer reflexive connection is up before any remote candidate is set. See more details in crbug/446908
BUG=4068, crbug/446908
R=juberti@webrtc.org , pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/38709004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8141 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-01-23 17:33:34 +00:00
tommi@webrtc.org
586f2eda0d
Change GetStreamBySsrc to not copy StreamParams.
...
This is something I stumbled upon while looking at string copying we do (in spades) and did a simple change to not be constantly copying things around needlessly. There's a lot more that can be done in these files of course so this is sort of a reminder for future code edits that it's possible to design interfaces/function in a way that's more performance aware and avoid forcing creation of copies, while still being very simple. Also, we can use lambdas now :)
BUG=
R=perkj@webrtc.org , pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/41589004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8131 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-01-22 23:00:41 +00:00
jlmiller@webrtc.org
5f93d0a140
Update libjingle license statements at top of talk files for consistency
...
BUG=2133
R=juberti@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/39559004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8105 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-01-20 21:36:13 +00:00
stefan@webrtc.org
742386a136
Enable payload-based padding by default and remove the API.
...
BUG=1812
R=mflodman@webrtc.org , pbos@webrtc.org , perkj@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/31319004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7964 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-12-19 15:33:17 +00:00
pthatcher@webrtc.org
40b276ea7b
Cleanup little things found when refactoring.
...
R=juberti@google.com
Review URL: https://webrtc-codereview.appspot.com/33519004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7880 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-12-12 02:44:30 +00:00
bemasc@webrtc.org
9b5467e88d
Fix assertion failure when closing data channel, and add a unit test.
...
BUG=4066
R=jiayl@webrtc.org , juberti@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/31109004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7816 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-12-04 23:16:52 +00:00
guoweis@webrtc.org
7169afd9d5
With IPv6 enabled, it's important to know whether IPv6 is really used or not. BestConnection is tracked for this purpose. Also added a test case to verify the end to end behavior.
...
BUG=411086
R=pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/30919005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7814 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-12-04 17:59:29 +00:00
buildbot@webrtc.org
1ecbe45c7e
(Auto)update libjingle 77689511-> 77696841
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7449 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-10-14 20:29:28 +00:00
mallinath@webrtc.org
3d81b1b22a
Relanding https://code.google.com/p/webrtc/source/detail?r=7093 , after it got
...
reverted due to some internal compile failures.
In this CL changes are done in portallocator_unittest.cc, in particular to EXPECT_EQ checking in new tests.
Original patch committed in https://code.google.com/p/webrtc/source/detail?r=7093
TBR=juberti@webrtc.org
BUG=1179
Review URL: https://webrtc-codereview.appspot.com/22329004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7118 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-09 14:38:10 +00:00
henrike@webrtc.org
8b0b21161a
Revert 7093: "Implementing ICE Transports type handling in libjingle transport."
...
TBR=mallinath@webrtc.org
BUG=N/A
Review URL: https://webrtc-codereview.appspot.com/28419004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7112 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-08 22:46:28 +00:00
mallinath@webrtc.org
7256d31d28
Implementing ICE Transports type handling in libjingle transport.
...
BUG=1179
R=juberti@webrtc.org , bemasc@webrtc.org , jiayl@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/22219004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7093 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-07 04:08:44 +00:00
jiayl@webrtc.org
e21cc9ae2a
When the peerconnection creates the offer with a constraint to disable the audio offering, stats will not get properly updated.
...
constraints . SetMandatoryReceiveAudio (false);
The problem is that webrtc::GetTrackIdBySsrc returns false if audio is not available. However it should continue and check for the video track.
BUG=webrtc:3755
R=jiayl@webrtc.org , juberti@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/22479004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7005 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-28 22:21:34 +00:00
buildbot@webrtc.org
b4c7b09c13
(Auto)update libjingle 73927775-> 74032598
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6965 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-25 12:11:58 +00:00
buildbot@webrtc.org
2b0554f0e7
(Auto)update libjingle 73794259-> 73891518
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6955 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-22 14:08:15 +00:00
henrike@webrtc.org
0481f15f02
(Auto)update libjingle 73399579-> 73626167
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6928 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-19 14:56:59 +00:00
buildbot@webrtc.org
a09a99950e
(Auto)update libjingle 73222930-> 73226398
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6891 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-13 17:26:08 +00:00
buildbot@webrtc.org
53df88c1bc
(Auto)update libjingle 72847605-> 72850595
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6855 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-07 22:46:01 +00:00
jiayl@webrtc.org
b18bf5e47d
Adds the support of RTCOfferOptions for PeerConnectionInterface::CreateOffer.
...
Constraints are still supported for CreateOffer, but converted to RTCOfferOptions internally.
BUG=3282
R=pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/20029004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6822 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-04 18:34:16 +00:00
buildbot@webrtc.org
d4e598d57a
(Auto)update libjingle 72097588-> 72159069
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6799 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-07-29 17:36:52 +00:00
buildbot@webrtc.org
e69b061926
(Auto)update libjingle 71575585-> 71599033
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6750 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-07-21 20:38:58 +00:00
buildbot@webrtc.org
3dec81a736
(Auto)update libjingle 71456173-> 71456344
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6738 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-07-18 21:39:56 +00:00
buildbot@webrtc.org
60e65b11c1
(Auto)update libjingle 71452608-> 71453580
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6735 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-07-18 21:07:50 +00:00
jiayl@webrtc.org
e10d28cf14
fix
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6720 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-07-17 17:07:49 +00:00
jiayl@webrtc.org
db397e5c6c
Re-evalutes the ICE role on ICE restart.
...
Also unifies the logic of ICE restart.
BUG=1775
R=juberti@google.com , juberti@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/20619004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6510 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-06-20 16:32:09 +00:00