Граф коммитов

12820 Коммитов

Автор SHA1 Сообщение Дата
JW Wang a6dc3c33c1 Bug 1425170. P2 - remove unused members. r=bechen,gerald
MozReview-Commit-ID: TJZzVuEI8J

--HG--
extra : rebase_source : 3f6208a74c2a2d88373936a3dc4ee5c873fc297a
2017-12-14 10:19:41 +08:00
JW Wang d764d94fc5 Bug 1425170. P1 - add a member to ChannelMediaResource to store the nsIPrincipal. r=bechen,gerald
Note SharedInfo contains an array to store the original and cloned resources.
This allows us to iterate over resources on the main thread without taking the
cache monitor.

MozReview-Commit-ID: K3gcPYbf72Z

--HG--
extra : rebase_source : eaa070a889797c29d2599b4c3d2507f440d476e7
extra : source : 5dc420815d7a26771c176cdc7b6a87a1c2278da8
2017-12-08 11:08:38 +08:00
Jean-Yves Avenard ec469fdddc Bug 1425608 - Don't delete AutoTaskQueue::mTaskQueue on the main thread. r=gerald
MozReview-Commit-ID: I2R4OYB0Jyc

--HG--
extra : rebase_source : 1b8c1caffef91b5888b04b336bd20a74df6711a1
2017-12-16 00:46:49 +01:00
John Lin 2ced369af1 Bug 1424930 - remove telemetry for tunneled playback support on Android devices. r=jwwang
MozReview-Commit-ID: HKJ0gBBfRKT

--HG--
extra : rebase_source : 545e1ae8f97cfebed6c2ac6e8c3b837274687f14
2017-12-13 10:23:58 -06:00
Munro Mengjue Chiang cd5c9af5e7 Bug 1424191 - set mImages[i] to nullptr in MediaEngineRemoteVideoSource::Start(). r=pehrsons
MozReview-Commit-ID: LK3gFynesoE

--HG--
extra : rebase_source : ead4957e39029ae7828654d0f6dc92ab5d11a508
2017-12-12 14:56:52 -06:00
Dan Minor 1907956909 Bug 1424906 - Fix PeriodicWave disableNormalization false behaviour; r=padenot
This adds a scaling factor of 0.5 even when normalization is
disabled, which is required for correct results.

MozReview-Commit-ID: J0VbMcaacGc

--HG--
extra : rebase_source : 1a8e2dd21a6a48a02fbafda994e42b59c5761ea4
2017-12-14 09:43:21 -06:00
Narcis Beleuzu a8f33facb2 Backed out changeset db713228c8e3 (bug 1425150) for wpt failures on core/platform.cpp r=abackout on a CLOSED TREE 2017-12-14 23:23:20 +02:00
Paul Adenot 17ca0b45f8 Bug 1425150 - Register AudioCallbackDriver to the Gecko Profiler. r=jya
MozReview-Commit-ID: 3rJbF8Kq0zx

--HG--
extra : rebase_source : 49719ea92da9c1c556b1c3d10a06d3f2cdc3b08f
2017-12-13 17:10:14 -06:00
Dorel Luca 110706c3c0 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-14 11:54:15 +02:00
JW Wang 4b584fc48b Bug 1424973. P2 - remove unused MediaDecoder::IsLiveStream() and friends. r=bechen,gerald
MozReview-Commit-ID: Hf3QAFoq97x

--HG--
extra : rebase_source : 0cbfaaec37dea3ab0ab4ad0622bae8056e383ec0
extra : intermediate-source : b591e2e854d0c480f889aa6ebe87f4892ffc0cdc
extra : source : 13db1fcd03825077382e41235c02d1f8ecc5edf2
2017-12-06 16:24:31 +08:00
JW Wang bb45ff010e Bug 1424973. P1 - propagate 'IsLiveStream' changes to MDSM in MediaDecoder subclasses. r=bechen,gerald
MozReview-Commit-ID: 8wSZf7pRERP

--HG--
extra : rebase_source : c2bea725064f5ad2e1cd1de1b8b9c19994bad89b
extra : intermediate-source : 54da627350d8a6276f9ad5d14a7191cb05957901
extra : source : dc582401401272df3150fb639bdf0ad05d749a06
2017-12-06 16:00:20 +08:00
JW Wang 0764603851 Bug 1424937 - read as many bytes as possible before giving up reading due to download ends abnormally. r=bechen,gerald
MozReview-Commit-ID: 39vdgyY5NCT

--HG--
extra : rebase_source : d476d0d2b725b94ed750c575bbb6708098f89bb3
2017-12-13 18:28:16 +08:00
Alastor Wu 3a6045f260 Bug 1424903 - disable test_autoplay_policy.html on Android 6.0. r=jolin
MozReview-Commit-ID: 1QKNh4jrNYw

--HG--
extra : rebase_source : aed78cb8659c66c662525331c3c98104b84b2bdf
2017-12-12 13:38:17 -06:00
JW Wang 381f8f5795 Bug 1423482 - ChannelMediaResource::CacheClientNotifyDataReceived() should use mCallback->AbstractMainThread() to dispatch tasks. r=bechen
To be consistent with other functions.

MozReview-Commit-ID: 1adZkXx2VkB

--HG--
extra : rebase_source : b7c420c717ffc95feb73749305fd25e3bba12ae1
extra : intermediate-source : a7a9f6ae0a0291c76f2eee0e89f57684df98a061
extra : source : 9055561c3203e06c0e2d6d0daaa76f3e85dc1b2c
2017-12-06 16:01:12 +08:00
JW Wang 29f9e59896 Bug 1423465. P7 - GetOwner()->DownloadProgressed() should be called after updating mCanPlayThrough. r=bechen,gerald
GetOwner()->DownloadProgressed() will update readyState of the media element
which will need to read mCanPlayThrough.

MozReview-Commit-ID: EDHlLJjKDoL

--HG--
extra : rebase_source : df4ffabc02f9e6b4b20e5fa6c9be6988570a9974
extra : intermediate-source : 371a6509c04bf89edb07b3437a41a9b36dba25ff
extra : source : 227ffb87de637994baefab6b178afeae4673a2ef
2017-12-05 16:01:18 +08:00
JW Wang dffc1aa9bb Bug 1423465. P6 - assert some MediaCacheStream functions are run off the main thread. r=bechen,gerald
MozReview-Commit-ID: I0GWj6I82Iv

--HG--
extra : rebase_source : 1f0271b1eae63391d23f5997359227af73d427d5
extra : intermediate-source : 30c996ff54197b85b97393762b7598cbbb528c0c
extra : source : 1f3a35716479caf1e493472762e28c586ef5f7dd
2017-12-05 15:23:43 +08:00
JW Wang 477cabbc8f Bug 1423465. P5 - run ComputePlaybackRate() off the main thread. r=bechen,gerald
MozReview-Commit-ID: DhaZUVcHhiy

--HG--
extra : rebase_source : ff8e0ce52daee77aebee94bca8ec4f95b5ea51df
extra : intermediate-source : 25eb2b6120e83602b06bc8ef76c2c7e45a412966
extra : source : c3c25dee22ef2019a96e0c66cf5a1c2d6d1f4f17
2017-12-05 15:21:45 +08:00
JW Wang 2d2b8a57e9 Bug 1423465. P4 - run GetStatistics() off the main thread. r=bechen,gerald
Note we cache the result of GetStatistics().CanPlayThrough() which is needed
by CanPlayThroughImpl().

