Commit Graph

10407 Commits

Author SHA1 Message Date
Dan Banner
cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Wes Kocher
2986c817dc Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Wes Kocher
25d50f2c30 Merge inbound to central, a=merge 2017-04-12 14:39:09 -07:00
Dan Minor
4146b32212 Bug 1264343 - Only run test_peerConnection_scaleResolution.html with VP8 codec on Android; r=jib
We don't currently support H.264 on Android in automation, but we can improve
our test coverage by running the VP8 portion of this test in the meantime.

MozReview-Commit-ID: 3SPCTaqlfMk

--HG--
extra : rebase_source : cae3251f489e45f56b04378074083d6b4fd24666
2017-04-07 08:42:23 -04:00
Paul Adenot
e34a6067fb Bug 1355798 - Fix a division by zero in PannerNode.cpp. r=dminor
This happens when the listener and a PannerNode are at the same position, and
a cone gain has been specified.

The issue is that our implementation of 3d vector normalization does not
special-case vectors that have all components at zero, that dividing by zero
results in infinity, and multiplying by infinity produces NaN.

This end up setting the volume member for the output AudioChunk to NaN, and this
breaks everything downstream, of course. In practice, silence is output, with
some clicks (on linux/pulse at least).

MozReview-Commit-ID: 8u54LixvYMu

--HG--
extra : rebase_source : 3b37970b42e5c60cd6e39d3197b580edc63b5ac9
2017-04-12 15:44:19 +02:00
JW Wang
f75dd3437a Bug 1353644 - change the type of EXHAUSTED_DATA_MARGIN_USECS to TimeUnit. r=kaku
MozReview-Commit-ID: CXc9DjoUc4m

--HG--
extra : rebase_source : 17a6eadd1e873a24aea2b1b8c2bbd2edfa04f9d7
extra : intermediate-source : 36a9db5c9107bdefafa2090b3cfb4dfcafb6bcea
extra : source : 5b9f12c027fc2363041363ea26bf4b9df3787cc1
2017-03-29 15:04:50 +08:00
Kaku Kuo
172d429303 Bug 1354465 P1 - dispatch a mozvideoonlyseekbegin event while starting a video-only seek; r=jwwang
MozReview-Commit-ID: 6PjQs88vUV2

--HG--
extra : rebase_source : b0d06e8bd5b5a3e84adaade0ea8f2fa98a2af0c3
2017-04-07 16:11:34 +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
John Lin
6e70175957 Bug 1349883 - part 4: strengthen precondition of ReturnDecodedData(). r=jya
MozReview-Commit-ID: 2jLNlrHEE0b

--HG--
extra : rebase_source : af780e3b10f915302aa1deaba18a324266fa1dc0
2017-04-07 17:17:17 +08: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
JW Wang
3b2675d90b Bug 1354389. P3 - fix the callers to handle changes when dropping the monitor. r=cpearce
No change is needed for MediaCacheStream::Read() which calls |mon.Wait()|
and has handled changes when dropping the monitor.

MozReview-Commit-ID: 40h0cHn1WFx

--HG--
extra : rebase_source : 5447339ed7751f3171458d8e5fb1e5f6fe3a786e
2017-04-10 13:57:13 +08:00
JW Wang
64b0fbf69a Bug 1354389. P2 - remove the unused function. r=cpearce
MozReview-Commit-ID: 4Mx89MxJmVO

--HG--
extra : rebase_source : 0427e7597dcf7087485945fd283e91e81de9b912
2017-04-10 11:56:35 +08:00
JW Wang
8a3ec7649b Bug 1354389. P1 - drop the monitor before doing IO. r=cpearce
We don't want to do IO while holding the monitor which might be acquired
on the main thread in MediaCache::Update().

MozReview-Commit-ID: 4cHM35K8Twb

--HG--
extra : rebase_source : 5a00332933abd1812f64fa57c9f5e2947ec979ae
2017-04-10 11:55:26 +08:00
Gerald Squelart
1564d36454 Bug 1341483 - MP4Metadata::GetTrackIndice() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: BIgvy5eKNJl

