Commit Graph

6479 Commits

Author SHA1 Message Date
Alex Chronopoulos
295d196e68 Bug 1509327 - Update libdav1d build file after import. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13427

--HG--
extra : moz-landing-system : lando
2018-11-30 19:07:07 +00:00
Alex Chronopoulos
04fe7aa697 Bug 1509327 - Update dav1d from upstream to 36b807a. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13426

--HG--
extra : moz-landing-system : lando
2018-12-01 21:59:40 +00:00
Dan Minor
032512790d Bug 1498205 - Move PlatformUIThread from rtc_base to video_engine; r=pehrsons
PlatformUIThread is only used by the video_engine code, so it makes sense to
move it there rather than maintain it as a diff against upstream webrtc.org.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 17:46:38 +00:00
Dan Minor
8684095f20 Bug 1497577 - Remove code to detect zero size windows; r=ng
This code was added by Bug 1196542 to fix a permanently failing test on our
Windows test machines. After this landed, upstream added a check for empty
windows in window_captuer_win.cc, so this should no longer be a problem on
Windows. As far as I know, this was never a problem on the other platforms,
so this code can be safely removed.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 20:54:51 +00:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jan-Ivar Bruaroey
01afd58c84 Bug 1492479 - Move MediaStreamError out of MediaManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13175

--HG--
extra : moz-landing-system : lando
2018-11-30 05:15:54 +00:00
Jan-Ivar Bruaroey
e3194aa305 Bug 1492479 - Have MediaManager::GetUserMedia() return a promise. r=achronop,jya
Differential Revision: https://phabricator.services.mozilla.com/D8008

--HG--
extra : moz-landing-system : lando
2018-11-30 05:13:58 +00:00
Andreea Pavel
8e973f56b2 Backed out 3 changesets (bug 1509327) for build bustages on a CLOSED TREE
Backed out changeset aeb00b8974a4 (bug 1509327)
Backed out changeset ea27440a2126 (bug 1509327)
Backed out changeset 9881fd46fde2 (bug 1509327)
2018-11-30 05:16:08 +02:00
Alex Chronopoulos
260020ff15 Bug 1509327 - Update libdav1d build file after import. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13427

--HG--
extra : moz-landing-system : lando
2018-11-29 22:26:11 +00:00
Alex Chronopoulos
d5ff9b025d Bug 1509327 - Update dav1d from upstream to 9e08ac7. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13426

--HG--
extra : moz-landing-system : lando
2018-11-29 22:24:05 +00:00
Andreas Pehrson
f0bf48464f Bug 1509548 - Make MediaStreamGraph pull data per track instead of per stream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13086

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:42 +00:00
Andreas Pehrson
a02fa011f0 Bug 1509548 - Remove the concept of a known tracks time from MediaStreamGraph. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12923

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:06 +00:00
Paul Vitale
34ca854b9d Bug 1194010 - Block webrtc socket creation on restricted ports r=drno
Port restriction is delegated to the io service.  Port 0 is explicitly
unrestricted.

NS_CheckPortSafety emits a warning which pollutes the gtests a bit.  It is only
tested if the port is not 0.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 15:40:44 +00:00
Dan Minor
7ca7e7696c Bug 1497552 - Remove support for 44100 Hz in dtmf_tone_generator; r=padenot
Assertions in NetEqImpl::SetSampleRateAndChannels prevent us from requesting
tones at 44100 Hz, so this code can be safely removed.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 12:59:01 +00:00
Dan Minor
b2dbaeae8f Bug 1497602 - Enable DirectX screen capturer on Windows; r=pehrsons
This enables support for the DirectX screen capturer. We use the default
DesktopCaptureOptions which do not set the option to use the DirectX screen
capturer so this change will have no effect with the current code.

For what it's worth, I tested enabling the DirectX option and it worked fine on my
system, but I don't see any reason to not follow the defaults provided by
webrtc.org in this case.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 13:27:23 +00:00
Nico Grunbaum
41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

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

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Gabriele Svelto
19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Dan Minor
7d22c8090a Bug 1509994 - Regenerate moz.build files; r=pehrsons
Depends on D13095

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:34:05 +00:00
Dan Minor
f4eadf5478 Bug 1509994 - Update gn generated json files (part 2); r=pehrsons
Depends on D13094

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:33:47 +00:00
Dan Minor
2b6f177a68 Bug 1509994 - Update gn generated json files; r=pehrsons
Depends on D13092

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:32:52 +00:00
Dan Minor
440fc58998 Bug 1509994 - Move video_engine from webrtc to systemservices; r=pehrsons
Historically this code was part of webrtc.org but has since been removed
from upstream. Rather than maintaining it as a local diff against upstream,
we should just move it to where it is used.

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

