Commit Graph

14280 Commits

Author SHA1 Message Date
Bryce Van Dyk
d9995b9edc Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya
Update mp4parse-rust update script and pull the new version.

This update changes the mp4parse C-API. Specifically, each track can now
have multiple sample descriptions. Previously we'd just exposed the first for
the entire track, and if others were available they were not exposed via the
API. Because of the API change, we update the C++ interface with mp4parse-rust.

We now inspect the sample info to make sure they're consistent with the parsers
expectations:
- Only a single codec is present for a track, multiple codecs in a track will
  result in us returning an error.
- Only 0 or 1 crypto info is present for a track, more than one set of info will
  result in us returning an error.

We still generalize some of the first sample info to the samples of the track,
as we did before this patch. However, we will now catch the above cases
explicitly.

We now handle crypto information if it is not present on the first sample info.
The parser will iterate through sample infos and use the first set of crypto
info it finds (and fail if it finds 2+).

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

--HG--
extra : moz-landing-system : lando
2018-12-12 15:04:18 +00:00
Dorel Luca
d1d958a798 Backed out 4 changesets (bug 1512280) for bmsvc build bustage
Backed out changeset abe934612616 (bug 1512280)
Backed out changeset 9463a1a3d790 (bug 1512280)
Backed out changeset 9a68c5f1ca0d (bug 1512280)
Backed out changeset 616721cad893 (bug 1512280)
2018-12-12 07:22:49 +02:00
Jan-Ivar Bruaroey
826b382038 Bug 1512280 - Less verbose code in MediaManager in places. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13986

--HG--
extra : moz-landing-system : lando
2018-12-12 04:22:06 +00:00
Jan-Ivar Bruaroey
3120eb8814 Bug 1512280 - Add out-parameter to EnumerateDevicesImpl(); clearer semantics and flattens things. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13985

--HG--
extra : moz-landing-system : lando
2018-12-12 04:00:42 +00:00
Jan-Ivar Bruaroey
b43cd8e1dd Bug 1512280 - Make LOG macros clang-format friendlier. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13859

--HG--
extra : moz-landing-system : lando
2018-12-12 02:36:51 +00:00
Jan-Ivar Bruaroey
2fc3a23b7c Bug 1512280 - Fix some nits and shorten MediaManager::GetUserMedia(). r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D13858

--HG--
extra : moz-landing-system : lando
2018-12-12 02:23:57 +00:00
alwu
aba79e9edc Bug 1511235 - part2 : add test. r=jya,baku
Add new webidl method for testing only and a test.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 02:16:55 +00:00
alwu
7b4432b505 Bug 1511235 - part1 : suspend video decoding for video whose visibility state is UNTRACK. r=jya
If video has not been within the potential visible range (which is larger than viewport) yet, its visibility state won't
be updated and would stay in 'UNTRACK'. As those kinds of video are still invisible to users, we don't need to decode
any video frames, we can suspend their video decoding until they're going to be visible.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 18:21:13 +00:00
alwu
dd8abd37d5 Bug 1512506 - Prevent MDSM from dispatching lots of audio decoding tasks when seeking directly to EOS during looping. r=jya
To make sure media sink starts from the correct position, otherwise, we would incorrectly estimate the decoded audio
duration when we directly seek looping audio to EOS. That would results in MDSM continually dispatching decoding tasks
even if we've enough data.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 01:52:06 +00:00
Dorel Luca
58cd1ee36a Backed out changeset b3a9872c08d7 (bug 1513042) for Gtest failure
--HG--
extra : rebase_source : 6930ed8e1ea84af3a83f380279138d75ce2bde30
2018-12-12 02:13:45 +02:00
Bryce Van Dyk
74daa628bc Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya
Update mp4parse-rust update script and pull the new version.

This update changes the mp4parse C-API. Specifically, each track can now
have multiple sample descriptions. Previously we'd just exposed the first for
the entire track, and if others were available they were not exposed via the
API. Because of the API change, we update the C++ interface with mp4parse-rust.

We now inspect the sample info to make sure they're consistent with the parsers
expectations:
- Only a single codec is present for a track, multiple codecs in a track will
  result in us returning an error.
- Only 0 or 1 crypto info is present for a track, more than one set of info will
  result in us returning an error.