--HG--
extra : rebase_source : 251d61df6136ab46d8efe33edd4199fa5aabd2f0
2017-03-15 16:55:50 +11:00
Gerald Squelart
2ea7fba755 Bug 1341483 - MP4Metadata::Crypto() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: EywDv5JuDK6

--HG--
extra : rebase_source : 017cd996817b1aaa78f5c7bed9fa05da3baf442c
2017-02-27 21:32:03 +11:00
Gerald Squelart
7961918dfc Bug 1341483 - MP4Metadata::GetTrackInfo() now also returns a success/error code - r=kinetik
MozReview-Commit-ID: KQ3fJzZkrGW

--HG--
extra : rebase_source : b9f4324f50c81f4945c0a47e63af0cb616ba013e
2017-02-27 17:05:41 +11:00
Gerald Squelart
c93b449e6b Bug 1341483 - MP4Metadata::GetNumberTracks() now also returns a success/error code - r=kinetik
In addition to the returned MediaResult, a special number-of-tracks value
(not just 0) indicates an unrecoverable error.

For Rust-vs-Stagefright comparison purposes, an error is considered the same
as 0 (because Stagefright never returns errors, but Rust may, so complaining
about that would be too noisy, and useless to us.)

MozReview-Commit-ID: IwadWSOIWr4

--HG--
extra : rebase_source : 29f53ee6a02a0431adb0b615a122a4e7b480108c
2017-02-27 13:36:59 +11:00
Gerald Squelart
1bbbbd132d Bug 1341483 - MP4Metadata::Metadata() now also returns a success/error code - r=kinetik
The returned MediaResult is used as error or warning in MP4Demuxer::Init().

MozReview-Commit-ID: Bnv4xG8bCJ4

--HG--
extra : rebase_source : c1952ed61396834b0cd7da58c9b64481a5c46ab1
2017-02-27 13:01:11 +11:00
Gerald Squelart
4101482ad6 Bug 1343437 - 'media.playback.warnings-as-errors' pref - r=jya
If 'media.playback.warnings-as-errors' is true, demuxing and decoding warnings
(i.e., non-fatal errors) will be treated as errors, causing playback to fail.

Currently set to false by default.

This could be later changed to catch and diagnose more issues.

MozReview-Commit-ID: BTaZ6TbIbNG

--HG--
extra : rebase_source : bacc24a46f588dd344e6d46178ae2d2c58882fcb
2017-03-03 16:10:48 +11:00
Gerald Squelart
7dca1275ff Bug 1343437 - TBM::OnDemuxer{Init,Reset}Done forward non-NS_OK MediaResult to HTMLMediaElement::DecodeWarning - r=jya
Similarly to the MediaFormatReader, TrackBuffersManager can forward warnings
from the demuxer initialization to the associated HTMLMediaElement.

Note that errors (sent to OnDemuxerInitFailed) are currently *not* forwarded
to the HTMLMediaElement by design. In the future, we may want to add this
feature so that mediasource errors can also be reported to webcompat.

MozReview-Commit-ID: GjluZbpmC9q

--HG--
extra : rebase_source : 57c02f86c56f054f209094d9697209300acc1288
2017-03-14 01:08:39 +11:00
Gerald Squelart
f717376fb5 Bug 1343437 - MFR::OnDemuxerInitDone forwards non-NS_OK MediaResult to HTMLMediaElement::DecodeWarning - r=jya
The MediaFormatReader now takes the MediaResult from the Demuxer::Init promise
resolution, and if there are no other errors but the MediaResult is not NS_OK
it will forward that warning to the decoder owner (i.e., the associated
HTMLMediaElement).

MozReview-Commit-ID: 5rTmzqqPLI0

--HG--
extra : rebase_source : 5f81db185a01c012bf0418af2a42986db14a7e6f
2017-03-06 15:22:17 +11:00
Gerald Squelart
0cb411e982 Bug 1343437 - MP4Demuxer::Init resolves with a MediaResult - r=jya
If MP4Demuxer::Init detects some recoverable error (e.g., invalid tracks when
others may still be usable), it will eventually Resolve the promise with the
first warning.