--HG--
rename : media/webrtc/trunk/webrtc/video_engine/browser_capture_impl.h => dom/media/systemservices/video_engine/browser_capture_impl.h
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.cc => dom/media/systemservices/video_engine/desktop_capture_impl.cc
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.h => dom/media/systemservices/video_engine/desktop_capture_impl.h
extra : moz-landing-system : lando
2018-11-28 20:16:42 +00:00
Nils Ohlmeier [:drno]
1319a0b5d5 Bug 1507700: allow incoming STUN requests. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D12384

--HG--
extra : moz-landing-system : lando
2018-11-28 20:13:17 +00:00
Ehsan Akhgari
ca162bee20 Bug 1508472 - Part 4: Fourth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 09:16:55 +00:00
Byron Campen [:bwc]
3cc2282db8 Bug 1507216: Make sure AudioConduit doesn't re-create the recv stream without de-registering the old one. r=dminor
Make a cleaner distinction between having a recv stream that is inactive, and no recv stream at all. Requires some modification to local RTC extension configuration, because of a test-case that assumed StopReceiving/StartReceiving would re-create the recv stream as opposed to simply restarting it.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 19:56:25 +00:00
Alex Chronopoulos
e821d283fa Bug 1493400 - Create build files for dav1d. r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D12163

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:31 +00:00
Alex Chronopoulos
8046b715cd Bug 1493400 - Update dav1d from upstream to d27598e. r=TD-Linux
Depends on D9607

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

--HG--
rename : third_party/dav1d/include/compat/stdatomic.h => third_party/dav1d/include/compat/msvc/stdatomic.h
rename : third_party/dav1d/src/arm/mc_init.c => third_party/dav1d/src/arm/mc_init_tmpl.c
rename : third_party/dav1d/src/x86/ipred_init.c => third_party/dav1d/src/x86/ipred_init_tmpl.c
rename : third_party/dav1d/src/x86/itx_init.c => third_party/dav1d/src/x86/itx_init_tmpl.c
rename : third_party/dav1d/src/x86/loopfilter_init.c => third_party/dav1d/src/x86/loopfilter_init_tmpl.c
extra : moz-landing-system : lando
2018-11-27 14:04:37 +00:00
Thomas Daede
e6a11914f8 Bug 1493400 - Import dav1d into tree. r=glob
Differential Revision: https://phabricator.services.mozilla.com/D9607

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:30 +00:00
Coroiu Cristina
9f7204e754 Merge inbound to mozilla-central a=merge 2018-11-27 00:34:45 +02:00
byron jones
e26ef89bc9 Bug 1509867 - add moz.yaml to libpng, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D12901

--HG--
extra : moz-landing-system : lando
2018-11-26 14:32:38 +00:00
byron jones
cd4fa62854 Bug 1507051 - replace libyuv's README_MOZILLA with moz.yaml; r=jesup
Replace README_MOZILLA with moz.yaml, various fixups for update.py, and create
a missing patch file from Bug 1491848.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 13:00:07 +00:00
Byron Campen [:bwc]
97690b385d Bug 1494312 - Part 3: Expose RLog stuff via MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11777

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:51 +00:00
Byron Campen [:bwc]
e6218aee8a Bug 1494312 - Part 2: Make the internal PC stats API based on MozPromise. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D11776

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:52 +00:00
Byron Campen [:bwc]
69e7155b3a Bug 1494312 - Part 1: Remove unused nsresult returns from MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11775

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:23 +00:00
Andreas Pehrson
0c346714e6 Bug 1423241 - Remove fake-class-based webrtc unittests. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D12285

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:07 +00:00
Andreas Pehrson
4213b7db86 Bug 1423241 - Refactor DecodedStream. r=jya
This removes DecodedStream's use of MediaStreamListener in favor of
MediaStreamTrackListener. This change has however rippled through to a lot
more cleanup, per below.