MozReview-Commit-ID: QYNqk1pUN5

--HG--
extra : rebase_source : e4ce549f1069fd3106da4f68dcb429afa291aa5d
extra : intermediate-source : 9d7c532bdad7733bc3f9e725feecd83bea1ab156
extra : source : b552dad39a644026eb0d62e7e975c4120e550447
2017-12-05 15:06:34 +08:00
JW Wang 26a216be5d Bug 1423465. P3 - assert MediaCacheStream::SetPlaybackRate() is called off the main thread. r=bechen,gerald
MozReview-Commit-ID: CZCLkRa0T2v

--HG--
extra : rebase_source : d0a8afda90bd429891ead94788de81d743c1216c
extra : intermediate-source : 4adc4ebb716f29f0a2de5510ff36607283024687
extra : source : 1ed4c290b9294e965f2d9a80ace20776a5e84ead
2017-12-05 14:15:38 +08:00
JW Wang 8bf10990f3 Bug 1423465. P2 - run UpdatePlaybackRate() off the main thread. r=bechen,gerald
MozReview-Commit-ID: Ktw4IxzHT2f

--HG--
extra : rebase_source : 9edd14062ad1692bf4a85655ac126e1d199e9e8c
extra : intermediate-source : 78e2a1d577508ff3619debdbdd35c64fcd1b0b1e
extra : source : 970eb209afa288929bed8f8b16c40c48c0dc5fda
2017-12-05 14:13:22 +08:00
JW Wang a017f96aba Bug 1423465. P1 - expose MDSM::OwnerThread() to the public. r=bechen,gerald
This will be used by ChannelMediaDecoder to run some code off the main thread.

MozReview-Commit-ID: 7Ecej11GBvy

--HG--
extra : rebase_source : aeafd934cb76d426d3c4f49ebd0736b013cbe588
extra : intermediate-source : 5cb1e7b389daf48c77c2e0bf632cefaeff5a2b40
extra : source : 813e6593f8e9772895df7acb353dbf0137008bb0
2017-12-05 11:03:34 +08:00
JW Wang 9d9ec003d1 Bug 1420608. P1 - don't switch off blank decoder when seeking begins. r=gerald
When looping videos in a background tab, SeekingState::Enter() will switch off
blank decoder and then DecodingState::Enter() will switch it on again. It is a
waste of CPU cycles when the tab never goes to the foreground. The overhread is
even more significant when looping short files.

We should resume video decoding only when necessary that is we check in
DecodingState::Enter() to see if mVideoDecodeSuspended matches mVideoDecodeMode.

MozReview-Commit-ID: 54vq7mEjWQf

--HG--
extra : rebase_source : ce04310d06df2effd65d8c301e07c7fef01bdbd1
extra : intermediate-source : 83dff897174fb440e5da24843186ff9fd39d15c9
extra : source : d0834777c96255e15dc44d1865bd354ab67ec8fe
2017-12-07 11:38:23 +08:00
JW Wang 32ec06ebb2 Bug 1422657. P2 - remove unused mDecoderPosition and related code. r=bechen,gerald
MozReview-Commit-ID: 8RobmJKC40i

--HG--
extra : rebase_source : 2b9abaa1a22b78cadbbdbf99d1c778fe82f84eac
extra : source : 7267883c2b722f806fc11c35ff9c8c5743a57bf3
2017-12-01 14:02:44 +08:00
JW Wang d72cfc05d2 Bug 1422657. P1 - GetStatistics() should pass mPlaybackPosition to mResource->GetCachedDataEnd(). r=bechen,gerald
Usually mDecoderPosition and mPlaybackPosition are in the same cached range so
GetCachedDataEnd(mDecoderPosition) and GetCachedDataEnd(mPlaybackPosition) will
give the same result.

It also makes more sense to pass the playback position instead of decoder
position since 'canplaythrough' is about playback instead of decoding.

MozReview-Commit-ID: Kk1uUeSFTCI

--HG--
extra : rebase_source : 1f40adce4b93dbcf55cb3de9f5c16fdd6d0b6bee
extra : source : 9c77dddb2faca84bd8cf09fc2007e18986e62f64
2017-12-01 13:53:46 +08:00
James Cheng 8107c910bc Bug 1422669 - Part4 - Kill string16 and replace with our SHA1 implementation. r=gerald
The reason explained in patch Part1 of Bug 1214018 and I just copy the reason below.

GetRawMachineId was returning its generated data through a 'string16', which on
Windows was conveniently equivalent to a std::wstring.

However on Mac, wstring uses 32-bit characters, so in order to comply with the
string16 interface, a lot of non-trivial code would have to be imported and
vetted.

Also, in the end GMPLoader::Load passes this string16 to SHA256_Update() as a
sequence of bytes, the actual type of the data is lost!

So to simplify this work, GetRawMachineId will now return its data through a
vector of bytes, and the platform-dependent implementations may use whatever
data type they want internally.

The Windows GetRawMachineId actually returns the same data in this vector, so
it stays compatible with the previous code.

MozReview-Commit-ID: 7xYgjndXWDX

--HG--
extra : rebase_source : 6a46bd7f06d6e4bc10bb98b600e7e5bc14c136ce
2017-12-06 16:52:31 +08:00
James Cheng d9be66f8f8 Bug 1422669 - Part3 - Introduce rlz_lib::GetMachineId and its related helper functions. r=cpearce
Chromium uses rlz_lib::GetMachineId as a factor when calculating storage id.

MozReview-Commit-ID: AJbcnRXzi3m

--HG--
extra : rebase_source : 4e6a0eebaeec01fc7a78caeb8406d1e2ed09f1d4
2017-12-06 14:41:38 +08:00
jacheng@mozilla.com 8e31e4ddf5 Bug 1422669 - Part2 - Fix compiling error [-Werror,-Wcomma] by Part1 on OSX. r=gerald
--HG--
extra : rebase_source : 13c1151aefc9dfcfdd41bd44eafcb11828853528
2017-12-06 06:33:02 +00:00
jacheng@mozilla.com 92826eb75f Bug 1422669 - Part1 - Restore librlz from Bug 1332530. r=cpearce
Sync with the upstream(Chromium src/rlz/) and try to revert the functionality of Bug 1332530.
rlz is linked into xul.

MozReview-Commit-ID: HsjnBRPnifh

--HG--
extra : rebase_source : 2867fe353d0c8c67535d29943f3536ef59d1d75e
2017-12-06 06:33:02 +00:00
Paul Adenot 087931a5ef Bug 1423923 - Properly feed reverse stream to the AudioProcessingModule. r=pehrsons
We need to feed deinterleaved data, not interleaved data.

MozReview-Commit-ID: 99z8HA7tJgT

--HG--
extra : rebase_source : eb61b602630008683c6afdd2aad1dca0d663db86
extra : intermediate-source : 2d718ca90e07d9dfc71e86434cb04c5580405f9f
extra : source : 3ba7fe1cddec0a3dcaaf526a85b7f34072c3e199
2017-12-07 16:22:28 +01:00
Paul Adenot ade63a75da Bug 1397793 - Don't use the AEC on a 440Hz tone when testing that audio is flowing. r=pehrsons
This brings in a lot of noise and makes the test fail.

MozReview-Commit-ID: 70EGM1q1J24

--HG--
extra : rebase_source : cab81fdfd53c537c04f1d2360a9340a3740b66a0
extra : source : c02fd9acc634860ef540a0cddb1591f294fc1f61
2017-12-04 18:16:22 +01:00
Paul Adenot 68ba9be263 Bug 1397793 - Share SharedBuffer accross SourceMediaStream. r=pehrsons
MozReview-Commit-ID: 4PEjwiA6PR8