Later on, errors/warnings from the MP4Metadata parser will also be handled, to
provide even better diagnostics.

MozReview-Commit-ID: E9Rly9dhXW3

--HG--
extra : rebase_source : cae214d0c80297bd61156dc1a305a186da0974fe
2017-02-27 10:10:28 +11:00
Gerald Squelart
c0473802e5 Bug 1343437 - MediaDataDemuxer::InitPromise resolve-value is now a MediaResult - r=jya
In case of successful initialization, there could still be some warning about
a recoverable error. To carry more information about this potential warning,
the resolve-value type of the promise is changed from nsresult to MediaResult.

Existing code doesn't need to be changed:
- In Resolve() calls, the stored MediaResult can implicitly be constructed from
an nsresult -- always NS_OK at the moment anyway.
- In following Then(), the promise's MediaResult can implicitly be converted to
an nsresult.

Future patches will modify some of the Resolve's and Then's, to forward warning
details to some Decoder Doctor object...

MozReview-Commit-ID: J0bXDFxXQHQ

--HG--
extra : rebase_source : cb10cdfa80e34783a459e5946b746b9f1920bd87
2017-02-28 16:24:57 +11:00
Alex Chronopoulos
bffcec9307 Bug 1354506: Disable 3 media recorder test on android. r=padenot
MozReview-Commit-ID: 9Jjii3i5a2a

--HG--
extra : rebase_source : 949954295fef156a19a680e532068c28f488fd88
2017-04-10 12:18:33 +03:00
Jean-Yves Avenard
99c84ca5b6 Bug 1354090: P4. Only assume we have an init segment with moov box. r=gerald
By ISOBMFF spec, an init segment is made of an ftyp and a moov box. However the ftyp box serve little purpose as such and only the moov atom contains essential information.