This moves the MediaStreamTrack lifetime ownership for captured
HTMLMediaElements from the media element to DecodedStream, where the
MediaStreamGraph-side tracks are already created and ended today.

This makes MediaStreamTrack creation explicit across the entire codebase and
lets us remove the MediaStreamTrackSourceGetter class and the infrastructure
of adding MediaStreamTracks after they've already been created in the graph
from DOMMediaStream.

With track ownership, and thus TrackID allocation ownership, happening
exclusively in DecodedStream for its output tracks, we also stop throwing
away and recreating the SourceMediaStream to which we feed data on seek.
This is one step closer to fixing bug 1172394 and spec compliance of
HTMLMediaElement.captureStream().

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

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:03 +00:00
Andreas Pehrson
e80887ac8d Bug 1423241 - Return appended StreamTime samples appended through AppendToTrack. r=padenot
This allows DecodedStream to accurately track how many samples have been
appended to a track, even with resampling enabled.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:48 +00:00
Andreas Pehrson
80cde33d12 Bug 1423241 - Always add tracks at the stream's current time. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12271

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:42 +00:00
Andreas Pehrson
bae0391522 Bug 1423241 - Move MediaPipeline from MediaStreamListener to MediaStreamTrackListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9104

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:30 +00:00
Jean-Yves Avenard
e9ab7f5485 Bug 1505284 - P4. Split preferences to enable WebRTC with MediaDataDecoder. r=padenot
So that we can disable just the H264 decoders while allowing VP8 or VP9.

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

--HG--
extra : moz-landing-system : lando
2018-11-22 16:31:16 +00:00
Dan Minor
c5bce82ff0 Bug 1507413 - Increase number of media streams supported by sipcc; r=bwc
This also removes SDP_MAX_LINE_LEN which is unused.

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

--HG--
extra : moz-landing-system : lando
2018-11-21 20:00:19 +00:00
byron jones
bb7a59d509 Bug 1509236 - replace libsoundtouch's README_MOZILLA with moz.yaml r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12624

--HG--
extra : moz-landing-system : lando
2018-11-22 09:42:20 +00:00
Nico Grunbaum
0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Dan Minor
118f324018 Bug 1411681 - Cherrypick 6728003bcf5657da8f9ed52ad84f46c1197ce54b from upstream webrtc.org; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D12417

--HG--
extra : moz-landing-system : lando
2018-11-20 12:07:07 +00:00
Dan Minor
a88b07525e Bug 1406941 - Add unittests for configuring AudioConduit; r=padenot
Depends on D12017

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:35 +00:00
Dan Minor
5efc93cb87 Bug 1406941 - Make AudioConduit more easily unit testable; r=padenot
This makes Init and DeleteChannels virtual and mRecvChannelProxy and
mSendChannelProxy protected. This will allow unit test code to override
the creation of channels so that we can use a mocked ChannelProxy instead.

Depends on D12016

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:43 +00:00
Dan Minor
80bc9e8334 Bug 1406941 - Remove unused error handling code from SetLocalRTPExtensions; r=padenot
Rather than returning an error, the channel proxies have asserts that the
underlying calls to the channel objects succeeded.

Depends on D12015

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:46:15 +00:00
Dan Minor
6c797e79ae Bug 1406941 - Set opus maxplaybackrate in AudioConduit; r=padenot
This was regressed by the branch 64 update. The parameter is used in
audio_encoder_opus.cc.

Depends on D12014

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:16 +00:00
Dan Minor
f064d3d180 Bug 1406941 - Fix typo in videoconduit_unittests.cpp; r=padenot
Depends on D12013

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:25 +00:00
Dan Minor
a9a121b9e9 Bug 1406941 - Remove unused fields from JsepAudioCodecDescription; r=bwc
Packet size and rate are no longer configured inside AudioConduit, so there is
no reason to continue to define them here. We now take the defaults provided
by webrtc.org.

Depends on D12012

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:44:16 +00:00
Dan Minor
450258b20a Bug 1406941 - Remove unused fields from AudioCodecConfig; r=padenot
With the branch 64 update we no longer configure packet size and rate
ourselves. Instead, we use the defaults provided in acm_codec_database.cc.
This removes the unused fields from AudioCodecConfig, the next commit does the
same thing for JsepAudioCodecDescription.

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:33 +00:00