Commit Graph

10531 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
e1e203f1f5 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
JW Wang
aab9f27e0f Bug 1359309. P1 - give mozilla::TaskQueue a name which will be useful in debugging Dispatch() failures. r=jya
MozReview-Commit-ID: 5FAVNo32fl7

--HG--
extra : rebase_source : 761fca752429d95e97be699976283baa35c64abb
extra : intermediate-source : 83282a7a5adbe7046212da85f9d16e39faa4bd5c
extra : source : 924af3ea0aa86888fd2745020be7900e6eb614f0
2017-04-25 14:57:55 +08:00
Carsten "Tomcat" Book
eff0fbf63b Backed out changeset e0bab3ab79ff (bug 971528) for asan mda failures on a CLOSED TREE 2017-04-27 13:02:47 +02:00
Carsten "Tomcat" Book
d5910216dc Backed out changeset b1eaf2cd0068 (bug 971528) 2017-04-27 13:02:02 +02:00
Alex Chronopoulos
fcd72ab331 Bug 971528 - Expect stereo input in MediaEngineWebRTCMicrophoneSource. r=padenot
MozReview-Commit-ID: 4W1TsogHQnL

--HG--
extra : rebase_source : 7fa552fcf4c159f5c65f33336ab2031761332a03
2017-04-27 10:24:36 +03:00
Alex Chronopoulos
e79da75180 Bug 971528 - Allow stereo capture in AudioCallbackDriver. r=padenot
* * *
[mq]: graph-driver-comments

MozReview-Commit-ID: JnU3opk8X5K
* * *
[mq]: tmp

MozReview-Commit-ID: 73CtZw4CRG

--HG--
extra : rebase_source : bca0932ccffc6348260039fc7ec829245a9b2236
2017-04-27 10:24:25 +03:00
JW Wang
1915d358a7 Bug 1359725 - add timeout to LoadInitData() in eme.js. r=gerald
So we can cancel the bad test as soon as possible and give a better description about the error.

MozReview-Commit-ID: ExKIK2HqJkN

--HG--
extra : rebase_source : 26391dfea33ab792cc5f0dc58fa42e6309e0c699
extra : source : 138125800895658a6feb88e3f90487d62b955f6a
2017-04-26 16:22:08 +08:00
JW Wang
54ae314fcc Bug 1358972. P2 - remove MediaDecoder::mEstimatedDuration and its friends which is never modified. r=kaku
MozReview-Commit-ID: 7W331tookXV

--HG--
extra : rebase_source : 2555fbdb4c5480e6880a67e71827ca06d6857992
extra : intermediate-source : c035bdc6f8e47cc92fa5d6b66421d319d9cd2e92
extra : source : 49ec1fd9914624f5aa4ea87bf4deb8b47017e288
2017-04-17 17:20:06 +08:00
JW Wang
381be5ed72 Bug 1358972. P1 - remove unused code. r=kaku
We can remove AbstractMediaDecoder::UpdateEstimatedMediaDuration() which
has no callers at all.

MozReview-Commit-ID: Eub12jQ25KK

--HG--
extra : rebase_source : f564b84a147252bd98c13fe475af971808880c8c
extra : intermediate-source : 4c0870a71b2091c39f5fc67c5cf21dea0a4cc459
extra : source : 1bfe40324a3801f8d60384b247d85f04b8971bbe
2017-04-17 17:10:09 +08:00
JW Wang
f6a893a644 Bug 1358969 - let MediaDecoder::CurrentPosition() return a TimeUnit. r=kikuo
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: K3Bz3uEXLDK

--HG--
extra : rebase_source : ade3cbd61c764b73a22c360572a525127dbadbc5
extra : intermediate-source : 013227a4aa645fc34a82c44130db6c847d74960b
extra : source : 1ab7ce426b557e4ce9979e023f9e84b4690eeaaa
2017-04-17 17:04:39 +08:00
Chris Pearce
ce7bb69227 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 92870f1adc7ae68e58b15443e4223012bdf0e39a
2017-04-26 15:46:09 +12:00
Iris Hsiao
c43c229375 Backed out changeset 0b8bf5cb743f (bug 1358373) for build bustage. a=backout
CLOSED TREE