We still generalize some of the first sample info to the samples of the track,
as we did before this patch. However, we will now catch the above cases
explicitly.

We now handle crypto information if it is not present on the first sample info.
The parser will iterate through sample infos and use the first set of crypto
info it finds (and fail if it finds 2+).

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

--HG--
extra : moz-landing-system : lando
2018-12-11 20:55:26 +00:00
Jean-Yves Avenard
ed5b2cd92a Bug 1513227 - P2. Remove unused files. r=jolin
Depends on D14158

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

--HG--
extra : moz-landing-system : lando
2018-12-11 17:38:53 +00:00
Jean-Yves Avenard
7f7e06e3f1 Bug 1513227 - P1. Use correct constant to determine if HW decoding is enabled. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D14158

--HG--
extra : moz-landing-system : lando
2018-12-11 17:37:47 +00:00
Jean-Yves Avenard
3d5c3c9538 Bug 1512456 - P4. Replace assert with MOZ_ASSERT. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D14027

--HG--
extra : moz-landing-system : lando
2018-12-11 10:46:25 +00:00
Jean-Yves Avenard
cf0ff88211 Bug 1512456 - P1. Don't use GenericPromise with MediaSink. r=alwu
The VideoSink shares the AudioSink's own EndedPromise to notify its user that it has ended. As such, the MozPromise used must be non-exclusive.
Using the GenericPromise for such purpose only hid that requirement.

We also remove the MediaSink from the media namespace, and clarify the naming of some arguments and class members to accurately describe what they do.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 10:44:51 +00:00
Jean-Yves Avenard
48517afae6 Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.

While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Mark Banner
8c00ef3f30 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13746

--HG--
extra : moz-landing-system : lando
2018-12-11 13:15:08 +00:00
Dan Minor
71d10e00cf Bug 1497573 - Create desktop_capturer_cursor_composer_ lazily; r=ng
The webrtc.org capturer implementations do not allow Start to be called more
than once. Previously we worked around this by adding a Stop method that was
called from StopCapture. With this change, we instead free the capturer in
StopCapture and create or re-create it as needed from StartCapture or
FocusOnSelectedSource.

Depends on D14066

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

--HG--
extra : moz-landing-system : lando
2018-12-10 17:27:42 +00:00
Sylvestre Ledru
ad75e912fb Bug 1512961 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-10 19:23:16 +00:00
John Lin
9249bf1d0a Bug 1495053 - p3: implement MediaDrmCDMProxy::SetServerCertificate(). r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7792

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:34 +00:00
John Lin
356abac240 Bug 1495053 - p2: add setServerCertificate() to Java/JNI proxy classes. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7791

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:10 +00:00
John Lin
eb4a57903b Bug 1510424 - fix AAC and FLAC EME support configuration. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13135

--HG--
extra : moz-landing-system : lando
2018-12-07 14:40:50 +00:00
Nico Grunbaum
4380b01ee3 Bug 1512517 - update WebRTC stat deprecation messages r=jib
Update WebRTC stat deprecation messages which were originally targeting 65, which are now targeting 66.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:48:31 +00:00
Jean-Yves Avenard
a3f78d31a5 Bug 1510265 - P2. Don't use AllPromiseType in GMPServiceParent. r=gerald
It's not needed, and only makes code harder to follow.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 20:16:15 +00:00
Jean-Yves Avenard
44594dd77a Bug 1510265 - P1. Enforce template-parameter classes restrictions in MozPromise. r=gerald
And some required fixes to make things compile.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 16:26:01 +00:00
Jan-Ivar Bruaroey
0979860740 Bug 1512197 - Temporary fix for incorrect sharing of MozPromiseHolder in MediaManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13847

--HG--
extra : moz-landing-system : lando
2018-12-05 21:46:51 +00:00
Jean-Yves Avenard
590f06d6e0 Bug 1509875 - P1. Retrieve extended profile from mp4parse. r=kinetik
Depends on D13765

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

--HG--
extra : moz-landing-system : lando
2018-12-05 16:54:21 +00:00
Ciure Andrei
ed617be144 Backed out 2 changesets (bug 1512052)for causing build bustages CLOSED TREE
Backed out changeset 4773a3f46c22 (bug 1512052)
Backed out changeset 2f48c5afbe57 (bug 1512052)

