18378 Commits

Author SHA1 Message Date
gyzhou
b38f38662f Update native plugin dll for turn servers and video.
This CL was modified from work of sharifferdous@ (intern supervised by lliuu@)

BUG=webrtc:7389

Review-Url: https://codereview.webrtc.org/2987723002
Cr-Commit-Position: refs/heads/master@{#19146}
2017-07-25 23:04:31 +00:00
jtteh
3b673c66a4 Removed file RTCCameraVideoCapturer.mm that isn't needed
Also added post commit review changes.

BUG=webrtc:7898

Review-Url: https://codereview.webrtc.org/2988783002
Cr-Commit-Position: refs/heads/master@{#19145}
2017-07-25 22:48:39 +00:00
peah
b1c9d1de36 Avoid that previous settings in APM are overwritten by WebRtcVoiceEngine
This CL ensures that any previously set nondefault settings in the
audio processing module are not overwritten by the ApplyOptions
method in WebRtcVoiceEngine

BUG=webrtc:8018

Review-Url: https://codereview.webrtc.org/2985633002
Cr-Commit-Position: refs/heads/master@{#19144}
2017-07-25 22:45:24 +00:00
buildbot
0748277005 Roll chromium_revision f470dd6dfd..c92ec9bd3c (489395:489455)
Change log: f470dd6dfd..c92ec9bd3c
Full diff: f470dd6dfd..c92ec9bd3c

Changed dependencies:
* src/base: eb872ca51d..9bf8bad57b
* src/build: 15b41f4835..b77c52d5dc
* src/ios: 7739ac994d..f663fb4b6a
* src/testing: d0c979542b..2ddf53c7d8
* src/third_party: 1df9ca7902..0973dec63f
* src/third_party/libyuv: d8136924bd..56022ef77f
* src/tools: a211f5ad2b..d48747a333
DEPS diff: f470dd6dfd..c92ec9bd3c/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2990653002
Cr-Commit-Position: refs/heads/master@{#19143}
2017-07-25 22:22:45 +00:00
jamiewalch
d1d6c5a31b Add jamiewalch to OWNERS.
BUG=None

Review-Url: https://codereview.webrtc.org/2989653002
Cr-Commit-Position: refs/heads/master@{#19142}
2017-07-25 21:37:07 +00:00
buildbot
dba4f946d0 Roll chromium_revision 88beb225b9..f470dd6dfd (489316:489395)
Change log: 88beb225b9..f470dd6dfd
Full diff: 88beb225b9..f470dd6dfd

Changed dependencies:
* src/base: d2ecf406e2..eb872ca51d
* src/build: e8cacac814..15b41f4835
* src/ios: 27e843acc9..7739ac994d
* src/third_party: 51e1c40544..1df9ca7902
* src/tools: a765124b08..a211f5ad2b
DEPS diff: 88beb225b9..f470dd6dfd/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2988793002
Cr-Commit-Position: refs/heads/master@{#19141}
2017-07-25 19:56:54 +00:00
buildbot
2f0803cbf2 Roll chromium_revision fd8f995919..88beb225b9 (488572:489316)
Change log: fd8f995919..88beb225b9
Full diff: fd8f995919..88beb225b9

Changed dependencies:
* src/base: ff92886fed..d2ecf406e2
* src/build: 995d75919a..e8cacac814
* src/ios: d8aae3bcad..27e843acc9
* src/testing: 639e83fbfc..d0c979542b
* src/third_party: 6fc19207c5..51e1c40544
* src/third_party/catapult: e11a4d0d82..b5d2ffa3c5
* src/third_party/libyuv: 7bffe5e1c5..d8136924bd
* src/third_party/robolectric/robolectric: 2a0b6ba221..0ccaf33cf6
* src/tools: 50cda24eac..a765124b08
* src/tools/gyp: eb296f67da..d61a9397e6
DEPS diff: fd8f995919..88beb225b9/DEPS

Clang version changed 307486:308728
Details: fd8f995919..88beb225b9/tools/clang/scripts/update.py

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2985843002
Cr-Commit-Position: refs/heads/master@{#19140}
2017-07-25 18:40:43 +00:00
jtteh
61b0ed039d [iOS] Fix incorrectly oriented frames when rapidly switching between cameras.
During a call, with both phones in horizontal or landscape mode, rapidly switching between the front and back camera sometimes causes the remote video to be shown upside down.

There seems to be a race condition when setting the rotation based on the orientation of the device and which camera we're using.

So use the active input's camera to check instead of the client state.

BUG=webrtc:7898

Review-Url: https://codereview.webrtc.org/2964703002
Cr-Commit-Position: refs/heads/master@{#19139}
2017-07-25 16:35:55 +00:00
danilchap
96b69bdbee Refactor composing report blocks for rtcp Sender/Receiver reports.
Compose them while creating sr/rr instead of presaving in temporary
member variable

BUG=webrtc:5565, webrtc:8016

Review-Url: https://codereview.webrtc.org/2979413002
Cr-Commit-Position: refs/heads/master@{#19138}
2017-07-25 16:15:14 +00:00
eladalon
7fb11d7376 Shrink critical-section scope in ReceiveStatisticsImpl::GetActiveStatisticians()
The critical-section's scope can be shrunk (we can hold the lock for a shorter time).

BUG=None

Review-Url: https://codereview.webrtc.org/2984973002
Cr-Commit-Position: refs/heads/master@{#19137}
2017-07-25 15:25:23 +00:00
danilchap
6209dcdeb1 Add SetReportBlocks to rtcp Sender/Receive Report classes.
BUG=None

Review-Url: https://codereview.webrtc.org/2991623002
Cr-Commit-Position: refs/heads/master@{#19136}
2017-07-25 15:07:13 +00:00
kthelgason
fb143127d7 Reland of Injectable Obj-C video codecs (patchset #1 id:1 of https://codereview.webrtc.org/2980173002/ )
Reason for revert:
Relanding after fixing issues with no video.

Original issue's description:
> Revert of Injectable Obj-C video codecs (patchset #2 id:370001 of https://codereview.webrtc.org/2979983002/ )
>
> Reason for revert:
> Still having problems with no video. Reverting.
> Once no video is visible, no video is available from then on even if the callee app is in the foreground.
>
>
> Original issue's description:
> > Reland of Injectable Obj-C video codecs (patchset #1 id:1 of https://codereview.webrtc.org/2979973002/ )
> >
> > Reason for revert:
> > Fix the broken build file
> >
> > Original issue's description:
> > > Revert of Injectable Obj-C video codecs (patchset #3 id:400001 of https://codereview.webrtc.org/2981583002/ )
> > >
> > > Reason for revert:
> > > Breaks bots. Build file incorrect.
> > >
> > > Original issue's description:
> > > > Reland of Injectable Obj-C video codecs (patchset #1 id:1 of https://codereview.webrtc.org/2975963002/ )
> > > >
> > > > Reason for revert:
> > > > New CL for fixing the issues
> > > >
> > > > Original issue's description:
> > > > > Revert of Injectable Obj-C video codecs (patchset #8 id:140001 of https://codereview.webrtc.org/2966023002/ )
> > > > >
> > > > > Reason for revert:
> > > > > Causes no video in certain scenarios. Please come up with a test plan or unit test to prevent such problems in the future.
> > > > >
> > > > > Original issue's description:
> > > > > > Injectable Obj-C video codecs
> > > > > >
> > > > > > Initial CL for this effort, with a working RTCVideoEncoder/Decoder for H264
> > > > > > (wrapping the VideoToolbox codec).
> > > > > >
> > > > > > Some notes / things left to do:
> > > > > >   - There are some hard-coded references to codec types that are supported by
> > > > > >     webrtc::VideoCodec, cricket::VideoCodec, webrtc::CodecSpecificInfo etc
> > > > > >     since we need to convert to/from these types in ObjCVideoEncoder/Decoder.
> > > > > >     These types would need to be more codec agnostic to avoid this.
> > > > > >   - Most interfaces are borrowed from the design document for injectable
> > > > > >     codecs in Android. Some data in the corresponding C++ classes is discarded
> > > > > >     when converting to the Obj-C version, since it has fewer fields. I have not
> > > > > >     verified whether all data that we do keep is needed, or whether we might be
> > > > > >     losing anything useful in these conversions.
> > > > > >   - Implement the VideoToolbox codec code directly in the RTCVideoEncoderH264
> > > > > >     classes, instead of wrapping webrtc::H264VideoToolboxEncoder / decoder.
> > > > > >     Eliminates converting between ObjC/C++ types outside the ObjCVideoEncoder/
> > > > > >     Decoder wrapper classes.
> > > > > >   - List the injected codec factory's supported codecs in the list of codecs in
> > > > > >     AppRTCMobile.
> > > > > >
> > > > > > BUG=webrtc:7924
> > > > > > R=magjed@webrtc.org
> > > > > >
> > > > > > Review-Url: https://codereview.webrtc.org/2966023002 .
> > > > > > Cr-Commit-Position: refs/heads/master@{#18928}
> > > > > > Committed: a0349c138d
> > > > >
> > > > > TBR=magjed@webrtc.org,andersc@webrtc.org
> > > > > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > > > > BUG=webrtc:7924
> > > > > NOTRY=true
> > > > >
> > > > > Review-Url: https://codereview.webrtc.org/2975963002
> > > > > Cr-Commit-Position: refs/heads/master@{#18979}
> > > > > Committed: 1095ada7ad
> > > >
> > > > R=magjed@webrtc.org
> > > > TBR=tkchin@webrtc.org
> > > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > > NOPRESUBMIT=true
> > > > NOTREECHECKS=true
> > > > NOTRY=true
> > > > BUG=webrtc:7924
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2981583002 .
> > > > Cr-Commit-Position: refs/heads/master@{#19002}
> > > > Committed: a5f1de1e65
> > >
> > > TBR=magjed@webrtc.org,tkchin@webrtc.org,jtteh@webrtc.org,andersc@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:7924
> > >
> > > Review-Url: https://codereview.webrtc.org/2979973002
> > > Cr-Commit-Position: refs/heads/master@{#19004}
> > > Committed: 81d40ee149
> >
> > TBR=magjed@webrtc.org,tkchin@webrtc.org,jtteh@webrtc.org,sprang@webrtc.org
> > BUG=webrtc:7924
> >
> > Review-Url: https://codereview.webrtc.org/2979983002
> > Cr-Commit-Position: refs/heads/master@{#19005}
> > Committed: 732a3437da
>
> TBR=magjed@webrtc.org,tkchin@webrtc.org,sprang@webrtc.org,haysc@webrtc.org,andersc@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:7924
>
> Review-Url: https://codereview.webrtc.org/2980173002
> Cr-Commit-Position: refs/heads/master@{#19036}
> Committed: 860f729816

TBR=magjed@webrtc.org,tkchin@webrtc.org,sprang@webrtc.org,haysc@webrtc.org,andersc@webrtc.org,jtteh@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:7924

Review-Url: https://codereview.webrtc.org/2977213002
Cr-Commit-Position: refs/heads/master@{#19135}
2017-07-25 14:55:58 +00:00
danilchap
83377270dc Remove deprecated RtpRtcp::SetAudioPacketSize
was deprecated in https://codereview.webrtc.org/2545753002

BUG=webrtc:5806

Review-Url: https://codereview.webrtc.org/2986793002
Cr-Commit-Position: refs/heads/master@{#19134}
2017-07-25 14:46:54 +00:00
ilnik
e264a9ee9c Rename isolated_output to test_output and add a method to get the test_output directory.
BUG=none

TBR=kjellander@webrtc.org

patch from issue 2990533002 at patchset 1 (http://crrev.com/2990533002#ps1)
Already lgtm'ed in original issue. This only fixes trivial compilation errors.

Review-Url: https://codereview.webrtc.org/2989613002
Cr-Commit-Position: refs/heads/master@{#19133}
2017-07-25 14:31:18 +00:00
mbonadei
d5e3d0f958 Creating a more generic memcheck suppression
Chromium roll into WebRTC is failing because of a memcheck error.
The tool suggests to add this suppression:

{
   <insert_a_suppression_name_here>
   Memcheck:Uninitialized
   fun:vfprintf
   fun:vsnprintf
   fun:snprintf
   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
   fun:_ZN7testing8internal14Default...
   fun:_ZN7testing8internal20MatchPrint...
   fun:_ZNK7testing8internal29Predicate...
}

This CL tries to remove some duplication using a more generic pattern.

BUG=webrtc:6773
NOTRY=True

Review-Url: https://codereview.webrtc.org/2991643002
Cr-Commit-Position: refs/heads/master@{#19132}
2017-07-25 14:30:06 +00:00
eladalon
42f44f9cf6 Get rid of unnecessary cast of FlexfecReceiveStreamImpl to FlexfecReceiveStream
BUG=None

Review-Url: https://codereview.webrtc.org/2967913002
Cr-Commit-Position: refs/heads/master@{#19131}
2017-07-25 13:40:06 +00:00
ilnik
59cac99c9a Report minimum PSNR in VideoQualityTest and save corresponding frame to file
BUG=none

Review-Url: https://codereview.webrtc.org/2976373002
Cr-Commit-Position: refs/heads/master@{#19130}
2017-07-25 12:45:03 +00:00
danilchap
d3f3c3497b Remove NullObjectReceiveStatistics() in rtp_rtcp module
use (already supported) nullptr as indication for no statistics

BUG=webrtc:8016

Review-Url: https://codereview.webrtc.org/2983363002
Cr-Commit-Position: refs/heads/master@{#19129}
2017-07-25 11:20:12 +00:00
danilchap
a04d9c31a0 Remove RtpRtcp::RemoteRTCPStat(RTCPSenderInfo*) as unused
BUG=webrtc:5565

Review-Url: https://codereview.webrtc.org/2986543002
Cr-Commit-Position: refs/heads/master@{#19128}
2017-07-25 11:03:39 +00:00
oprypin
d0727bfd45 Fix NSInteger formatting warning from clang 6
"error: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead"
Casting to long is already a common practice in the code base.

This has been blocking the Chromium roll which contains an update to clang 6.0.0

BUG=None

Review-Url: https://codereview.webrtc.org/2987693002
Cr-Commit-Position: refs/heads/master@{#19127}
2017-07-25 09:04:58 +00:00
oprypin
1e64cfae53 Fix autoroller in accordance to upstream change
This broke WebRTC's presubmit
e79ddeaabf%5E%21/

GClientKeywords has been removed and replaced with a more direct substitution.

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2989603002
Cr-Commit-Position: refs/heads/master@{#19126}
2017-07-25 08:57:17 +00:00
korniltsev.anatoly
ec390b5dfb When a track is added/removed directly to MediaStream notify observer->OnRenegotionNeeded
There is an inconsistency in behavior of PeerConnection.
When I remove track from PeerConnection observer->OnRenegotiationNeeded is called, however if I remove track from MediaStream then there is no notification to renegotiate.
This patch adds missing OnRenegotiationNeeded calls.

BUG=webrtc:7966

Review-Url: https://codereview.webrtc.org/2977493002
Cr-Commit-Position: refs/heads/master@{#19125}
2017-07-25 00:00:25 +00:00
ehmaldonado
d083e851f6 Remove traces from {send,receive}_statistics_proxy.cc
These traces will be traced instead when getStats()
is called by JavaScript.

BUG=chromium:653087

Review-Url: https://codereview.webrtc.org/2972393002
Cr-Commit-Position: refs/heads/master@{#19124}
2017-07-24 16:00:13 +00:00
philipel
65e1f9476a Throttle log message in FrameBuffer.
BUG=webrtc:7551

Review-Url: https://codereview.webrtc.org/2987673002
Cr-Commit-Position: refs/heads/master@{#19123}
2017-07-24 15:26:53 +00:00
danilchap
c43d565873 Remove setting configuration parameter to itself.
when creating RtpRtcp module for video send stream.

BUG=webrtc:8016

Review-Url: https://codereview.webrtc.org/2979363002
Cr-Commit-Position: refs/heads/master@{#19122}
2017-07-24 15:13:34 +00:00
magjed
cc8b906467 iOS AppRTCMobile: Close peerconnection when disconnecting
We currently don't close the peerconnection before deallocing. That
could potentially cause race conditions if it's still being processed on
other threads.

BUG=webrtc:7976

Review-Url: https://codereview.webrtc.org/2976983002
Cr-Commit-Position: refs/heads/master@{#19121}
2017-07-24 14:32:33 +00:00
Alex Loiko
e029d99f19 Integer overflow bug in low_cut_filter.
A multiplication result doesn't fit in an int32_t type. This change
rewrites the code to avoid the overflowing multiplication.

Here y[0], y[1] are int16 numbers containing the (truncated) topmost
18 and (scaled Q2 to use the full int16) the least significant 13
bits of a 32-bit value. The change makes y[1] to be calculated 
directly instead of using y[0] as an intermediate value. 

TESTED=this change passes the bit exactness tests, and has also been 
running on the audio_processing fuzzer with a CHECK comparing the
old and new value.

Bug: chromium:747202
Change-Id: Iafc69eb7391d494afdadf65f5b7f399a57bbe9a8
Reviewed-on: https://chromium-review.googlesource.com/580907
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19120}
2017-07-24 11:03:46 +00:00
ehmaldonado
fe43df155c Ignore NewApi Android Lint warning + Roll chromium_revision
Ignore NewApi and InlinedApi Android Lint warnings.
They will be enabled once platform-tools is rolled. See crbug.com/739746.

This is needed because of 6e3237729a

Roll chromium_revision 1238950005..fd8f995919 (488218:488572)

Change log: 1238950005..fd8f995919
Full diff: 1238950005..fd8f995919

Changed dependencies:
* src/base: 9590d17c3d..ff92886fed
* src/build: 36a077c7b3..995d75919a
* src/ios: 342e327240..d8aae3bcad
* src/testing: 718dcd6f4b..639e83fbfc
* src/third_party: 8ac1939776..6fc19207c5
* src/third_party/catapult: c7c5420fbc..e11a4d0d82
* src/third_party/ffmpeg: d19b0ad9b2..97ebed6795
* src/tools: 030de9aca2..50cda24eac
DEPS diff: 1238950005..fd8f995919/DEPS

No update to Clang.

TBR=
NOTRY=True
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2986603002
Cr-Commit-Position: refs/heads/master@{#19119}
2017-07-24 09:51:58 +00:00
flim
bf8202185c Disable some Opus tests pending an update
These tests will be reenabled and updated after Opus has been updated in
Chromium and rolled into WebRTC.

BUG=737323, webrtc:8024

Review-Url: https://codereview.webrtc.org/2963673002
Cr-Commit-Position: refs/heads/master@{#19118}
2017-07-24 09:17:38 +00:00
korniltsev.anatoly
f3a48ab6dc Delete unused field from AndroidVideoTrackSource
BUG=None

Review-Url: https://codereview.webrtc.org/2974713002
Cr-Commit-Position: refs/heads/master@{#19117}
2017-07-24 08:06:39 +00:00
Zijie He
48e4d6d609 Add zijiehe@chromium.org as OWNERS in WebRTC DesktopCapturer related logic
Bug: chromium:747738
Change-Id: Iff83e89862ee190d0442cb3463c1dea0b87eb4b4
Reviewed-on: https://chromium-review.googlesource.com/582028
Commit-Queue: Zijie He <zijiehe@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19116}
2017-07-23 21:37:59 +00:00
Zijie He
cd66a771ed Create new constructors and fields to support a better mouse cursor monitor
Current implementation requires MouseCursorMonitor to understand the SourceId of
a DesktopCapturer implementation. But SourceId has different meanings across
various DesktopCapturer implementations. So this change decouples the
MouseCursorMonitor from DesktopCapturer, i.e. it does not need to know
DesktopCapturer anymore, instead it always returns the absolute position of the
mouse cursor. In DesktopAndCursorComposer, it can use the newly added
DesktopFrame::top_left() to decide the relative position of mouse cursor and the
DesktopFrame.

Bug: webrtc:7950
Change-Id: Idfbde5cb0f79ff0acf4ad1e9a0ac5126f1bb2e98
Reviewed-on: https://chromium-review.googlesource.com/575315
Commit-Queue: Zijie He <zijiehe@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19115}
2017-07-21 22:13:35 +00:00
deadbeef
817c8af52a Revert of Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting. (patchset #2 id:20001 of https://codereview.webrtc.org/2983213002/ )
Reason for revert:
Breaks IpcNetworkManagerTest.TestMergeNetworkList, because it has built-in assumptions about network ordering that it shouldn't have. Will reland after fixing that test.

Original issue's description:
> Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting.
>
> This CL moves the responsibility for restricting the number of IPv6
> interfaces used for ICE to BasicPortAllocator. This is the right place
> to do it in the first place; it's where all the rest of the filtering
> occurs. And NetworkManager shouldn't need to know about ICE limitations;
> only the ICE classes should.
>
> Part of the reason I'm doing this is that I want to add a
> "max_ipv6_networks" API to RTCConfiguration, so that applications can
> override the default easily (see linked bug). But that means that
> PeerConnection would need to be able to call "set_max_ipv6_networks" on
> the underlying object that does the filtering, and that method isn't
> available on the "NetworkManager" base class. So rather than adding
> another method to a place it doesn't belong, I'm moving it to the place
> it does belong.
>
> In the process, I noticed that "CompareNetworks" is inconsistent with
> "SortNetworks"; the former orders interfaces alphabetically, and the
> latter reverse-alphabetically. I believe this was unintentional, and
> results in undesirable behavior (like "eth1" being preferred over
> "eth0"), so I'm fixing it and adding a test.
>
> BUG=webrtc:7703
>
> Review-Url: https://codereview.webrtc.org/2983213002
> Cr-Commit-Position: refs/heads/master@{#19112}
> Committed: ad9561404c

TBR=zhihuang@webrtc.org,pthatcher@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7703

Review-Url: https://codereview.webrtc.org/2984853002
Cr-Commit-Position: refs/heads/master@{#19114}
2017-07-21 19:59:46 +00:00
Steve Anton
d14d9f7414 Use array declaration for extension URIs.
Allows using sizeof() on the class constants and reduces space usage by
a pointer.

Bug: None
Change-Id: Ie919b13094903d50bdadc92b23a5aa5b6cc100ec
Reviewed-on: https://chromium-review.googlesource.com/581878
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19113}
2017-07-21 19:36:14 +00:00
deadbeef
ad9561404c Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting.
This CL moves the responsibility for restricting the number of IPv6
interfaces used for ICE to BasicPortAllocator. This is the right place
to do it in the first place; it's where all the rest of the filtering
occurs. And NetworkManager shouldn't need to know about ICE limitations;
only the ICE classes should.

Part of the reason I'm doing this is that I want to add a
"max_ipv6_networks" API to RTCConfiguration, so that applications can
override the default easily (see linked bug). But that means that
PeerConnection would need to be able to call "set_max_ipv6_networks" on
the underlying object that does the filtering, and that method isn't
available on the "NetworkManager" base class. So rather than adding
another method to a place it doesn't belong, I'm moving it to the place
it does belong.

In the process, I noticed that "CompareNetworks" is inconsistent with
"SortNetworks"; the former orders interfaces alphabetically, and the
latter reverse-alphabetically. I believe this was unintentional, and
results in undesirable behavior (like "eth1" being preferred over
"eth0"), so I'm fixing it and adding a test.

BUG=webrtc:7703

Review-Url: https://codereview.webrtc.org/2983213002
Cr-Commit-Position: refs/heads/master@{#19112}
2017-07-21 18:03:53 +00:00
Steve Anton
a3251dd83f Add parsing/serializing for MID RTP header extension.
This is the first in a series of CLs to add support for media
identification as part of unified plan SDP.

Bug: webrtc:4050
Change-Id: I0eb5639d240a9a1412c2b047a33d5112e4901f26
Reviewed-on: https://chromium-review.googlesource.com/576374
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Peter Thatcher <pthatcher@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19111}
2017-07-21 17:33:25 +00:00
henrika
3296256f0e Fixing lint issue
NOTRY=TRUE
BUG=NONE

Review-Url: https://codereview.webrtc.org/2988533002
Cr-Commit-Position: refs/heads/master@{#19110}
2017-07-21 14:28:41 +00:00
henrika
cfccdae57e Adds WebRtcAudioTrack.setAudioTrackUsageAttribute API
TBR=
BUG=b/62058118

Review-Url: https://codereview.webrtc.org/2979423002
Cr-Commit-Position: refs/heads/master@{#19109}
2017-07-21 13:16:02 +00:00
henrika
e29117edbb Modifies closing of AudioTrack resource on Android
TBR=

BUG=b/63161630

Review-Url: https://codereview.webrtc.org/2987583002
Cr-Commit-Position: refs/heads/master@{#19108}
2017-07-21 10:51:42 +00:00
sakal
8ac955be2c Set target API to 18 for MediaCodecUtils.
Target API 18 is needed for texture mode encoding.

BUG=None

Review-Url: https://codereview.webrtc.org/2982403002
Cr-Commit-Position: refs/heads/master@{#19107}
2017-07-21 10:30:02 +00:00
Emad Omara
cb79d23c9b Add common TLS extensions
Bug: webrtc:8019
Change-Id: Ic60e892f0acbe394472319c4d943690828446610
Reviewed-on: https://chromium-review.googlesource.com/580261
Commit-Queue: Emad Omara <emadomara@webrtc.org>
Reviewed-by: Justin Uberti <juberti@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19106}
2017-07-21 00:10:31 +00:00
zstein
3c45186ef2 Move total audio energy and duration tracking to AudioLevel and protect with existing critial section.
BUG=webrtc:7982

Review-Url: https://codereview.webrtc.org/2984473002
Cr-Commit-Position: refs/heads/master@{#19105}
2017-07-20 16:57:42 +00:00
terelius
c4a5c14e8a Print general usage information for event_log_analyzer
Print general usage information for event_log_analyzer (in addition to listing the command line flags) when called with '--help'.

BUG=None

Review-Url: https://codereview.webrtc.org/2986573002
Cr-Commit-Position: refs/heads/master@{#19104}
2017-07-20 15:05:09 +00:00
buildbot
ad908f877e Roll chromium_revision 08a8c75946..1238950005 (488179:488218)
Change log: 08a8c75946..1238950005
Full diff: 08a8c75946..1238950005

Changed dependencies:
* src/base: 675ae3f221..9590d17c3d
* src/build: 37f4a7895d..36a077c7b3
* src/ios: 5325eac8a6..342e327240
* src/third_party: 96dd61da5d..8ac1939776
* src/tools: 4087bb79d6..030de9aca2
DEPS diff: 08a8c75946..1238950005/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2984693002
Cr-Commit-Position: refs/heads/master@{#19103}
2017-07-20 13:24:08 +00:00
buildbot
6d1dfa775e Roll chromium_revision d5f03e2816..08a8c75946 (488153:488179)
Change log: d5f03e2816..08a8c75946
Full diff: d5f03e2816..08a8c75946

Changed dependencies:
* src/base: 824e0355b4..675ae3f221
* src/ios: a9cb7b94b6..5325eac8a6
* src/third_party: 5ab6ee9552..96dd61da5d
* src/tools: 812e9d49fa..4087bb79d6
DEPS diff: d5f03e2816..08a8c75946/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2983963002
Cr-Commit-Position: refs/heads/master@{#19102}
2017-07-20 10:17:48 +00:00
minyue-webrtc
12d30840d8 Correct the calculation of discard rate.
Bug: webrtc:7903
Change-Id: Ib5d6fd882a994dd542b616e5fe1c75710346dd31
Reviewed-on: https://chromium-review.googlesource.com/575057
Commit-Queue: Minyue Li <minyue@webrtc.org>
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19101}
2017-07-20 09:15:46 +00:00
buildbot
5ed09048f8 Roll chromium_revision 40e1a3f583..d5f03e2816 (488128:488153)
Change log: 40e1a3f583..d5f03e2816
Full diff: 40e1a3f583..d5f03e2816

Changed dependencies:
* src/testing: 357da70df8..718dcd6f4b
* src/third_party: 92223da18f..5ab6ee9552
* src/third_party/ffmpeg: f82eb1989c..d19b0ad9b2
* src/tools: f9c4b584f9..812e9d49fa
DEPS diff: 40e1a3f583..d5f03e2816/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2981363002
Cr-Commit-Position: refs/heads/master@{#19100}
2017-07-20 07:20:18 +00:00
buildbot
6492338bbb Roll chromium_revision d23ce0ebaa..40e1a3f583 (488066:488128)
Change log: d23ce0ebaa..40e1a3f583
Full diff: d23ce0ebaa..40e1a3f583

Changed dependencies:
* src/base: fc64af3cfa..824e0355b4
* src/build: 1f350fb9e7..37f4a7895d
* src/testing: c91aec97aa..357da70df8
* src/third_party: 25312a4274..92223da18f
* src/third_party/catapult: 7de63c2997..c7c5420fbc
* src/tools: c0b7268b31..f9c4b584f9
DEPS diff: d23ce0ebaa..40e1a3f583/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2981353002
Cr-Commit-Position: refs/heads/master@{#19099}
2017-07-20 04:27:57 +00:00
buildbot
817ebf15d4 Roll chromium_revision 281eabf35e..d23ce0ebaa (488004:488066)
Change log: 281eabf35e..d23ce0ebaa
Full diff: 281eabf35e..d23ce0ebaa

Changed dependencies:
* src/base: 9f5201e4c1..fc64af3cfa
* src/build: 1ca7c1462f..1f350fb9e7
* src/ios: 027f94d91d..a9cb7b94b6
* src/testing: 6ef63da453..c91aec97aa
* src/third_party: 0ed9e15911..25312a4274
* src/third_party/catapult: 5f09d557a1..7de63c2997
* src/tools: 16391e60a7..c0b7268b31
DEPS diff: 281eabf35e..d23ce0ebaa/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2985553002
Cr-Commit-Position: refs/heads/master@{#19098}
2017-07-20 01:41:07 +00:00
pbos
1777c5fec5 Move temporal-layer properties to FrameConfig.
Removes keying on pattern_idx inside TemporalLayers implementations for
several properties that are different between screencast temporal layers
and normal/default temporal layers.

This is a step towards sharing PopulateCodecSpecific between the layer
patterns and code deduplication to longer term be able to separate the
packetizer step from encoder settings, so that temporal patterns can be
used for asynchronous hardware encoders where there may be outstanding
frames.

BUG=chromium:702017, webrtc:7349
R=brandtr@webrtc.org

Review-Url: https://codereview.webrtc.org/2924993002
Cr-Commit-Position: refs/heads/master@{#19097}
2017-07-20 00:04:02 +00:00