--HG--
extra : amend_source : f6fd0c93b8b1ff9cc111cc4bc7776dd8e2a383d0
2017-04-27 10:10:47 +08:00
Chris Pearce
ecfe3c34c4 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 4beba0212411a0f5867feb506bbf732f5a934fa9
2017-04-26 15:46:09 +12:00
Wes Kocher
2768cd5d15 Backed out 5 changesets (bug 1320994) for browser_downloads_panel_block.js permafails on Win7VM a=backout
Backed out changeset b744a070cafb (bug 1320994)
Backed out changeset 5766ba7143b4 (bug 1320994)
Backed out changeset 31afc3fcd61f (bug 1320994)
Backed out changeset 78e5f8775727 (bug 1320994)
Backed out changeset 6d4e1736fd69 (bug 1320994)

MozReview-Commit-ID: 9tPD6gwXttd

--HG--
extra : rebase_source : 56cb2ac6d2e057b171d74cd529b53e617c716b4c
2017-04-26 15:21:54 -07:00
Andreas Pehrson
0dcc290a85 Bug 1320994 - Improve SourceListener logging. r=jib
MozReview-Commit-ID: 1xuLwpMHMQB

--HG--
extra : rebase_source : 0e964f4b41ff53c678fa015001156f3af27563db
2017-03-29 12:07:45 +02:00
Andreas Pehrson
3294058c0a Bug 1320994 - Unify MediaManager logging macros. r=jib
MozReview-Commit-ID: 14b6cXgOqP8

--HG--
extra : rebase_source : cb702280e9b3fcfcd09a11feeb9f8dfbdf115580
2017-03-29 12:06:49 +02:00
Andreas Pehrson
edff555cf5 Bug 1320994 - Refactor MediaManager's window management. r=jib
This in large does the following:

* Changes the model in MediaManager to align with that of chrome code, namely:
 - One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
 - GetUserMediaWindowListener replaces GetUserMediaStreamListener
 - So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome

MozReview-Commit-ID: 3wbPFmc9yWj

--HG--
extra : rebase_source : 4ad324f6bb1be637da584f323a3e039c5b4f664d
2017-04-26 11:13:40 +02:00
Sebastian Hengst
e2b326b729 Backed out changeset a5cb0de6bdb2 (bug 1357040) for failing various media-related wpt tests, e.g. mediasource-activesourcebuffers.html. r=backout 2017-04-26 11:17:12 +02:00
Carsten "Tomcat" Book
3b4328e578 Merge mozilla-central to autoland
--HG--
extra : rebase_source : bc4cd926477775ac802f400a79f553034d569a18
2017-04-26 09:08:31 +02:00
Wes Kocher
5e8bdb175d Merge inbound to m-c a=merge
MozReview-Commit-ID: A85cs7Yriqj
2017-04-25 13:53:00 -07:00
JW Wang
80c9f230f3 Bug 1359715 - let functions in MediaData.h take TimeUnit instead of int64_t. r=kaku
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: LRz9d4yKBYJ

--HG--
extra : rebase_source : 1f73f1f338142b3183491d04726821a881ccabbe
extra : intermediate-source : 88e167b7b06303d10d92cd5317502f405d1c553e
extra : source : 98deb30ec93d395f9951f5fc488170ae35e29675
2017-04-24 17:33:05 +08:00
Jean-Yves Avenard
ad655988c9 Bug 1357040: Abort if demuxer initialisation isn't complete. r=jwwang
MozReview-Commit-ID: 9SSgQq272My

--HG--
extra : rebase_source : 2910cdbbb33bf6386243d6dd6eb4a2a62a87475f
2017-04-25 15:28:31 +02:00
JW Wang
0af5a6c95e Bug 1358399. P7 - remove unused code. r=gerald
1. The 'onlyLoadFirstFragments' flag is not used anymore.
2. The 'noEndOfStream' flag is never set to true.
3. EMEPromiseAll has no callers.

MozReview-Commit-ID: BH3r5AvMOSN

--HG--
extra : rebase_source : dbe002d18d448d63e5b9e869f194cfbb54a498f8
extra : intermediate-source : d6a8bf58e8e29e726986d0c8e6159231dfe8aac4
extra : source : 5a899425c326ff63365a99e314a728e6a0125a7f
2017-04-22 08:22:11 +08:00
JW Wang
c71c3df555 Bug 1358399. P6 - rewrite SetupEME() using the new helper functions and fix its callers. r=gerald
MozReview-Commit-ID: KUXhvPIuXry