--HG--
rename : browser/components/attribution/test/xpcshell/.eslintrc.js => browser/components/attribution/test/.eslintrc.js
2018-12-05 05:47:39 +02:00
Mark Banner
8256078237 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Depends on D13745

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

--HG--
extra : moz-landing-system : lando
2018-12-04 22:27:35 +00:00
Paul Adenot
8104b9b6eb Bug 1145816 - Reenbable test_mediaElementAudioSourceNodePassThrough.html on Android. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D13430

--HG--
extra : moz-landing-system : lando
2018-11-29 19:31:16 +00:00
Ciure Andrei
2edebf41a2 Merge inbound to mozilla-central. a=merge 2018-12-02 11:46:09 +02:00
Alex Chronopoulos
e1c6dec154 Bug 1509327 - Use timing and color information from decoded picture in dav1d wrapper. r=jya
Latest dav1d version supports to store the timing information in undecoded frame and restore it later from decoded picture. This can provide more accurate timing especially during drain. In additionto that, colorspace information is set according to the size of the image. Finally this patch addresses some style comments.

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

--HG--
extra : moz-landing-system : lando
2018-12-01 22:03:29 +00:00
Coroiu Cristina
1ca919f882 Merge mozilla-central to autoland a=merge 2018-12-01 07:55:13 +02: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
Jan Andre Ikenmeyer [:darkspirit]
318c8c660e Bug 1477037 - Add NULL check on aArgv. r=froydnj 2018-12-01 02:08:42 +01: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
ae9fd82ada Bug 1492479 - Simplify MediaDeviceSetRefCnt by removing one redundant pointer indirection. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D11842

--HG--
extra : moz-landing-system : lando
2018-11-30 05:15:34 +00:00
Jan-Ivar Bruaroey
2cbbb1a103 Bug 1497175 - Remove media::Pledge. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8011

--HG--
extra : moz-landing-system : lando
2018-11-30 05:15:00 +00:00
Jan-Ivar Bruaroey
7cc33e93cf Bug 1497175 - Have DOMMediaStream::TrackPort::BlockSourceTrackId() return a promise. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D8010

--HG--
extra : moz-landing-system : lando
2018-11-30 05:14:40 +00:00
Jan-Ivar Bruaroey
8ce38b2a13 Bug 1475209 - Have MediaManager::EnumerateDevices() return a promise. r=achronop,jya
Differential Revision: https://phabricator.services.mozilla.com/D8009

--HG--
extra : moz-landing-system : lando
2018-11-30 05:14:05 +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
Razvan Maries
12299139d5 Backed out changeset 0e1dbfd10378 (bug 1501709) for build bustages on Windows platform, CLOSED TREE. 2018-11-30 06:58:06 +02:00
Arnaud Bienner
6a459e7170 Bug 1501709 - AudioWorkletGlobalScope::RegisterProcessor: check descriptors and convert them to an internal representation. r=karlt,baku,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D11741

--HG--
extra : moz-landing-system : lando
2018-11-30 02:55:06 +00:00
Karl Tomlinson
0138ac87a9 Bug 1476514 store AudioContext destination stream on AudioWorkletImpl r=padenot
The destination stream will provide currentFrame for AudioWorkletGlobalScope on the worklet execution thread.

On the control thread, it supports messages via the MediaStreamGraph and identifies the associated AudioContext.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 02:28:34 +00:00
Karl Tomlinson
5995caa7e9 Bug 1476514 return concrete AudioNodeStream instead of base from DestinationStream() r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13218

--HG--
extra : moz-landing-system : lando
2018-11-30 02:26:29 +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
74a439c923 Bug 1509327 - Use timing and color information from decoded picture in dav1d wrapper. r=jya
Latest dav1d version supports to store the timing information in undecoded frame and restore it later from decoded picture. This can provide more accurate timing especially during drain. In additionto that, colorspace information is set according to the size of the image. Finally this patch addresses some style comments.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 19:08:03 +00:00
Tooru Fujisawa
7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0 Bug 1511383: Update vim modelines after clang-format; r=sylvestre
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)

--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00