--HG--
extra : rebase_source : 8c3d3f15eaa926f35311b66026f4d3aa10ce3ffa
extra : source : 81889a72ac45db0507c38423084f3cfce71d2ecd
2017-11-28 18:43:11 +01:00
Paul Adenot 469073f238 Bug 1397793 - Add asserts for AudioChunk invariants. r=pehrsons
MozReview-Commit-ID: CFqyMPMMHyA

--HG--
extra : rebase_source : 47d1cef3a0052a17743cfb3f77442d416cb90e28
extra : source : a0d519ba5332cacfa2fa5c070f056318ef786a42
2017-11-29 19:22:00 +01:00
Paul Adenot 0866864396 Bug 1397793 - Remove mRate from MediaEngineDefault and use GraphRate(). r=pehrsons
MozReview-Commit-ID: D9x3wICAMNA

--HG--
extra : rebase_source : 1b83343c8a459d8720a6445efbd0d390824325e4
extra : source : ea8d6efcf3efbadab838c3f720d4ad73e7afed2e
2017-11-08 15:16:06 +01:00
Paul Adenot 4c63f88aa9 Bug 1397793 - Make the assertions in the rate conversion functions in StreamTracks.h be fatal. r=pehrsons
MozReview-Commit-ID: 8nLask8nqV4

--HG--
extra : rebase_source : 33a4b5a4ff61e663d68ec7a80ab9f0b5182a2987
extra : source : 16f44ac4978a5fbeea4c11d7247a1528972314d6
2017-11-21 20:53:51 +01:00
Paul Adenot 30d795740b Bug 1397793 - Use a ControlMessage to switch between passthrough and processing mode for microphone input. r=pehsrons
MozReview-Commit-ID: EIvQKZf7oGq

--HG--
extra : rebase_source : 7e7e0cedb7069639cd6dc3d1612c4d75ce71faa3
extra : source : 771c95f2963b64f52f32c9d2770136748bbf943a
2017-11-08 14:10:45 +01:00
Paul Adenot dce032329a Bug 1397793 - Refactor the code that sets the processing modes. r=pehrsons
MozReview-Commit-ID: IUgAfHawFIz

--HG--
extra : rebase_source : ec99875aaf24954cc93e28d4f0fe6172e6b2f9ce
extra : source : 1cf542ff868736857488fd1f2bc2271b686b5b56
2017-11-07 14:28:06 +01:00
Paul Adenot d4aeb652b5 Bug 1397793 - Allow switching processing on/off dynamically. r=pehrsons
MozReview-Commit-ID: G0NJRkKEVeM

--HG--
extra : rebase_source : 0574254dfbfa0965ed4d1c8a07c9f535c390d8a1
extra : source : d12894d7777055463b68b8d9ea7e3d6c0940b4aa
2017-11-23 15:53:25 +01:00
Paul Adenot 14fb321adc Bug 1397793 - Move to APM - Part 2 - Actual processing. r=pehrsons
This also is long, but simple.

First, we switch to floats everywhere. This allows to work with any rate, is
more flexible with channel layout, and is a stable API (see audio_processing.h
in webrtc.org).

Then, 10ms worth of audio (already at the graph rate) are poped from the
lock-free queue (fed on the other end by the MSG mixer), and does the following:
- Down mixing to stereo (if needed)
- De-interleaving into planar buffer
- Prepare input and output config
- Actually make the API call
- Free the data

Now, first, we should use a ring buffer, and not have to free any data. Then we
also should not use a lock-free queue, and synchronously process the
reverse-stream, but this is enough code already.