--HG--
extra : rebase_source : b067b139dd536fb84bd6b89705efae920fa5b44b
extra : intermediate-source : a36fea44e27326b83af292f23bed7ba48c3d3ab9
extra : source : 3ec2d58a8a10d1eb0f32f16bcb7835762519b4c9
2017-04-21 18:06:31 +08:00
JW Wang
116b20a522 Bug 1358399. P5 - rewrite test_eme_stream_capture_blocked_case1.html using the new helper functions. r=gerald
Note we don't need to pass the 'onlyLoadFirstFragments' flag
since we ensure the test won't finish until LoadTest() is resolved.

MozReview-Commit-ID: 2cFDGhqWkrP

--HG--
extra : rebase_source : 6c647f2238e9a73297c8ec449a965129e9ad47db
extra : intermediate-source : 8562a1de41a9ce008f862611a31c4f1f014e891d
extra : source : 1aaad490dc44b9a33c92e724dedf4d4ca600febb
2017-04-21 17:37:30 +08:00
JW Wang
3aba8d4512 Bug 1358399. P4 - rewrite test_eme_playback.html using the new helper functions. r=gerald
MozReview-Commit-ID: HUQcM7If6IQ

--HG--
extra : rebase_source : 733c419fde0ee8fef58b4d044565ffa0aed6ca8f
extra : intermediate-source : d5bcaa3617b41d6946737556828fc91fd4150b4f
extra : source : 1cd3ca11c04a9d17fb2146ce3a31771da508a499
2017-04-21 17:10:32 +08:00
JW Wang
d73ad878ae Bug 1358399. P3 - rewrite test_eme_waitingforkey.html using the new helper functions. r=gerald
MozReview-Commit-ID: 5os3dUhTN5v

--HG--
extra : rebase_source : c9feb41635e669e185068db46025cc3afa89ec93
extra : intermediate-source : 44d35cde9e82fa8c9abe431a6a0ec23ab448655f
extra : source : 1727f52de8446d6cfb2185c8c929a2efcd8e9451
2017-04-21 17:10:13 +08:00
JW Wang
4054b9864b Bug 1358399. P2 - split SetupEME() into small functions which will be useful in next patches. r=gerald
MozReview-Commit-ID: 7IZUYZaSlIr

--HG--
extra : rebase_source : 57a4556b4ce0bb6e5f2fd04b812de4613bd4c31a
extra : intermediate-source : 5a336b709abeeaace6167b52d7d8c67c0c27218b
extra : source : f4e04d207b81793218d231cbec4aa8d4a0101318
2017-04-21 17:05:18 +08:00
JW Wang
c351b765ff Bug 1358399. P1 - move "elem.crossOrigin = test.crossOrigin || false" from SetupEME() to LoadTest() to improve cohesion. r=gerald
The attributes are used by MaybeCrossOriginURI() which is called by LoadTest() indirectly.

MozReview-Commit-ID: LH2STpONuCE

--HG--
extra : rebase_source : 5762de80943d30064df0d4a69ebe7d36a12f308b
extra : intermediate-source : 73e455a974c9bc3609b72d3ffbbcbc6f1077f62b
extra : source : 7802185d9bcaec4f7377de94e4876d995a8ab019
2017-04-21 14:29:25 +08:00
Alastor Wu
c03792963c Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: KPuhxCVezOZ

--HG--
extra : rebase_source : 74a9c9a9746d0add26f279c6dd5ddc30681be901
2017-04-26 12:02:32 +08:00
Phil Ringnalda
6b3d58414b Backed out changeset 6e7efb9115fd (bug 1358061) for build bustage
CLOSED TREE

MozReview-Commit-ID: F9FSciVgynw
2017-04-25 20:55:30 -07:00
Alastor Wu
da6126aa49 Bug 1339449 - Re-enable video-replay-after-audio-end.html crashtest. r=jya
MozReview-Commit-ID: Eknt8O0HEfv

--HG--
extra : rebase_source : 83894debf8784cd0db5048d67320c29497324704
2017-04-25 12:38:47 +08:00
Alastor Wu
222377e8ac Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: BwZ6vHUPnSB

--HG--
extra : rebase_source : c92556cf92ff96b8014281396b28e1e232aa8576
2017-04-25 12:19:28 +08:00
Sebastian Hengst
7349ffcf3d Backed out changeset 555b0322f776 (bug 1358662) for failing mda, crashtests and reftests. r=backout
Android 4.3: mda: test_EndedEvent.html, test_FrameSelection.html
OS X 10.10 debug: mda: test_BufferingWait.html