Some streams incorrectly add ftyp box all accross the content, despite the ISOBMFF spec stating (4.3.1):
Box Type: `ftyp’
Container: File
Mandatory: Yes
Quantity: Exactly one (but see below)

Additionally, with this change the ftyp box may not be present in content following earlier spec. So we will now be able to play them.

MozReview-Commit-ID: KijlV5pPLby

--HG--
extra : rebase_source : c5d5ec643879b28b3fdf1b97364d856467ba5948
2017-04-07 15:37:18 +02:00
Jean-Yves Avenard
b0c4fd9119 Bug 1354090: P3. Properly offset the media and init byte ranges. r=gerald
The init and media segment byte ranges were not offset by the amount of bytes currently parsed. Whenever a new init segment signature was seen we would recreate a container parser.
This would lead to invalid offsets later.

MozReview-Commit-ID: 8U7kTa7SK8O

--HG--
extra : rebase_source : 6b6e665e01db2685a423558b2d09ce36b9052974
2017-04-07 12:04:24 +02:00
Jean-Yves Avenard
137766e6ad Bug 1354090: P2. Add operator+(val). r=gerald
Such that:
[x, y] + a = [x+a, y+a]

MozReview-Commit-ID: HlyI9KmVtTg

--HG--
extra : rebase_source : ef5d9e942d365fbcffd796a1762bd89a042272e7
2017-04-07 11:31:00 +02:00
Jean-Yves Avenard
fa2ce72185 Bug 1354090: P1. Fix coding style. r=gerald
MozReview-Commit-ID: ByBHvxM3kfc

--HG--
extra : rebase_source : e96be6001fb38e1ff45ca2a5c27975c76b85f42b
2017-04-07 10:55:15 +02:00
Alfredo.Yang
6771c4ebbd Bug 1354963 - enable rust mp4 parser on linux release. r=kinetik
MozReview-Commit-ID: D0CzBQYL8mz

--HG--
extra : rebase_source : 6c24f85a2cb5075fba8426dafd323d217a674cb9
2017-04-10 09:23:21 +08:00
JW Wang
d64d62164c Bug 1194891. P4 - close all streams associated with private browsing windows when PB is done. r=cpearce
MozReview-Commit-ID: MmvMuzuFX3

--HG--
extra : rebase_source : d5f98bd815323e9a79959af49a9585d8f6108d28
extra : source : 7a82be361a50b950b579a5f6b1872d10de80d76f
2017-04-06 16:39:14 +08:00
JW Wang
1964dd6b54 Bug 1194891. P3 - don't share data for elements in PB mode. r=cpearce
MozReview-Commit-ID: 1B2RK8biYof

--HG--
extra : rebase_source : 62a4233755adc59df69c521fe9bf76df902b0d05
extra : source : c22dea23fd02e5887f84c6502874a31e8728d4b4
2017-04-06 16:52:14 +08:00
JW Wang
09e1217347 Bug 1194891. P2 - don't write any data for a closed stream. r=cpearce
MozReview-Commit-ID: 3buPoKxVXbH

--HG--
extra : rebase_source : d28ade4b90d63deb386e4922b3a1251dfd878a31
extra : source : dd4013c9d706212cad669a1fe124af03beb4a32e
2017-04-06 16:24:44 +08:00
JW Wang
84734bb3c0 Bug 1194891. P1 - plumb 'isPrivateBrowsing' down to MediaCacheStream. r=cpearce
MozReview-Commit-ID: EBKkOfK7K1p

--HG--
extra : rebase_source : 82daa16ffa0809a4de660867ab61d9a9efdf2a83
extra : source : b61d0c22837a6ee8085c95afbd1370ffa8286e6e
2017-04-06 16:20:00 +08:00
Jean-Yves Avenard
efb450b903 Bug 1353088: Ensure we don't attempt to process garbage data. r=gerald
MozReview-Commit-ID: AryC34eLjOg
2017-04-09 09:00:40 +02:00
Sebastian Hengst
548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
Paul Adenot
57ca60efa3 Bug 1341549 - Label runnables in dom/media/webaudio/ r=billm
MozReview-Commit-ID: 1SG1KoVjivS

--HG--
extra : rebase_source : 3a4eb33a3402eca8a6fce31cd90e8edcc81c3eda
2017-04-04 13:47:47 +02:00
Alex Chronopoulos
8e25f6f497 Bug 1232043 - Update/create mochitests for recorder resolution change. r=pehrsons
MozReview-Commit-ID: IinhX2xFI42
2017-04-07 13:14:19 +03:00
Alex Chronopoulos
84557a32ed Bug 1232043 - Reconfigure VP8 encoder when resolution change. r=pehrsons
MozReview-Commit-ID: GanvKEggNA7
2017-04-07 13:13:52 +03:00
Wes Kocher
7da1f4c235 Merge m-c to inbound a=merge 2017-04-06 15:30:43 -07:00
JW Wang
eef6bbc8da Bug 1354444 - use shorter names for logging macros in FileBlockCache. r=kaku
MozReview-Commit-ID: 4uyYRjBupfN

--HG--
extra : rebase_source : 4b20ce71ceacfab6d6badb69e154fafbecdddb91
extra : source : dbce56553d04274b381a48efafbd2683a9cade9c
2017-04-07 15:05:30 +08:00
Chris Pearce
a11f81c232 Bug 1349746 - Ensure we close media cache's temporary file if the cache shuts down while we're waiting for the FD to arrive. r=jwwang
MozReview-Commit-ID: HNXt3pYb1Iv

--HG--
extra : rebase_source : 5dccbbb4bf37bf31da145d70abab7373871a1413
2017-04-07 17:51:47 +12:00
JW Wang
3bffe4d29b Bug 1353607. P12 - replace |TimeUnit::ToMicroseconds()*double| with |TimeUnit::MultDouble()|. r=kikuo
MozReview-Commit-ID: 3QIBCCNf5G0

--HG--
extra : rebase_source : 2fc32888b25a8e99280719f9c05b8ad6e32a6ace
extra : intermediate-source : afdfb27d0351942c5d7cb40f2c5de41bcc17be34
extra : source : a21cc354bbb31fc93985c164d81d078bc48c830e
2017-03-29 15:00:46 +08:00
JW Wang
245c0bb647 Bug 1353607. P11 - use TimeUnit in RecomputeDuration(). r=kikuo
MozReview-Commit-ID: F16erI0580V

--HG--
extra : rebase_source : 19d992ea016dee69d6c65c6749d2df06e2226d4d
extra : intermediate-source : d08c41a590eef881e22b20bcadfb85d2ef089419
extra : source : 4e5a36536d34e51fbe92c640199fee6f5c8c712a
2017-03-29 14:52:08 +08:00
JW Wang
df0ecce228 Bug 1353607. P10 - use TimeUnit in DropAudioUpToSeekTarget(). r=kikuo
MozReview-Commit-ID: 42HtGkCUsYI

--HG--
extra : rebase_source : 833a41333044936aec9b255b6480d594e5e29ff6
extra : intermediate-source : 3f7df8016e9f6b15a2be45216716ed9260dfd903
extra : source : 64bd1f792e8afa42dd3c87bc980d88d5fc557d5a
2017-03-29 14:46:15 +08:00
JW Wang
519fb03dfd Bug 1353607. P9 - change the underlying type of mCurrentPosition to TimeUnit. r=kikuo
MozReview-Commit-ID: ffquOIFlp3

--HG--
extra : rebase_source : 2f6e383a1995e91f395efb4d037e151a5a656248
extra : intermediate-source : 12403091f9cee42331e12eb13945b40d02dc842f
extra : source : 1149d57835c33231411692e74836fff37b3e74de
2017-03-28 18:13:22 +08:00
JW Wang
88fd9831d4 Bug 1353607. P8 - use TimeUnit in DispatchSetFragmentEndTime(). r=kikuo
MozReview-Commit-ID: IBLT0j7yMLK

--HG--
extra : rebase_source : a441e4f71c7286225deb3cc6719582b912549bd0
extra : intermediate-source : 2b7da6662a5a783e0cb9e574c5a8678c991aa306
extra : source : 0647d6d92deabbc38a22c5e681e71ce92fdd8267
2017-03-28 18:01:23 +08:00
JW Wang
a40ec389de Bug 1353607. P7 - remove the unused function. r=kikuo
MozReview-Commit-ID: AWf7ritkbJ5

--HG--
extra : rebase_source : f0d1bc3737f5bdd0ebe67aaa0440da4d4dcb81c4
extra : intermediate-source : a1988b5e24c807885719330e00d0ee53541ad5ea
extra : source : b87cf11a3235a6cb5f3369f6fbf8a6bdf7f5d005
2017-03-28 17:29:24 +08:00
JW Wang
285e8bf172 Bug 1353607. P6 - use TimeUnit in CheckSlowDecoding(). r=kikuo
MozReview-Commit-ID: 524aRA1uUaQ

--HG--
extra : rebase_source : 9983ee9167c7e6420d7ebd529be8a985027c40d5
extra : intermediate-source : 56e1187c40b910d8cc233bd1dd86c963d0bdb249
extra : source : 29470ceae137940b6432a402249a56a82572adf0
2017-03-28 17:27:56 +08:00
JW Wang
1058fbba54 Bug 1353607. P5 - change the type of mDecodedAudioEndTime/mDecodedVideoEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: 2bVQD5BViU4

--HG--
extra : rebase_source : bfd903ba579728faee4e52028a475667b4345825
extra : intermediate-source : 7244b47b97aa15dbaea76e39646af208ef49640c
extra : source : 3a568910e2e46d766531407a488a3d825700321c
2017-03-28 17:20:17 +08:00
JW Wang
fd5ea35288 Bug 1353607. P4 - change the type of mFragmentEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: FhUZMpXokSt

--HG--
extra : rebase_source : ad31b3f7efc88c35b94f1131fa4ccd99047e118d
extra : intermediate-source : 4afe1a64d13c7cb35025cc07cefc103132ea4c7c
extra : source : d6b2c91dc8845c718815080b7ce94d729154c3d0
2017-03-28 17:14:01 +08:00