Then, the actual mic data processing:
- Pop a packet from the packetizer (that gives us 10ms worth of audio, note that
we switch from int16_t to float, i.e. we don't do this conversion anymore).
- We convert to planar buffers, deinterleaving
- Prepare input and output config
- Allocate a SharedBuffer of the right size
- Process the data with the processing algorithm selected in UpdateSingleSource
- Append to the a MediaSegment, and append to the right MediaStreamTrack for the
correct SourceMediaStream (the data is already planar and all well).

MozReview-Commit-ID: 2IjgHP0GAmw

--HG--
extra : rebase_source : 1e08c4a781db8778e0532f9ef1a8e369513a2c66
extra : source : 0107b3feb84bbe0e643f505ec58e303dfd94e1a7
2017-12-04 13:34:14 +01:00
Paul Adenot 49545441d4 Bug 1397793 - Move to APM - Part 1 - UpdateSingleSource. r=pehrsons
This part is about setting on/off audio processing feature. It's long, but
it's mostly mechanichal changes, from the old API to the new one.

This also covers reseting the processing in case of device changes (with
macros).

MozReview-Commit-ID: EI2TxHRicEr

--HG--
extra : rebase_source : 5c389e00019633d371d74cdd2d881dab4d353848
extra : source : 2c7a56648de9125ae1893d54ec011b6cbb181d86
2017-10-31 18:25:41 +01:00
Paul Adenot 17c1d145ae Bug 1397793 - Remove VoEExternalMedia usage in MediaEngineWebRTCAudio and MediaEngineWebRTC. r=pehrsons
This needs the next patches to build fine, but is split out for the review.

A side effect of this patch is to break non-duplex, making the whole
init/cleanup phase much simpler.

MozReview-Commit-ID: Caqc8v7CWwZ

--HG--
extra : rebase_source : 604551cc937ee60064a263ebb5fb1550fa9a9e9f
extra : source : a781b123b252b464f805674144cc01d9dd69c391
2017-10-31 18:11:48 +01:00
Paul Adenot 520a34963f Bug 1397793 - Move MediaEngineDefault to use the MSG rate instead of something hard-coded. r=pehrsons
This is "just" for testing, but is cleaner, and skips some resampling, and is in
line with the other patches, to converge with always using MSG rate when we can.

MozReview-Commit-ID: CBQHEDQWJE3

--HG--
extra : rebase_source : 9cc113efbaa982c20d62c2863ce231dda4735257
extra : source : bf8977e0f440c0280da32a7052214834dc6701ca
2017-10-31 17:43:10 +01:00
Sebastian Hengst fe440c72a7 Backed out bug 1423923 for crashes, requested by drno. r=backout a=backout
Backed out changesets:
b44e089bcfe7
a3d9aa2649b9
9e92591ba6dc
e92ff1339db1
bf8977e0f440
a781b123b252
2c7a56648de9
0107b3feb84b
d12894d77770
1cf542ff8687
771c95f2963b
16f44ac4978a
ea8d6efcf3ef
a0d519ba5332
81889a72ac45
c02fd9acc634

--HG--
extra : histedit_source : 1cc2bad6f9f291f76d6c2385a5c7fa4512b9c6e3%2C758892ad6f034b39773940602a1399f4e3c8f887
2017-12-11 12:34:23 +02:00
Alastor Wu 0963f88b98 Bug 1417300 - store mDecodedAudioDuration before adjusting sample time. r=jya
mDecodedAudioDuration should only save unadjusted timestamp, or it would
cause next adjustment to be incorrect.

MozReview-Commit-ID: 7grtYs075p0

--HG--
extra : rebase_source : ad146e7c34b6154629c1ff98992d5c0209d3ef80
2017-12-11 00:03:51 +08:00
Munro Mengjue Chiang 8413c8b838 Bug 1423819 - reuse ImageContainer object instead of releasing and creating another one. r=pehrsons
MozReview-Commit-ID: I7HJn6S7mDc

--HG--
extra : rebase_source : a9dbf4e688ee609f3c1ee7d2a8713028a2b4db5f
2017-12-08 16:53:42 +08:00
Jed Davis 6a1ec633b2 Bug 1409895 - Make dom/media/test stop looking up CurWorkD in content. r=cpearce
MozReview-Commit-ID: 1cWf1Ytns7f

--HG--
extra : rebase_source : 7b92c56851de566f77a6fc437895d2a911bb7fdf
2017-11-20 10:44:59 -07:00
Byron Campen [:bwc] e1758de67a Bug 1421775 - Attempt 2: Don't try to update negotiationneeded until after the stuff we do in parallel with sRD/sLD finishes. r=jib
MozReview-Commit-ID: ESRo7Aa95CR

--HG--
extra : rebase_source : afe52446a119da470157998b77168636dbfe3639
2017-12-07 12:31:33 -06:00
Byron Campen [:bwc] 82aaa61421 Bug 1400363 - Part 1: Test muted/onmuted/onunmuted for webrtc cases. r=jib
MozReview-Commit-ID: ABFHeq4Eu6X

--HG--
extra : rebase_source : dcfbb5268dc64c92f2c8858af02d243be455f3f3
2017-11-29 13:34:28 -06:00
Byron Campen [:bwc] 63a499f3be Bug 1400363 - Part 0: Expose the SourceMediaStream of MediaStreamTrack, and store tracks instead of the source streams. r=pehrsons
MozReview-Commit-ID: KSYFGHsr0qk

--HG--
extra : rebase_source : 657ea373fb69d1e85b28a5535028a650c33dce9e
2017-11-30 14:47:13 -06:00
Sylvestre Ledru a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru 4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru 5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Cosmin Sabou c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Eric Rahm 07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
shindli 76ee711dab Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-08 00:24:48 +02:00
sotaro 2063225117 Bug 1423806 - Enable IMFYCbCrImage with WebRender r=mattwoodrow 2017-12-07 22:15:34 +09:00
Bogdan Tara cbd802ee7d Merge inbound to mozilla central r=merge a=merge 2017-12-07 12:53:20 +02:00
Munro Mengjue Chiang 1051352e87 Bug 1423515 - register callback while creating the real backend. r=pehrsons
MozReview-Commit-ID: 2uVZ9VBAut0

--HG--
extra : rebase_source : e51862ad3f4ec74066b080eac66d69f428b86426
2017-12-06 19:09:40 +08:00
Jan-Ivar Bruaroey b3493432e7 Bug 1422389 - Limit default engine resolution. r=mchiang
MozReview-Commit-ID: LS1z7I4myeb

--HG--
extra : rebase_source : f0fd6e20a13d11660a5ac57e9703f09978f12acb
2017-12-01 20:49:46 -05:00
Noemi Erli 0a2d9d84db Backed out 2 changesets (bug 1409895) for crashes in Linux talos jobs r=backout on a CLOSED TREE
Backed out changeset bc8fbf503fea (bug 1409895)
Backed out changeset 3194825c1f41 (bug 1409895)
2017-12-07 22:17:17 +02:00
Jed Davis 7f8bc7e8dd Bug 1409895 - Make dom/media/test stop looking up CurWorkD in content. r=cpearce
MozReview-Commit-ID: 1cWf1Ytns7f

--HG--
extra : rebase_source : 069ab81a280884ba2b6b4173982f3b4ef5a44302
2017-11-20 10:44:59 -07:00
Bogdan Tara ee93ba6dd5 Backed out 1 changesets (bug 1423923) for failing /builds/worker/workspace/build/src/dom/media/webrtc/MediaEngineWebRTCAudio.cpp. r=backout a=backout on a CLOSED TREE
Backed out changeset ed9d21d743cb (bug 1423923)
2017-12-07 19:00:15 +02:00
Paul Adenot 6df26ff4dc Bug 1423923 - Properly feed reverse stream to the AudioProcessingModule. r=pehrsons
We need to feed deinterleaved data, not interleaved data.

MozReview-Commit-ID: 99z8HA7tJgT

--HG--
extra : rebase_source : 686295cead6632688d7dc130b7904bf771b10bc3
2017-12-07 16:22:28 +01:00
Tooru Fujisawa f7df533e97 Bug 1228841 - Part 0: Remove remaining conditional catch consumers in dom/. r=billm 2017-12-05 09:42:37 +09:00
Paul Adenot 2f0ae5124f Bug 1397793 - Don't use the AEC on a 440Hz tone when testing that audio is flowing. r=pehrsons
This brings in a lot of noise and makes the test fail.

MozReview-Commit-ID: 70EGM1q1J24

--HG--
extra : rebase_source : f19c191747f2e63303406a43a79454e4ea1ed428
extra : histedit_source : f27d34204de924ab30b5718b240ac3d23677991c
2017-12-04 18:16:22 +01:00
Paul Adenot b585f4301a Bug 1397793 - Share SharedBuffer accross SourceMediaStream. r=pehrsons
MozReview-Commit-ID: 4PEjwiA6PR8

--HG--
extra : rebase_source : 265d30d8bf83103c50bb3cb84b263bdb87b8494e
extra : histedit_source : 1ba9523a366310d5784a671e2be03a7a71e790b3
2017-11-28 18:43:11 +01:00
Paul Adenot 93fa5b007c Bug 1397793 - Add asserts for AudioChunk invariants. r=pehrsons
MozReview-Commit-ID: CFqyMPMMHyA

--HG--
extra : rebase_source : 6648d283e6da1cc3ad98616063e62542b9e7346d
extra : histedit_source : 8937ab1b4567fabc3c98802eefede9f00e9684a5
2017-11-29 19:22:00 +01:00
Paul Adenot 1c13882dc4 Bug 1397793 - Remove mRate from MediaEngineDefault and use GraphRate(). r=pehrsons
MozReview-Commit-ID: D9x3wICAMNA

--HG--
extra : rebase_source : 6f863eccdf5044e1838a555f45b88f465503c1fc
extra : histedit_source : 347fb57ff58138b8c949b8a2efb26b17e0a8c47d
2017-11-08 15:16:06 +01:00
Paul Adenot 75105f79ae Bug 1397793 - Make the assertions in the rate conversion functions in StreamTracks.h be fatal. r=pehrsons
MozReview-Commit-ID: 8nLask8nqV4

--HG--
extra : rebase_source : a9724f42fbf33a08a08b720f42d25bda0b6623f1
extra : histedit_source : 0a7ad7125b482b9de2013f787d86a661e554c240
2017-11-21 20:53:51 +01:00
Paul Adenot de142c0970 Bug 1397793 - Use a ControlMessage to switch between passthrough and processing mode for microphone input. r=pehsrons
MozReview-Commit-ID: EIvQKZf7oGq

--HG--
extra : rebase_source : cf84d44df1fadd262283946641d7ce67f779b7d2
extra : histedit_source : 71388af2bab6cbfb3d6a4c700b2419899811e680
2017-11-08 14:10:45 +01:00
Paul Adenot 58fc6f439a Bug 1397793 - Refactor the code that sets the processing modes. r=pehrsons
MozReview-Commit-ID: IUgAfHawFIz

--HG--
extra : rebase_source : f80414c0e9048ee5eb9754a0161844b5607addb8
extra : histedit_source : 71375da254afb9764c812ed9ba92689d828c74db
2017-11-07 14:28:06 +01:00
Paul Adenot 965ccaadaa Bug 1397793 - Allow switching processing on/off dynamically. r=pehrsons
MozReview-Commit-ID: G0NJRkKEVeM

--HG--
extra : rebase_source : 16547d0ace0d0d7e791ef60249f94fe3060944b4
extra : histedit_source : 78db64f41f799dec503c36a809cb05713cbd45e4
2017-11-23 15:53:25 +01:00
Paul Adenot 20a31e686f Bug 1397793 - Move to APM - Part 2 - Actual processing. r=pehrsons
This also is long, but simple.

First, we switch to floats everywhere. This allows to work with any rate, is
more flexible with channel layout, and is a stable API (see audio_processing.h
in webrtc.org).

Then, 10ms worth of audio (already at the graph rate) are poped from the
lock-free queue (fed on the other end by the MSG mixer), and does the following:
- Down mixing to stereo (if needed)
- De-interleaving into planar buffer
- Prepare input and output config
- Actually make the API call
- Free the data

Now, first, we should use a ring buffer, and not have to free any data. Then we
also should not use a lock-free queue, and synchronously process the
reverse-stream, but this is enough code already.

Then, the actual mic data processing:
- Pop a packet from the packetizer (that gives us 10ms worth of audio, note that
we switch from int16_t to float, i.e. we don't do this conversion anymore).
- We convert to planar buffers, deinterleaving
- Prepare input and output config
- Allocate a SharedBuffer of the right size
- Process the data with the processing algorithm selected in UpdateSingleSource
- Append to the a MediaSegment, and append to the right MediaStreamTrack for the
correct SourceMediaStream (the data is already planar and all well).

MozReview-Commit-ID: 2IjgHP0GAmw

--HG--
extra : rebase_source : d2245037e8ee7145af7eef528dcee50817b69d83
extra : histedit_source : 79443c35b82d3bc8833d140dd5afc882b85b4c12
2017-12-04 13:34:14 +01:00
Paul Adenot b76152fc03 Bug 1397793 - Move to APM - Part 1 - UpdateSingleSource. r=pehrsons
This part is about setting on/off audio processing feature. It's long, but
it's mostly mechanichal changes, from the old API to the new one.

This also covers reseting the processing in case of device changes (with
macros).

MozReview-Commit-ID: EI2TxHRicEr

--HG--
extra : rebase_source : 7044c2d1695cdf0d6a69b4faa19349e3261ef204
extra : histedit_source : f5ac61e7b90ab4d5280623095c443529fb36cde5%2C5c969f1833bdc425842f945a5a8a4702ca13cd56
2017-10-31 18:25:41 +01:00
Paul Adenot 0ade31e233 Bug 1397793 - Remove VoEExternalMedia usage in MediaEngineWebRTCAudio and MediaEngineWebRTC. r=pehrsons
This needs the next patches to build fine, but is split out for the review.

A side effect of this patch is to break non-duplex, making the whole
init/cleanup phase much simpler.

MozReview-Commit-ID: Caqc8v7CWwZ

--HG--
extra : rebase_source : 6e7d501ef99f3ea5d755a610238b8f260194bba0
extra : histedit_source : 298c7e95a2bd40e8f9ce014e06faad159fca513e
2017-10-31 18:11:48 +01:00
Paul Adenot 36e1dc3f90 Bug 1397793 - Move MediaEngineDefault to use the MSG rate instead of something hard-coded. r=pehrsons
This is "just" for testing, but is cleaner, and skips some resampling, and is in
line with the other patches, to converge with always using MSG rate when we can.

MozReview-Commit-ID: CBQHEDQWJE3

--HG--
extra : rebase_source : a65c4df357a6f56306b63b92416697f01699358f
extra : histedit_source : ae589d7cf7bc3895a0f4b5b496b60846bddf7d1a
2017-10-31 17:43:10 +01:00
Gerald Squelart c5aeab4f69 Bug 1407810 - Use DDMOZ_LOG in media stack - r=jwwang
Mostly-mechanical replacement of MOZ_LOG with DDMOZ_LOG, usually just removing
the class name and `this` pointer (as they are already implicitly recorded).
Some files needed a bit more work when logging was done from helper classes or
static functions.

MozReview-Commit-ID: IeJJmzYqWMQ

--HG--
extra : rebase_source : 94200838dcdaf6c3bda9de30042ce2d307237eef
2017-10-13 16:31:59 +11:00
Gerald Squelart 83602b8860 Bug 1407810 - DDMOZ_LOG to replace MOZ_LOG and also output to DDLogger - r=jwwang
This macro may be used to replace MOZ_LOG in most files, where it is used in
non-static member functions of classes that are registered with
DDLoggedTypeTraits.

MozReview-Commit-ID: A8DYmGoMv7f

--HG--
extra : rebase_source : 51d24f53a19fcbcbe42faea668256f1804f0abc9
2017-10-13 16:31:28 +11:00
Gerald Squelart 1b357db99b Bug 1407810 - Use DDLogger in media stack - r=jwwang
Mostly-mechanical additions:
- Log constructions&destructions, usually by just inheriting from
  DecoderDoctorLifeLogger, otherwise with explicit log commands (for internal
  classes for which DecoderDoctorTraits can't be specialized),
- Log links between most objects, e.g.: Media element -> decoder -> state
  machine -> reader -> demuxer -> resource, etc.

And logging some important properties and events (JS events, duration change,
frames being decoded, etc.)

More will be added later on, from just converting MOZ_LOGs, and as needed.

MozReview-Commit-ID: KgNhHSz35t0

--HG--
extra : rebase_source : dd7206e350e32671adc6f3b9e54ebf777251de2c
2017-10-10 17:55:27 +11:00
Jean-Yves Avenard 1e749d1b68 Bug 1331696 - P3. Remove direct audio support from speech synth. r=eeejay
MozReview-Commit-ID: E1UKOOvwUOe

--HG--
extra : rebase_source : 82f36e82d70a6ece15becc732dcf3c4fc4645920
2017-12-02 09:13:35 +01:00
Eitan Isaacson 24e093653b Bug 1331696 - P2. make the speech synth mochitests pass. r=jya
MozReview-Commit-ID: 5fzgFZa8gcT

--HG--
extra : rebase_source : 7ba5a9de4aa60dcbae998a8a0a7b3974a7822687
2017-12-06 19:10:42 +01:00
Jean-Yves Avenard cfa7a324aa Bug 1331696 - P1. Remove WebSpeech Pico service. r=chmanchester,eeejay
It's no longer used, and won't be able to work with the removal of speech synth direct audio support.

MozReview-Commit-ID: BMdeRJHes0R

--HG--
extra : rebase_source : 9f45b360d27f8013ef229eba79e9d9921d0fdb26
2017-12-02 09:17:39 +01:00
Gerald Squelart aa608c873d Bug 1407810 - Enable DDLogging from the beginning if MOZ_LOG contains DDLogger - r=jwwang
This allows logging from the command line without using a webextension.

MozReview-Commit-ID: 6pkDbLXzz3X

--HG--
extra : rebase_source : 92a840d47054e5bef4cd7adf0aadb16f093f7639
2017-12-04 10:52:51 +11:00
Gerald Squelart 5d9cad55f1 Bug 1407810 - DDMediaLogs::SizeOf accounts for shallow message queue size - r=jwwang
MozReview-Commit-ID: 9irARpytVoh

--HG--
extra : rebase_source : a18db325396ca50b9272559b3dcbb7ccc3d63f87
2017-10-17 16:10:05 +11:00
Gerald Squelart e18e0d36a5 Bug 1407810 - Tweak atomics in MultiWriterQueue - r=jwwang
This queue may be used heavily when multiple threads are running media code
that logs thousands of messages per second, so using less strict memory
ordering can help with speed.
Benchmarks show an improvement of up to twice the queueing speed in some
situations.

MozReview-Commit-ID: 70UOL8XAZGp

--HG--
extra : rebase_source : 38de1f6ce8a404e2ccc1591392176151edc8d078
2017-10-11 14:25:21 +11:00
Gerald Squelart 3704f8907e Bug 1407810 - Make DecoderDoctorLogger::sLogState 'ReleaseAcquire' - r=jwwang
sLogState is accessed at least once for every DDLog call, even when logging is
disabled, so we want it to be as quick as possible for minimal impact on most
users.

MozReview-Commit-ID: AMstgXmixrv

--HG--
extra : rebase_source : 475b32f76d9660d03333047eb7e7add62b717a79
2017-10-12 10:45:03 +11:00
Gurzau Raul f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
Chris Pearce 06046a7100 Bug 1423372 - Remove some unnecessary includes and fix unified build problems. r=jwwang
MozReview-Commit-ID: 7DgtGJQvgp7

--HG--
extra : rebase_source : 297baab1fd84e5302a5f90096e2bbe3bd5fbb20f
2017-12-06 11:36:50 +13:00
Chris Pearce 4d4bf4593d Bug 1423372 - Move MediaDecoder::BackgroundVideoDecodingPermissionObserver to its own file. r=jwwang
This class contains a bunch of Gecko DOM specific stuff, and it would make
keeping the copy of MediaDecoder in Servo up to date easier if the Gecko
DOM stuff wasn't in MediaDecoder (and the other classes we import).

MozReview-Commit-ID: 3dP1nrQ7sT3

--HG--
extra : rebase_source : 79040a8d3cff6ac946b20a99d68e57630ec60848
2017-12-06 11:22:36 +13:00
Narcis Beleuzu bc723a6e7e Backed out 2 changesets (bug 1422657) for browser chrome failures on browser_cache.js r=backout on a CLOSED TREE
Backed out changeset 7267883c2b72 (bug 1422657)
Backed out changeset 9c77dddb2fac (bug 1422657)
2017-12-06 00:40:16 +02:00
Masatoshi Kimura fb6b360527 Bug 1422856 - Stop using GetNativePath in GMPServiceParent. r=cpearce
MozReview-Commit-ID: 2zr2RfZOPYs

--HG--
extra : rebase_source : e1ba72e9676833fea37267aae862f0dc3d3aaa6e
2017-12-05 01:05:36 +09:00
Byron Campen [:bwc] 022c4039ee Bug 1421775: Await negotiationneeded before SLD for the other PC so we don't miss it. r=jib
MozReview-Commit-ID: 9o2qVIKB8wb

--HG--
extra : rebase_source : 74652d475456b5f943d28852d3e70c3fbd9a90ae
2017-12-04 14:26:16 -06:00
Narcis Beleuzu 1f7fdd5826 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-06 01:49:19 +02:00
Nicolas Silva 02d0cd83e9 Bug 1419255 - Add a Proxy KnowsCompositor implementation that can be used off the main thread. r=sotaro 2017-12-05 11:56:20 +01:00
Jan-Ivar Bruaroey 4bed737a12 Bug 1422875 - Fix fake constraint to not apply to screensharing (on all platforms but android). r=pehrsons
MozReview-Commit-ID: K35vaNAolEy

--HG--
extra : rebase_source : 53fae5a862320ae6386e52d4163b06bea5c644d1
2017-12-04 11:56:28 -05:00
Jan-Ivar Bruaroey 22aabfd482 Bug 1422875 - Fix fake constraint to not apply to screensharing for media.navigator.permission.device codepath (aka Android) r=pehrsons
MozReview-Commit-ID: L9IIalMuFoC

--HG--
extra : rebase_source : 04842126225b6d96e37eb07c09e23439be552450
2017-12-04 11:25:50 -05:00
Karl Tomlinson 42d2cadaa3 bug 1339889 don't use AnalyserNode smoothing when testing signal r=padenot
MozReview-Commit-ID: 23rgwLULjID

--HG--
extra : rebase_source : 62812a611652b4fd530c34f15f8bddabba1bd7bd
2017-12-02 22:09:10 +13:00
Karl Tomlinson edd7d1d82e bug 1339889 add logging of maximum noise r=padenot
MozReview-Commit-ID: 4kPl6Jt8rXS

--HG--
extra : rebase_source : e4fe4e1864a7b166104f5af0c4bec50c8dfbe445
2017-12-02 21:58:40 +13:00
bechen@mozilla.com 90589ae7f3 Bug 1420357 - The default value of positionAlign is "auto". r=rillian
MozReview-Commit-ID: KkRzI3B5mfZ

--HG--
extra : rebase_source : 56b6cd5befbb7c76384290f2f0d8915231ee27f6
2017-11-30 11:17:28 +08:00
bechen@mozilla.com 008a43e297 Bug 1420357 - fix postion testcase. r=rillian
1. The default value of position is "auto".
2. follow the spec to parse the position value.

MozReview-Commit-ID: HO7sQ0go5A6

--HG--
extra : rebase_source : ab6066f260abac25d71a1c35511c5389444e000a
2017-11-29 16:16:40 +08:00
JW Wang e6e0f63154 Bug 1422677. P5 - remove mPlaybackBytesPerSecond and mPlaybackRateReliable by removing the side effect of ComputePlaybackRate(). r=bechen,gerald
MozReview-Commit-ID: BbCdsLXHT9d

--HG--
extra : rebase_source : c5a538b16ef91e20a54f2f645d8d5e0c88462b97
2017-12-01 15:05:25 +08:00
JW Wang 19a55c6ba7 Bug 1422677. P4 - remove the call to ComputePlaybackRate() from OnPlaybackEvent(). r=bechen,gerald
It should be called explicitly for anyone that wants its side effect.

MozReview-Commit-ID: EHiPjklV6oZ

--HG--
extra : rebase_source : bb7b0138698448f1064e90b0318637db969b1527
2017-12-01 14:44:34 +08:00
JW Wang d1dc9d3976 Bug 1422677. P3 - pass a MediaStatistics to ShouldThrottleDownload(). r=bechen,gerald
So it won't have to call GetStatistics() again.

MozReview-Commit-ID: 1tRnRHAiX4L

--HG--
extra : rebase_source : 4e2d3c4eb6f149fded9c9ba05872a72c55fad05b
2017-12-01 14:36:35 +08:00
JW Wang 2f2083875c Bug 1422677. P2 - remove the side effect of MediaDecoder::CanPlayThrough(). r=bechen,gerald
We calculate 'canplaythrough' in ChannelMediaDecoder::DownloadProgressed() and
send updates to MDSM.

MozReview-Commit-ID: KAeDciPAUKs

--HG--
extra : rebase_source : 64d7705fb5ca6b1003664ac313ad1ae0ab1bbea6
2017-12-01 14:34:58 +08:00
JW Wang d2f91da2bd Bug 1422677. P1 - move the call to ComputePlaybackRate() out of UpdatePlaybackRate(). r=bechen,gerald
We want to remove the side effect of ComputePlaybackRate(). Anyone who wants
the side effect (updating mPlaybackBytesPerSecond/mPlaybackRateReliable)
should call it explicitly.

MozReview-Commit-ID: 8oHvCl5pewz

--HG--
extra : rebase_source : 3ee54ea32d2d2d7185d9a65c6658a3e700f1fb71
2017-12-01 14:24:27 +08:00
Chris Pearce fb207e4f8a Bug 1422662 - Move BaseMediaResource::Close() into MediaResource class. r=jwwang
For the project to export Gecko's media stack and import it into Servo,
I need a way to shutdown an abstract MediaResource. So I'd like to move
BaseMediaResource::Close() up into MediaResource class.

MozReview-Commit-ID: 9JmxJPs02PN

--HG--
extra : rebase_source : e61cc1a3a79b3e4ca7e9fa86a602e6e26044e247
2017-12-04 16:29:35 +13:00
Coroiu Cristina 3f75a6d410 Backed out changeset 7a2629417a47 (bug 1422662) for bustage r=backout on a CLOSED TREE 2017-12-04 09:21:51 +02:00
Chris Pearce f2f6e686df Bug 1422662 - Move BaseMediaResource::Close() into MediaResource class. r=jwwang
For the project to export Gecko's media stack and import it into Servo,
I need a way to shutdown an abstract MediaResource. So I'd like to move
BaseMediaResource::Close() up into MediaResource class.

MozReview-Commit-ID: 9JmxJPs02PN

--HG--
extra : rebase_source : 77128d1f78bea516dda92cdae6975d010a4b303c
2017-12-04 16:29:35 +13:00
JW Wang da8d5c072e Bug 1422657. P2 - remove unused mDecoderPosition and related code. r=bechen,gerald
MozReview-Commit-ID: 8RobmJKC40i

--HG--
extra : rebase_source : 50037c4dbe422f911819f845548b0ba69ac5d35f
2017-12-01 14:02:44 +08:00
JW Wang 972cab9021 Bug 1422657. P1 - GetStatistics() should pass mPlaybackPosition to mResource->GetCachedDataEnd(). r=bechen,gerald
Usually mDecoderPosition and mPlaybackPosition are in the same cached range so
GetCachedDataEnd(mDecoderPosition) and GetCachedDataEnd(mPlaybackPosition) will
give the same result.

It also makes more sense to pass the playback position instead of decoder
position since 'canplaythrough' is about playback instead of decoding.

MozReview-Commit-ID: Kk1uUeSFTCI

--HG--
extra : rebase_source : 354fe5b4a6fb73a477ded40bf5fb91979a2c2a8a
2017-12-01 13:53:46 +08:00
John Lin 33546f8acf Bug 1392747 - add debug message to trace media shutdown process. r=jwwang
MozReview-Commit-ID: LL19lxlSJem

--HG--
extra : rebase_source : 57ace04484fd3c4f9687e0f79745249358edf56b
2017-11-29 16:28:11 +08:00
Noemi Erli c528f7e479 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-12-02 23:47:37 +02:00
Karl Tomlinson bd04f5c597 bug 1339889 fix typo to address review comment from bug 1339438#c4 r=pehrsons
MozReview-Commit-ID: 4W3mYyZgoBt

--HG--
extra : transplant_source : %F2%02%E5%0D%E5%7D%9EQ%D4%FC%D4_%A9%BF%9B%D8E%B9%8D%84
2017-12-02 21:44:59 +13:00
Alex Chronopoulos 8904b64329 Bug 1406772 - Get channel count from MSG. p=padenot
MozReview-Commit-ID: 8aFdJkfcbCA
2017-12-01 23:21:42 +02:00
Gurzau Raul 1c0a590e09 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-01 13:00:44 +02:00
JW Wang 855a4bc6c4 Bug 1421875. P3 - remove MediaDecoder::DownloadProgressed() which is basically a one-line call to GetOwner()->DownloadProgressed(). r=bechen,gerald
Also devirtualize ChannelMediaDecoder::DownloadProgressed() and move it to private.

MozReview-Commit-ID: ITv3ISRbN5t

--HG--
extra : rebase_source : aa75bc11fc1a4af8df15db9224928b1f02267b80
2017-11-30 11:21:14 +08:00
JW Wang 7c3304f247 Bug 1421875. P2 - move MediaDecoder::NotifyDataArrived() down the class hierarchy. r=bechen,gerald
For it is never used by ChannelMediaDecoder.

MozReview-Commit-ID: Jtvlj0iwTm7

--HG--
extra : rebase_source : 8582486e0403cf78366adfdc0c11fab42fedb1c9
2017-11-30 11:07:13 +08:00
JW Wang 9262b684e3 Bug 1421875. P1 - rename MediaDecoder::NotifyDataArrivedInternal(). r=bechen,gerald
MozReview-Commit-ID: DVzTX4GePtB

--HG--
extra : rebase_source : 82b1f291468aa7e20d661161c9e83ec41a3864ab
2017-11-30 10:51:56 +08:00
Sebastian Hengst 7cbd9c3050 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-12-01 01:25:54 +02:00
JW Wang 0d7066652a Bug 1421864 - move mChannelStatistics from ChannelMediaResource to MediaCacheStream. r=bechen,gerald
So it is callable from non-main thread.

MozReview-Commit-ID: atYmz4u2c9

--HG--
extra : rebase_source : 2e10064730b3e7e1ecb1a4fd65cf2e2da0390290
extra : source : 5680a6942f6985f9c6bbf284a9768ab910b37804
2017-11-29 16:49:54 +08:00
JW Wang 1ee2ce9a65 Bug 1421861 - remove unused MediaStatistics::mDecoderPosition. r=bechen
MozReview-Commit-ID: LxZtvFpg3mD

--HG--
extra : rebase_source : 5f3c9132a386b1d290b8c0b169011baec4240b34
extra : source : b30985c8d5b99f6770d156942e5f91a0a408513a
2017-11-29 10:57:40 +08:00
Alastor Wu e4e20429c8 Bug 1415478 - part3 : add tests. r=jwwang
MozReview-Commit-ID: ALFQcKRKk7c

--HG--
extra : rebase_source : f3336de39be80552b422566feb8eac527ec9a912
2017-11-30 10:50:23 +08:00
Alastor Wu d7ce5bde2b Bug 1415478 - part2 : allow autoplay for non-audible media content and video without audio content. r=jwwang
Per UX spec, we would allow non-audible media (volume 0, muted, video without audio track)
to autoplay.

MozReview-Commit-ID: HKUyt5Jt4sH

--HG--
extra : rebase_source : 83e53a0035d72984494948f131a5d6e516baa577
2017-11-30 10:50:21 +08:00
Alastor Wu e750ccbccf Bug 1415478 - part1 : turn on the pref on Nightly build. r=jwwang
MozReview-Commit-ID: AJva2ypm7BJ

--HG--
extra : rebase_source : 385bcf45aa417de1593adcc506a047caa5b14f35
2017-11-30 10:50:17 +08:00
Bogdan Tara a14227d83a Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-30 01:08:24 +02:00
Bogdan Tara dbf72d85a4 Merge autoland to mozilla-central r=merge a=merge on a CLOSED TREE 2017-11-30 00:36:53 +02:00
Ryan VanderMeulen 5395ec18d2 Backed out 3 changesets (bug 1421025, bug 1388219) for causing bug 1421706 on a CLOSED TREE.
Backed out changeset 1a69438ec05f (bug 1421025)
Backed out changeset 213c2c200c08 (bug 1388219)
Backed out changeset 341aaeb4ce69 (bug 1388219)
2017-11-29 17:00:27 -05:00
Dorel Luca be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Alfredo.Yang d5ba0f15df Bug 1419682 - use unwrap_or() instead of map() lambda. r=kinetik
MozReview-Commit-ID: Er1CjuPDAF5

--HG--
extra : rebase_source : d8b924087272351901b07877d126ac85b7fdbfc7
2017-11-22 17:15:37 +08:00
JW Wang 0e04b33f33 Bug 1421134. P2 - run MediaCacheStream::SetReadMode() off the main thread. r=bechen,gerald
MozReview-Commit-ID: A6ui5dtWhNt

--HG--
extra : rebase_source : fef676273887d5db2fd798a6bcc25fbc936c375d
extra : source : beaec56918f2dbd0e1bd052d92a31fbcca1cd084
2017-11-28 10:51:47 +08:00
JW Wang 1ae4603e61 Bug 1421134. P1 - default MediaCacheStream::mCurrentMode to MODE_METADATA. r=bechen,gerald
We always read metadata when decoding starts. This allows us to remove the call
to mResource->SetReadMode(MediaCacheStream::MODE_METADATA) in ChannelMediaDecoder::Load().

MozReview-Commit-ID: AQMq4HxDZdT

--HG--
extra : rebase_source : 141c43bb93f274d8320a270b5c7289bd1eab134d
extra : source : 7de3d88ddb5c99352f4b5bd0b5e648a52a4a67a5
2017-11-28 10:43:50 +08:00
JW Wang 57ea5cf9d9 Bug 1420819 - run MediaCache::Flush() off the main thread. r=bechen,gerald
MozReview-Commit-ID: 4QR1TvORZlz

--HG--
extra : rebase_source : 1451c437c6daf80b15b6f23552900e2ef2467324
extra : intermediate-source : 3a0bdc29f6c70ac2a1479dbc7f10ebbd52a68456
extra : source : da25c3537d9b4665dff55f615467bcb62e5dde56
2017-11-27 15:04:21 +08:00
Tiberius Oros 18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Alastor Wu 258e1d56df Bug 1420488 - part1 : bless media if media has started playing before. r=jwwang
If the media has started playing before, bless it and it would always be allowed
to autoplay.

MozReview-Commit-ID: 4GqMARLXULU

--HG--
extra : rebase_source : 2fdb3937156147755f8e387b1d84311ae1d37ce4
2017-11-29 18:59:56 +08:00
Sebastian Hengst c4e3d3a858 Backed out 2 changesets (bug 1420488) for eslint failures in toolkit/content/tests/browser/browser_autoplay_policy_play_twice.js. r=backout
Backed out changeset 92bd0fcb67d5 (bug 1420488)
Backed out changeset 0f211029517c (bug 1420488)
2017-11-29 17:31:28 +02:00
Alex Chronopoulos 758db182f3 Bug 1419378 - Fail before stream init when output number of channels is zero. r=padenot
MozReview-Commit-ID: G2bjXhAXiqz

--HG--
extra : rebase_source : 21cf22e4afd4065835a5323ed0ab44a55035f0db
2017-11-28 12:57:02 +02:00
Jean-Yves Avenard 46c877fa75 Bug 1421187 - P4. Make mac decoder output YUV420 format. r=mattwoodrow
There's little advantage over using NV12 and using YUV420 allows for easier and faster frame copy. We assume of course that Apple's VideoToolbox have more optimized code than we do.

MozReview-Commit-ID: IjvepxW3OZI

--HG--
extra : rebase_source : 089f5a63c4871366aed8f0c0ef3ef6bd3c2d0a0f
2017-11-28 16:41:40 +01:00
Alastor Wu 28c25979d7 Bug 1420488 - part1 : bless media if media has started playing before. r=jwwang
If the media has started playing before, bless it and it would always be allowed
to autoplay.

MozReview-Commit-ID: 28X4TmG25aJ

--HG--
extra : rebase_source : 3fd7cb16da9e7f925ad7020fb74c48537e08a996
2017-11-29 18:05:56 +08:00
bechen@mozilla.com d1d01fcc67 Bug 1417820 - fix regions-id.html. r=rillian
Insert space character when we concatenate the string in HEADER. Then split them by ASCII whitespace.

MozReview-Commit-ID: 12jov2hKK2E

--HG--
extra : rebase_source : ed9dd2c9f0fd64083311166424b47b10e6c9cbdc
2017-11-28 18:40:25 +08:00
bechen@mozilla.com 9ac8fcc879 Bug 1417820 - Replace "=" by ":". r=rillian
MozReview-Commit-ID: K83rsOwdI6k

--HG--
extra : rebase_source : 445872525e8e1a7ba237e8cd7b51d14d6ed0f4f4
2017-11-28 16:49:21 +08:00
Dorel Luca 79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Jean-Yves Avenard 424a8ff8a0 Bug 1417973 - Always use the AMD GPU decoder. r=mattwoodrow
High resolution, high framerate was disabled by default on old AMD cards on the provisio that it was bad. But this assumes that the CPU decoder could do it better.
This assumption appears fragile at best, as CPU with those old adapter are likely to be old and underpower to start with.

Chrome doesn't appear to restrict use of those cards to a given resolution.
So we disable this restriction, while making it user configurable.

MozReview-Commit-ID: HhADHNR0FdJ

--HG--
extra : rebase_source : ece39cd9b84c6e372d1002ee12e72523cee3d04d
2017-11-22 20:58:09 +01:00
JW Wang 496d14a291 Bug 1415441 - Eagerly init gMediaDecoderLog to debug crash. r=cpearce
MozReview-Commit-ID: E7ZDdQwZ32
2017-11-08 15:34:19 +08:00
JW Wang a2551c1319 Bug 1416799 - Fix crash when seek fails. r=cpearce 2017-11-14 16:12:58 +08:00
Ciure Andrei 48e5c9892f Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-02 12:19:55 +02:00
Nico Grunbaum bc576f0c9f Bug 1363667 - P7.1 - await on sync sources in mochitest r=mjf
MozReview-Commit-ID: 200XlBGldKa

--HG--
extra : rebase_source : f938688300a346ec080b44dd0080187b7e5163b2
2017-11-16 22:06:57 -08:00
Nico Grunbaum 98751926ce Bug 1363667 - P7 - RTP Source mochitests r=mjf
MozReview-Commit-ID: D4kBN2hVYpo

--HG--
extra : rebase_source : 02a668baf6c6880c2029c23fac7c433978c68d6c
2017-11-14 10:34:53 -08:00
Nico Grunbaum a3f1b24f7a Bug 1363667 - P6 - RTP Source PeerConnection JS impl r=mjf
MozReview-Commit-ID: CkFY5fABkr

--HG--
extra : rebase_source : 85e274f27600affb29d09e16f9c6d43dee191df3
2017-11-14 10:32:07 -08:00
Nico Grunbaum b42a174bc8 Bug 1363667 - P3 - RTP Source Observer r=mjf
MozReview-Commit-ID: BwZhi49KlfB

--HG--
extra : rebase_source : b6b9230d07848952a200d2ded956d39439e5dc1e
2017-11-14 10:17:10 -08:00
Geoff Brown 057598fdaa Bug 1421830 - In test_peerConnection_scaleResolution.html, close RTCPeerConnections; r=jib 2017-11-30 10:12:52 -07:00