Linux x64 asan&pgo:
crashtest: video-replay-after-audio-end.html
reftest: bug686957.html
2017-04-25 22:36:21 +02:00
Sebastian Hengst
388d65b332 Backed out changeset 20e051241152 (bug 1358662) 2017-04-25 22:36:21 +02:00
Sebastian Hengst
7b18dee274 Backed out changeset a3284ad8a14c (bug 1358662) 2017-04-25 22:36:21 +02:00
Sebastian Hengst
22303ff8eb Backed out changeset 5da7e883ba70 (bug 1358662) 2017-04-25 22:36:20 +02:00
Sebastian Hengst
303542221f Backed out changeset 377615a0cf70 (bug 1358662) 2017-04-25 22:36:20 +02:00
Ralph Giles
9960954550 Bug 1358662 - Call VPXDecoder libvpx wrappers for WebM. r=jya
Use the new helper functions instead of calling libvpx directly.
This simplifies adding other codecs in the future.

MozReview-Commit-ID: 8VX0d5S50EE

--HG--
extra : rebase_source : c870b32bac6b924188dd722c052fb88156ad96c8
2017-04-24 15:08:50 -07:00
Ralph Giles
20c544fb86 Bug 1358662 - Implement keyframe and framesize VPXDecoder helpers. r=jya
Encapsulate code from WebMDemuxer to query keyframe and frame
resolution inside VPXDecoder, so we have a clean wrapper for
all the libvpx functions we use.

MozReview-Commit-ID: ASRRhNl0A41

--HG--
extra : rebase_source : a1421462f6fc66a2abd965782ec408a8bcf7fe1f
2017-04-24 15:05:01 -07:00
Ralph Giles
ebeeb5aa45 Bug 1358662 - Add Span support to MediaRawData. r=jya
MozReview-Commit-ID: A3bHPlk0MQi

--HG--
extra : rebase_source : 7d6de44693c3de089800ecfd4ab6c00570311d30
2017-04-21 16:12:55 -07:00
Ralph Giles
83de6e82b7 Bug 1358662 - Store VPXDecoder codec as an enum. r=jya
Use the enum we already have here instead of converting
to an int when we pass it around, giving us better
type checking.

MozReview-Commit-ID: Gj4xmtQnzw2

--HG--
extra : rebase_source : 95f582e655f1a942dfb68cbba588c44afbb8a38f
2017-04-24 15:02:54 -07:00
Ralph Giles
afff134a91 Bug 1358662 - Store LastSeenFrame dimensions as an nsIntSize. r=jya
This simplifies the comparison and update logic.

MozReview-Commit-ID: A6YII8tlEUn

--HG--
extra : rebase_source : ddf4304298209e515eb44962e8bc9ccd38c9956f
2017-04-21 18:05:46 -07:00
Jonathan Watt
c8124fabe7 Bug 1359155, part 2 - Convert MediaEngineTabVideoSource::Draw to use Moz2D's StrideForFormatAndWidth. r=mstange
MozReview-Commit-ID: 17XoZDOPRuN
2017-03-30 15:58:31 +01:00
Munro Mengjue Chiang
699799aeb9 Bug 1358030 - add mochitest for webrtc android remote h/w encoder. r=jib
MozReview-Commit-ID: JCtWTNg89io

--HG--
extra : rebase_source : 8cd05b1b1fa270bf0fb9dbee9b899ee24d4b0d69
2017-04-20 14:54:55 +08:00
Iris Hsiao
1548482ea5 merge mozilla-inbound to mozilla-central a=merge 2017-04-25 11:21:30 +08:00
Wes Kocher
0c551a1721 Merge inbound to central, a=merge
MozReview-Commit-ID: 2tbIf1rfy0p
2017-04-24 15:53:30 -07:00
Sebastian Hengst
38b7615ab3 Backed out changeset df17c800d8f2 (bug 1358876) for crash test bustage. r=backout
"AndroidVersion is not defined"
2017-04-24 17:35:37 +02:00
Bob Clary
33ee94b632 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Carsten "Tomcat" Book
8e84189916 Merge mozilla-central to mozilla-inbound 2017-04-24 16:07:21 +02:00