Commit Graph

11347 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
b3e81e29a0 Merge mozilla-central to autoland 2017-07-24 15:00:31 +02:00
Sebastian Hengst
9fc62e5079 Backed out changeset a4ea1d5fcb4e (bug 1197045) for eslint failure at Troubleshoot.jsm:401: 'winUtils' is assigned a value but never used. r=backout 2017-07-24 13:24:28 +02:00
Sebastian Hengst
0a44c0dc0a Backed out changeset cf756c62b0a6 (bug 1197045) 2017-07-24 13:23:48 +02:00
Jean-Yves Avenard
bb0627f06b Bug 1383122 - P4. Don't set src attribute to empty string. r=jwwang
MozReview-Commit-ID: EzQCVIIjOIe

--HG--
extra : rebase_source : af21c6749f22ae98cf3d81577eb0476dcca99035
2017-07-24 10:58:03 +02:00
Jean-Yves Avenard
64c70317ce Bug 1383122 - P3. Don't set src attribute to null. r=jwwang
Setting the src attribute to null was incorrect, per spec https://www.w3.org/TR/WebIDL-1/#es-DOMString, if null is passed, this is to be treated as ToString(null), which is "null" (https://tc39.github.io/ecma262/#sec-tostring).
Hence setting src to null will cause a 404 error as it attempts to load "null".

To unload the element, recommended practice is:
Per spec:
https://html.spec.whatwg.org/multipage/media.html#best-practices-for-authors-using-media-elements
"by removing the element's src attribute and any source element descendants, and invoking the element's load() method."

MozReview-Commit-ID: 5Lq13CeDCSZ

--HG--
extra : rebase_source : 806bccb32fa0542ea3be3025a31da97bb331b29c
2017-07-21 19:05:54 +02:00
Jean-Yves Avenard
9b0e4b6c44 Bug 1383122 - P2. Amend mochitest to ensure null is properly converted to "null" string. r=jwwang
MozReview-Commit-ID: 13eeL3siXpy

--HG--
extra : rebase_source : 1cfa108414695ffc69c47d5fa9d494ee94c7b15a
2017-07-21 19:23:05 +02:00
Jean-Yves Avenard
eb9666fa81 Bug 1383122 - P1. Amend Mochitest to ensure error doesn't occur. r=jwwang
MozReview-Commit-ID: 4xHD8KjY0XT

--HG--
extra : rebase_source : e6a8c22ee37537bcd6cdb98487796854ad116227
2017-07-21 18:44:11 +02:00
James Cheng
4843d195fb Bug 1382151 - Pause Exoplayer when mediaelement is paused. r=kikuo
MozReview-Commit-ID: 5MDBBP5vfpa

--HG--
extra : rebase_source : 9981585791cd359296ac7fef0fe0d7e900af6c61
2017-07-20 17:47:54 +08:00
Chun-Min Chang
70ec0769ce Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Wes Kocher
fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Wes Kocher
a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
Chun-Min Chang
13ab7bac64 Bug 1197045 - part1: Create an AudioDeviceInfo to expose the native device information; r=kinetik
MozReview-Commit-ID: 2N2BkZUVOca

--HG--
extra : rebase_source : 499d069251f3231a2fd5ddbd55aaa5b5f4124723
2017-07-13 14:01:36 +08:00
Bob Owen
459f9f007d Bug 1383611: Pre-load psapi.dll for widevine CDM as it needs it for GetMappedFileNameW. r=cpearce 2017-07-24 20:01:06 +01:00
Paul Adenot
b9e645073e Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : f47568d3db129ff8d9a484d5b5554f1154d53133
2017-07-24 11:17:14 +02:00
Nicholas Nethercote
90eaa02ea0 Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/media/. r=gerald.
As well as the obvious #ifdefs, this allows DOMHwMediaStream to be
removed, and also the "phone-state-changed" observer.

--HG--
extra : rebase_source : 373280183e228bd4b9bd9d866959409f2444c77e
2017-07-24 10:08:55 +10:00
Sebastian Hengst
f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Wes Kocher
d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher
e4f2d0a9db Backed out changeset cd615bff6069 (bug 1375119) for android mochitest failures in test_webaudioNotification.html a=backout
MozReview-Commit-ID: 4XQnvJ9Qr7R
2017-07-21 15:21:32 -07:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Paul Adenot
78d51fcd94 Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : 5cc3ab7406707427e9e5de1f96597bb16222cf97
extra : source : 2de831b0d2329c02ddd87d60e1d814fe518e3c67
2017-07-21 12:41:52 +02:00
Jan-Ivar Bruaroey
899c0d854f Bug 1382095 - Fix Refcountable<> helper to avoid size mismatch in the memory leak logging table. r=jesup
MozReview-Commit-ID: 5i0iP9aDfHF

--HG--
extra : rebase_source : fcccd6772c147ae04da98ba6c0dcbc714b6cf107
2017-07-01 21:37:18 -04:00
Jan-Ivar Bruaroey
669a221f7a Bug 1382095 - Avoid ref-counting MediaEngineSource itself in setLastPrefs runnables to improve shutdown. r=jesup
MozReview-Commit-ID: LyMIXG9ClRJ

--HG--
extra : rebase_source : 119689ae07bcb4939950a02102ae1b6a936d4708
2017-07-01 15:01:25 -07:00
bechen
55bf6d2d94 Bug 1380571 - Enable test_streams_autoplay.html on Android. r=alwu
MozReview-Commit-ID: FWLFW1E6ThJ

--HG--
extra : rebase_source : 0d2388c3e9ded5dfcd61d7c3135877af5932a005
2017-07-13 14:48:56 +08:00
Alastor Wu
1499ee0710 Bug 1274919 - part3 : only send msg if someone is waiting for it. r=jwwang,mikedeboer
Only send the msg "Browser:UnselectedTabHover" when someone requests for the
msg, it can reduce non-necessary communication.

MozReview-Commit-ID: 2mBUMB4AMVo

--HG--
extra : rebase_source : d7a5103e2713735fdd0f65c7de381b219f4cce26
2017-07-20 15:11:25 +08:00
Alastor Wu
f235c5746c Bug 1274919 - part2 : implement resume/suspend mechanism in MediaDecoder. r=jwwang
Create the new class "BackgroundVideoDecodingPermissionObserver" to handle the
suspended request sent from the front end side.

We would do registration on startup and deregistration on shutdown of MediaDecoder.

MozReview-Commit-ID: 1UwHA7YuVN3

--HG--
extra : rebase_source : a0bc22999fbf799cd25da8ec423d9f03acc9e8e2
2017-07-20 14:13:37 +08:00
JW Wang
87a7705558 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e

--HG--
extra : rebase_source : 48bfd7c681693a965848078c19ac81707ac19540
extra : source : 093ff5fe2ab6dd7551453b10b480fa3553ec135d
2017-07-20 09:56:08 +08:00
JW Wang
ef025c6fcf Bug 1316211. P15 - remove MDR from the base class of MFR. r=gerald
MozReview-Commit-ID: Jf5pCxkhexg

--HG--
extra : rebase_source : 3ec9423d4d0f3b60ee9e5f6f19af18188530e1d9
extra : source : 4fbc225bfc79abacaf47ffd4405ef2d6711dea32
2017-07-19 22:18:37 +08:00
JW Wang
2e40eb607f Bug 1316211. P14 - move members from MDR to MFR. r=gerald
MozReview-Commit-ID: EwdteoEY1uS

--HG--
extra : rebase_source : 2cc250720539ba6c1682efac69d3724164338137
extra : source : d4cc3de1ae224bdca414cd02f4d3473c44fe4d20
2017-07-19 17:34:05 +08:00
JW Wang
5370eb3105 Bug 1316211. P13 - replace use of MediaDecoderReader with MediaFormatReader. r=gerald
We will remove MediaDecoderReader in the future.

MozReview-Commit-ID: BaCRXleKK5a

--HG--
extra : rebase_source : dc14a593d6291136f02b1deb910cd6dcd01c0355
extra : source : 8f71b7dae0a541562c7c3829b5a873e9f9fd2674
2017-07-19 17:01:32 +08:00
JW Wang
fe278cb908 Bug 1316211. P12 - remove some more unused members. r=gerald
MozReview-Commit-ID: IEs0jXrC3tI

--HG--
extra : rebase_source : d1f7d2e51322c46ba16a28e448287d65e83d86f0
extra : source : 9eea2bf7cbbf9ac80d76cf983e9635ad2ae50493
2017-07-19 15:28:02 +08:00
JW Wang
a7d0db5642 Bug 1316211. P11 - remove empty functions. r=gerald
MozReview-Commit-ID: 44blKyrVzLV

--HG--
extra : rebase_source : c65bc3b216cbd2409f22c519100a525f8c01beac
extra : source : dcdb98fbdd1389eaec08ccf32a685774ce53f755
2017-07-19 15:15:14 +08:00
JW Wang
11bf9c01e0 Bug 1316211. P10 - make SizeOf{Audio,Video}QueueInFrames() pure virtual which will be overridden by MFR. r=gerald
MozReview-Commit-ID: 5a4qTXVWdG1

--HG--
extra : rebase_source : 891470ac9bc3df6425ee190a98acea55902bf66f
extra : source : b7916e882c764cd3402f19a0985961a277264f12
2017-07-19 15:12:12 +08:00
JW Wang
0ffa647791 Bug 1316211. P9 - remove SizeOf{Audio,Video}QueueInBytes() that has no callers. r=gerald
MozReview-Commit-ID: A6TbGMdyDGQ

--HG--
extra : rebase_source : 6af7018d0ecea4d11040382ccd3ddf7719979ad2
extra : source : b4a506b3ebfd9ceb8b3eb5a23ea8499e0d3e9ddf
2017-07-19 15:08:27 +08:00
JW Wang
afcae477f6 Bug 1316211. P8 - fix MDSM::SizeOf{Audio,Video}Queue which should count its own queues. r=gerald
MozReview-Commit-ID: HMtkZpMSf3L

--HG--
extra : rebase_source : d533689da3e0678488638a84f1747f80586900b2
extra : source : a6e1edb69b3c88abd8cd4428ab227dbb9bbaf5a3
2017-07-19 15:02:33 +08:00
JW Wang
bfebe64691 Bug 1316211. P7 - remove mAudioQueue and mVideoQueue for we never push data into the queues. r=gerald
MozReview-Commit-ID: AL5JqUIAVXo

--HG--
extra : rebase_source : daf75d0e9a6065769b88d09fa52132f561d5ee77
extra : source : c6901fa2f8c548648606ecc1750ef98a38b8d6ad
2017-07-19 14:49:08 +08:00
JW Wang
7383189ffa Bug 1316211. P6 - move some members from MDR into MFR. r=gerald
MozReview-Commit-ID: 9H17UZjpCDT

--HG--
extra : rebase_source : 42ac663c72e71a4d3dddb995e43fde342e1ff7a8
extra : source : 0eac04f34efeb0c26fd9d09bea9299dbe460ffa9
2017-07-19 14:27:24 +08:00
JW Wang
39d88e8d8b Bug 1316211. P5 - remove IsAsync() and its callers. r=gerald
MozReview-Commit-ID: CT2gyEak2Qz

--HG--
extra : rebase_source : 205bf82c8abe7da9026bff6daab7562a5981ea39
extra : source : a6a543c1d90133036caada487799cac064e2f3f3
2017-07-19 14:24:35 +08:00
JW Wang
2f7cce7073 Bug 1316211. P4 - remove CheckSlowDecoding() and friends since IsAsync() now always returns true. r=gerald
MozReview-Commit-ID: 3dOa0aUQ0kM

--HG--
extra : rebase_source : 3091fc002b28bd9d2b45c330a45c437032c4cf18
extra : source : b6fe47f3e125097d8d5c6dd322c948b6c483980a
2017-07-19 14:19:40 +08:00
JW Wang
669cff3ca0 Bug 1316211. P3 - remove unused members. r=gerald
MozReview-Commit-ID: 4cAHEvMEm9Q

--HG--
extra : rebase_source : bc3d7decf46c5ea5b2b99d0df383875ea99dd035
extra : source : 02bba6d4539ae37085774c09f3ba6c1e3c55b61c
2017-07-19 11:51:53 +08:00
JW Wang
3e0b54aed5 Bug 1316211. P2 - remove dead code. r=gerald
MozReview-Commit-ID: FQNyxabfhrp

--HG--
extra : rebase_source : 45386b4fa0be0038482b3f5ac79498847c38dad2
extra : source : 35829fc167cf54a4e08e52d61241f6c2282400f2
2017-07-19 11:43:59 +08:00
JW Wang
2fa451fa7d Bug 1316211. P1 - make some functions pure virtual for they will be overridden by MFR. r=gerald
MozReview-Commit-ID: 9l8MbDRjLR0

--HG--
extra : rebase_source : f055ef64dfc71e0da709aab69db0049cafe10dae
extra : source : 2e5c4ae8b368b605f397455b3fede770d546fe86
2017-07-19 11:24:51 +08:00
Nico Grunbaum
ebd633ae0a Bug 1371000 - add expiration to noncamera device info;r=jib
MozReview-Commit-ID: 406sbEpJfbk

--HG--
extra : rebase_source : 49f4438a4fe6cbf55db5d535bd8b257c343e4d4d
2017-06-13 17:24:54 -07:00
Chris Pearce
9b79f3e2c6 Bug 1381720 - Add content_decryption_module_ext.h. r=gerald
Updates to Chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Adds Verified Media Pipeline function definitions.

MozReview-Commit-ID: 2H8mMNacQqR

--HG--
extra : rebase_source : d544d6a0c6854ccc29da6ddcc11b4efc8f621036
2017-05-29 17:14:52 +12:00
Chris Pearce
c4af620223 Bug 1381720 - Update content_decryption_module.h. r=gerald
Update to chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Includes cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions,
HDCP definitions, and 10 and 12 bit image format definitions.

MozReview-Commit-ID: bYH3OBSzuT

--HG--
extra : rebase_source : cfc291b3452c2154ecd1ca16a2ece0a5a42f0b5e
2017-05-29 17:14:26 +12:00
Jean-Yves Avenard
d0144aba45 Bug 1382303 - P3. Reduce enough data threadhold to 10s. r=jwwang
We waited 30s until we changed readyState to HAVE_ENOUGH_DATA this would cause autoplay media element to start rather late. In particular with live stream. 10s is typically enough ahead time to start playback.

MozReview-Commit-ID: LJvY8cQYfwZ

--HG--
extra : rebase_source : 4c75326891ba4e9317c432ea7074eb033a77b300
2017-07-20 20:49:06 +02:00
Jean-Yves Avenard
fe81e074b9 Bug 1382303 - P1. Add mochitest. r=jwwang
MozReview-Commit-ID: ENSiDzd2SmW

--HG--
extra : rebase_source : fd590977e460d14cc2596116fe4ce7ee6fb76b97
2017-07-20 19:09:04 +02:00
Nils Ohlmeier [:drno]
d4c97d797d Bug 1383575: remove TURNS log warning. r=mjf
MozReview-Commit-ID: 2nEXokGwErU

--HG--
extra : rebase_source : be66ca2a7d37a78d20d54268e0b5d30cf983d4d8
2017-07-23 15:24:29 -07:00
Zibi Braniecki
086f522fa7 Bug 1356263 - Remove nsLocaleService, nsILocaleService and ns*Locale APIs. r=m_kato
MozReview-Commit-ID: D3N2Lztz5cE

--HG--
extra : rebase_source : c524148b047379ac625eb309e2e7e311c77569ef
2017-08-03 02:33:51 -07:00
JW Wang
35ca16f82f Bug 1386956. P3 - move the call to UnpinForSeek() from ~MediaDecoder() to Shutdown(). r=gerald
It is bad to call a virtual function (UnpinForSeek() -> GetResource()) in the destructor.

MozReview-Commit-ID: Db5pOHjhmQZ

--HG--
extra : rebase_source : 4e998bce930dbb18ad9b84ef33c1cb06167f2402
extra : source : e8e7ed2cdf0bf0f8f0e2d42dd045dfe1f05da28a
2017-08-04 09:46:44 +08:00
JW Wang
d685ec7cc3 Bug 1386956. P2 - move mResource to sub-classes. r=gerald
MozReview-Commit-ID: Ixx8NwZfjhO

--HG--
extra : rebase_source : 65529a6cf6736e6fde61ddd413efa6f38cd96922
extra : intermediate-source : 1d75a416e8452c356f533d13c3037cae07aeb291
extra : source : d14219446670baf0f02da86c412932ec59dbf178
2017-08-03 15:38:28 +08:00
JW Wang
f86786c3e8 Bug 1386956. P1 - replace use of mResource with GetResource() for we will move mResource to sub-classes. r=gerald
MozReview-Commit-ID: I90Xvy4u5Fd

--HG--
extra : rebase_source : 186553067fe9044f927918b85189470ac312dee2
extra : intermediate-source : e51c266bc9527bcd2f4ff7b80883c21ddb56cd24
extra : source : 425527128cf1affe59759773947cf3dd4ce539c7
2017-08-03 14:52:18 +08:00
James Cheng
45315ad152 Bug 1386972 - Remove NS_DispatchToMainThread and use nsIEventTarget to dispatch instead. r=cpearce
MozReview-Commit-ID: JGPrNw5amqg

--HG--
extra : rebase_source : 3d2fb8114d20d9abf9d3ed0f6ab832f1df61b82e
2017-08-03 18:04:34 +08:00
James Cheng
e26f574fc3 Bug 1386971 - Remove NS_DispatchToMainThread and use nsIEventTarget to dispatch instead. r=cpearce
MozReview-Commit-ID: DeN3Cl9fyp2

--HG--
extra : rebase_source : 535bdd4ccf19f766ef65a11fdafc638025e3ebe5
2017-08-03 16:07:15 +08:00
JW Wang
c7c29fe527 Bug 1385699. P5 - fix AudioEndTime() and VideoEndTime(). r=cpearce
AudioEndTime() returns 0 if the media sink is not started. This is wrong
because the audio/video end time should be at least the current position
to ensure playback won't go backwards.

http://searchfox.org/mozilla-central/rev/bbc1c59e460a27b20929b56489e2e55438de81fa/dom/media/MediaDecoderStateMachine.cpp#2009-2012
This fix the case where we wrongly set playback position to 0 after seeking
to the end of resource.

MozReview-Commit-ID: 2VnTcqyIvoJ

--HG--
extra : rebase_source : 3abb59053952c018b1bff8c442450e98845a4947
extra : source : 3dc1a61d32e5be587f5f6892217fe9fe25ca533b
2017-08-02 18:00:00 +08:00
JW Wang
17554a637a Bug 1385699. P4 - MediaDecoder::mExplicitDuration doesn't need to be a canonical anymore. r=cpearce
MozReview-Commit-ID: 4FUwQRS2K1m

--HG--
extra : rebase_source : 66b2f1a9fcdf54abd61f071847c1469ad3a3c5c4
extra : source : 0da2d6137100d1cb3ec33d5ce735252eeba3ac62
2017-08-01 15:06:13 +08:00
JW Wang
1ab15ede36 Bug 1385699. P3 - remove MediaDecoder::SetInfinite() and related code. r=cpearce
Since inf can be encoded in MDSM::mDuration, we don't need an additional flag
in MediaDecoder to indicate 'infinite' anymore. Note duration change from infinite
to finite is handled by MDSM, so we can remove the explicit calls to SetInfinite(false).

MozReview-Commit-ID: EoxwZJzPAJl

--HG--
extra : rebase_source : 669d7ed5b99a89b1827f60f89e0a21f08a18dedd
extra : source : a30b614784afe8772b2212728c1e4a2eac67f94b
2017-08-01 14:15:29 +08:00
JW Wang
42dab72def Bug 1385699. P2 - rewrite the code of calculating duration in MDSM. r=cpearce
We pretty much rewrite the whole logic of duration calculation of MDSM.
The new logic is much simpler for we have only one duration to manage
which is mDuration. Below is the details of the code changes:

1. remove the mExplicitDuration mirror since it should be handled in MediaDecoder.
2. remove mObservedDuration and mDuration will take its place.
3. mDuration is updated from:
   a. metadata
   b. playback position as playback progresses.
   c. buffer ranges.
4. change mDuration to be finite when playback reaches the end.

MozReview-Commit-ID: 1EmlWvmw1R2

--HG--
extra : rebase_source : 54110160af6e167cdb59b24e1c6be7901bf56269
extra : source : 6325e6ae2319cae62e4c08cfc38706c9ac056842
2017-08-01 13:54:14 +08:00
JW Wang
b2911ee198 Bug 1385699. P1 - don't adjust playback position to the duration in MDSM at the end of playback. r=cpearce
We will let MediaDecoder do the final adjustment.

MozReview-Commit-ID: NmPD3Cgsta

--HG--
extra : rebase_source : 97f15f7ec330706edb7651c52e2eef128ac427f6
extra : source : 45e94e9edc423de6d53776b70c9c25cc9f40ce30
2017-08-01 11:00:09 +08:00
JW Wang
7f6f26e511 Bug 1386951 - have ChannelMediaDecoder implement CreateStateMachine() and fix includes. r=jya
The implementation will be shared by most of the sub-classes except OggDecoder
which needs to call demuxer->SetChainingEvents().

http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/dom/media/ogg/OggDecoder.cpp#25

This helps reducing code changes whenever we add a field to MediaFormatReaderInit.

MozReview-Commit-ID: 5K8NY1oxol4

--HG--
extra : rebase_source : 7bc2a71ad9bd982ada51fd28d6a5b7c6f1d7395a
extra : source : cccd49795938ce53cd8eee597ec0ea4859543c37
2017-08-03 14:05:28 +08:00
James Cheng
dce1114dea Bug 1373314 - Allow mp4a mimetype with leading 0 in aud-oti for compatibility. r=cpearce
MozReview-Commit-ID: 6SwbWuxzpEJ

--HG--
extra : rebase_source : 2e6ed6ffef3ce9da16a691e40f78fe42ef8c8800
2017-07-20 15:35:41 +08:00
Ryan VanderMeulen
0cfb1d8460 Merge inbound to m-c. a=merge
CLOSED TREE
2017-07-19 10:00:35 -04:00
Alastor Wu
8fa2796b1e Bug 1364340 - enable dom/media/test/test_resolution_change.html on Android. r=bechen
MozReview-Commit-ID: EvtkgkyFbIp

--HG--
extra : rebase_source : 184096007d748d3564f5ad1bcbc9e67da4118970
2017-07-19 10:57:23 +08:00
Ryan VanderMeulen
a064d6dbfc Merge m-c to inbound. a=merge 2017-07-18 13:00:03 -04:00
Paul Adenot
4029e408c3 Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
MozReview-Commit-ID: EQzR1AfzvzE

--HG--
extra : rebase_source : 9950d07eb1e8e9b1d07f94c10d7c5cf0008a8141
2017-07-18 11:26:58 +02:00
Sebastian Hengst
cb2227a5c7 Backed out changeset 6dc016256eba (bug 1378067) for bustage at dom/media/webaudio/WebAudioUtils.cpp:107. r=backout on a CLOSED TREE 2017-07-18 11:51:22 +02:00
Paul Adenot
ac12821115 Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
MozReview-Commit-ID: EQzR1AfzvzE
2017-07-18 11:26:58 +02:00
Wes Kocher
8117ff8bd3 Backed out 3 changesets (bug 1197045) for failures in browser_Troubleshoot.js a=backout CLOSED TREE
Backed out changeset 78b66a4c6b7c (bug 1197045)
Backed out changeset feea60a002a7 (bug 1197045)
Backed out changeset 57842092a282 (bug 1197045)

MozReview-Commit-ID: J0KZDSSw4XQ
2017-07-18 22:54:15 -07:00
Chun-Min Chang
8c2032ba1b Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Chun-Min Chang
d6c1dd180f Bug 1197045 - part1: Create an AudioDeviceInfo to expose the native device information; r=kinetik
MozReview-Commit-ID: 2N2BkZUVOca

--HG--
extra : rebase_source : 499d069251f3231a2fd5ddbd55aaa5b5f4124723
2017-07-13 14:01:36 +08:00
Paul Adenot
b1551892bd Bug 1373213 - Repair cubeb logging when using env var. r=jesup
This does two things:
- Stop calling the callback when initializing cubeb prefs callback, see the
comment block for the rationale.
- Change the pref name so that the problem does not continue to be triggered
with users that have the old pref name in their profile.

MozReview-Commit-ID: 9Ty7Mt9WZpP

--HG--
extra : rebase_source : 1ed504be98c279f54a1a6c4168709b3ba78103e5
2017-06-23 14:35:45 -07:00
Jean-Yves Avenard
f50943d4cc Bug 1379190: P1. Remove AndroidMediaDecoder and relatives. r=cpearce
They are no longer supported and can't work with API >= 16

MozReview-Commit-ID: JkftKxW5OtY

--HG--
extra : rebase_source : 6ed4032141add293d21354640c96fc75adc565d9
2017-07-13 12:54:03 +02:00
JW Wang
cda80ee431 Bug 1381758 - Remove the debug code added in bug 1326294. r=gerald
Bug 1326294 is fixed and we don't need the debug code anymore.
This help reduce the coupling with HTMLMediaElement and make MediaDecoder
easier to be reused by Servo.

MozReview-Commit-ID: KCwAjoQFPkS

--HG--
extra : rebase_source : 0c98899f63edb5971ddecb812635c9a6f693d448
2017-07-18 16:36:01 +08:00
Alastor Wu
80f58a3d1e Bug 1381376 - only suspend decoding when the pref is on. r=jwwang
Only suspend decoding when the pref is on, but resuming could be done when the
pref is off.

MozReview-Commit-ID: JDh1pRXNhc8

--HG--
extra : rebase_source : 1a075c9eff5abe0eae7bd929d9c632d5b49a63be
2017-07-17 18:38:35 +08:00
Wes Kocher
b1c83de1b7 Backed out 2 changesets (bug 1381720) for linux build failures in content_decryption_module.h a=backout
Backed out changeset e4d9cb334352 (bug 1381720)
Backed out changeset 69f177823866 (bug 1381720)

MozReview-Commit-ID: DctOanJkHh7
2017-07-17 23:21:49 -07:00
Chris Pearce
97c974f065 Bug 1381720 - Add content_decryption_module_ext.h. r=gerald
Updates to Chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Adds Verified Media Pipeline function definitions.

MozReview-Commit-ID: 2H8mMNacQqR

--HG--
extra : rebase_source : dc91151c5ffe94f59346b9f4cbab587e6c0701a3
2017-05-29 17:14:52 +12:00
Chris Pearce
9901d75b55 Bug 1381720 - Update content_decryption_module.h. r=gerald
Update to chromium revision 6e4c388c0117fe408b66fbede91081fb1018c5fe.

Includes cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions,
HDCP definitions, and 10 and 12 bit image format definitions.

MozReview-Commit-ID: bYH3OBSzuT

--HG--
extra : rebase_source : d062d233c9a2b59aa5ae5c6e0584ed13b7c83e6e
2017-05-29 17:14:26 +12:00
Wes Kocher
cd4ae862fd Merge inbound to central, a=merge
MozReview-Commit-ID: CugzaiO4IW1
2017-07-17 17:27:51 -07:00
Sebastian Hengst
d85c6458d8 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-17 14:08:27 +02:00
JW Wang
b9b872859b Bug 1380574 - remove the call to MediaDecoderOwner::DecodeWarning() from MediaFormatReader. r=gerald
Note we will move OnDecodeWarning() from MDR to MFR when removing MDR.

MozReview-Commit-ID: 92jpwy6ghH2

--HG--
extra : rebase_source : 72e84f364cdab589efe60e70a071816cb4404955
extra : intermediate-source : fc7ff704e2096935b949ed8b9f6e73945db56a79
extra : source : 6e65a382de5de478948d434fc238a6afe231d2ac
2017-07-13 15:02:06 +08:00
JW Wang
cf0ba2ea01 Bug 1380569. P3 - remove AbstractMediaDecoder::NotifyWaitingForKey() and its callers. r=gerald
MozReview-Commit-ID: 3fHDr0xw92P

--HG--
extra : rebase_source : 07ca1ae4e8d65e66beca2d1eb0de232ec6e291fb
extra : intermediate-source : d367e33cc9c132abb9e66aae652f4bbbf4f58be1
extra : source : 029ccea837ef1948bd33ce1d786626f362c41bdf
2017-07-13 14:52:05 +08:00
JW Wang
dfccb2f79b Bug 1380569. P2 - plumb the 'waitingForKey' event into the media element. r=gerald
Note we put OnWaitingForKey() in MediaDecoderReader for MediaDecoder references
MDR instead of MFR. The function will be moved into MFR when we remove MDR and
have MediaDecoder reference MFR instead.

MozReview-Commit-ID: LBGfGmc6yFm

--HG--
extra : rebase_source : 473c95cf6eb5e7e4065f9c1251af7dacb78538a5
extra : intermediate-source : 85981e2bafa1047f8321c02de6f0726c32506811
extra : source : 5203bf6895273701ef36a81d2e827e7a7c219fdb
2017-07-13 14:49:23 +08:00
JW Wang
5cf374a225 Bug 1380569. P1 - rename CannotDecryptWaitingForKey() to NotifyWaitingForKey() and add the function to MediaDecoderOwner. r=gerald
We will use MediaEventSource to plumb the event from MFR to the media element.

MozReview-Commit-ID: 4gaEx7vYybE

--HG--
extra : rebase_source : fd595399e2db4e76ad117636768e160c2f054775
extra : intermediate-source : 1fc86c40dc83e79306c721b1acb0f31803181509
extra : source : d24b62a6041966b2639e5543c9ecccc4f7656a0d
2017-07-13 14:41:09 +08:00
bechen
f039a8f5a1 Bug 1378285 - Modify the generateREF.html to resolve the output limit of console. r=alwu
MozReview-Commit-ID: Aneusk1hYK8

--HG--
extra : rebase_source : 30f47a11f2838eeaa9260695ae02b68c171902c5
2017-07-17 11:35:51 +08:00
bechen
994ca796b2 Bug 1378285 - Last frame reftest for bipbop.mp4 . r=alwu
MozReview-Commit-ID: 2mvJgIIyWIU

--HG--
extra : rebase_source : c6bf738f1c8e0d1718e85656a770f17a05e720df
2017-07-14 18:37:05 +08:00
bechen
893ccc3da4 Bug 1372854 - Enable test_seek_nosrc.html on Android. r=alwu
MozReview-Commit-ID: 7YmInfSB6K2

--HG--
extra : rebase_source : d2ee043e9109d6ff3985ec8dbf49ca07d38249c9
2017-07-12 15:44:56 +08:00
Paul Adenot
67c95cdcdf Bug 1312623 - Don't attempt to shutdown a thread in the dtor of a GraphDriver, since it might be called during stable state. r=smaug
MozReview-Commit-ID: HA67HQQrfow

--HG--
extra : rebase_source : d9301c6f5687eb1e1c3a7c4049e48ceaf74fa529
2017-07-04 09:21:23 +02:00
Kaku Kuo
5547aba3cd Bug 1378691 P4 - skip to next key frame if the playback position is very close to it; r=jwwang
MozReview-Commit-ID: Gm0iZAHVLpS

--HG--
extra : rebase_source : e1bc9da5b809cba474983b804085dca21473b3ac
2017-07-12 17:03:45 +08:00
Kaku Kuo
4175fed6b6 Bug 1378691 P3 - return next key frame time back to MDSM; r=jwwang
MozReview-Commit-ID: LVhJ0DpM24c

--HG--
extra : rebase_source : 4aefd89a2cc2243538c248977bfff79731fc2946
2017-07-11 10:15:33 +08:00
Kaku Kuo
04ba592fac Bug 1378691 P2 - trigger skip-to-next-key-frame if the video decoding is too slow; r=jwwang
MozReview-Commit-ID: B0stJG3eOKU

--HG--
extra : rebase_source : 16cecd28bd6a5422135aa7700f3664bb9b5fd1c6
2017-07-11 09:59:13 +08:00
Kaku Kuo
a1b039d4a5 Bug 1378691 P1 - drop video until catch up playbak position for video-only seek; r=jwwang
MozReview-Commit-ID: 86BhQDbM7xV

--HG--
extra : rebase_source : 105ad54c3ab5c659ebcbda539beb480a93a66aa5
2017-07-11 09:56:09 +08:00
Wes Kocher
e9fa5c772a Merge inbound to central, a=merge
MozReview-Commit-ID: 8nlqm5dHCUQ
2017-07-14 17:14:43 -07:00
Bas Schouten
be92d4e45b Bug 1375461: Ensure mSyncObject isn't null before attempting to sync with it. r=mattwoodrow
MozReview-Commit-ID: HuflJDLhlRl

--HG--
extra : rebase_source : 8da9af58bcda88f63162b094cc1d789038848f1a
2017-07-10 07:49:34 +00:00
James Cheng
950fc2b63c Bug 1379866 - Implement MediaResource Suspend and Resume in HLSResource. r=jolin
1. Pause the Exoplayer when navigating to another page and resume playback when navigating back.

2. Fix the OOM issue.

MozReview-Commit-ID: 5UGmBzpObsb

--HG--
extra : rebase_source : f8f268612687669e1b31881465600b02b3531c55
2017-07-14 01:29:00 +08:00
Ryan VanderMeulen
112cadfae3 Merge m-c to autoland. a=merge 2017-07-14 09:52:56 -04:00
Ryan VanderMeulen
019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini
50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
JW Wang
9b07417b6b Bug 1380545 - remove DispatchKeyNeededEvent from MediaFormatReader.cpp. r=gerald
We will use MediaEventSource to dispatch the 'encrypted' events.

MozReview-Commit-ID: KY3nS9OrysI

--HG--
extra : rebase_source : 4e1fa125b099567426f5a6ea2c825b77d407b2c4
extra : source : 8413b0625159d85a5814cb3bd748121653735e96
2017-07-13 11:18:07 +08:00
JW Wang
ebbb3689a4 Bug 1380532. P2 - remove AbstractMediaDecoder::GetCrashHelper(). r=gerald
MozReview-Commit-ID: IDPifgdxwTd

--HG--
extra : rebase_source : 3ec3c6f7a9ab5144fbf060b40393b306dc9eef0c
extra : source : 1de26c9ff96d7fb9710a8a16d9e7ec8abd8113cb
2017-07-13 10:21:34 +08:00
JW Wang
789cd1ebe8 Bug 1380532. P1 - pass GMPCrashHelper through MediaDecoderReaderInit to MFR. r=gerald
So we can reduce dependency on AbstractMediaDecoder.
See bug 1378295 comment 1 for the detail.

Note it is not ideal to repeat |init.mCrashHelper = ...| several times in
this patch. We will re-visit it to reduce code duplication after bug 1378295
is done.

MozReview-Commit-ID: AEC56ukqtYr

--HG--
extra : rebase_source : 07554566af74b65f391811e55847e58365ac81fe
extra : source : 7f613117f815369f65256408b221131683c0dd82
2017-07-13 10:19:36 +08:00
Alex Chronopoulos
48c9b10048 Bug 1380233 - New signature for cubeb_get_min_latency. r=kinetik
MozReview-Commit-ID: 4vh6atnnRpS

--HG--
extra : rebase_source : bee0a7d0a10b0eaf9cedb6286a1b1aa492457a94
2017-07-13 13:06:02 +03:00
bechen
d972107cee Bug 1374189 - Call NotifyPresentedFrame when resolve the mEndPromiseHolder promise. r=jwwang
MozReview-Commit-ID: Le4VER7kK2Y

--HG--
extra : rebase_source : 3b46eb752a59e4eaa2dc99b09287938c008668c8
2017-07-14 10:04:22 +08:00
bechen
c2d16d5cab Bug 1374189 - new testcase to count the total frame when "skip-to-next-key-frame.enabled" is false. r=jwwang,kaku
MozReview-Commit-ID: 4zjOoSAYild

--HG--
extra : rebase_source : c283f7e8430dc5d41b2f43635b592c01fbb096f8
2017-07-13 18:18:04 +08:00
JW Wang
ac2b0f2173 Bug 1380234. P3 - remove AbstractMediaDecoder::CompositorUpdatedEvent() and its users. r=jya
MozReview-Commit-ID: JioS7MC5qFh

--HG--
extra : rebase_source : 9df457507bfcbcd1baa2e66af61781cc2a2ec06f
extra : source : af4993bcca5097628b12b4861074d8eed9163d9b
2017-07-12 16:49:59 +08:00
JW Wang
803c5fa941 Bug 1380234. P2 - send compositor updates to the reader directly without using MediaEventSource. r=jya
MozReview-Commit-ID: EJO2PK525gS

--HG--
extra : rebase_source : 11a033d2e6a94b307ca8095b2ffd7348edb2b6d4
extra : source : 44c52998638933e8b709fa5196ef442314145d2f
2017-07-12 16:28:19 +08:00
JW Wang
4ca981216d Bug 1380234. P1 - pass KnowsCompositor to MFR through MediaDecoderReaderInit. r=jya
MozReview-Commit-ID: 3krK3meG5jV

--HG--
extra : rebase_source : f0a628ab28a527fa7f79ec61672e988cf1def8e7
extra : source : c8c2a6f2506338a8208f3bcf56160c47e6a29000
2017-07-12 15:37:02 +08:00
James Cheng
2bbf8b0437 Bug 1380237 - Tweak HLSDemuxer to handle audio format change. r=jya
1. Moving UpdateA/VInfo to HLSTrackDemuxer and related changes.
2. Handle audio format change by changing the stream id.
MozReview-Commit-ID: IJmSvygZLVf

--HG--
extra : rebase_source : fb90c1454f20ff930626b6febf74b7cb0c4d20b9
2017-07-12 15:12:06 +08:00
Kaku Kuo
1226fb4d2c Bug 1380244 - trigger skip-to-next-key-frame quicker; r=jya
This patch is going to loose the criteria of skip-to-next-key-frame.

The original rules are here:
http://searchfox.org/mozilla-central/rev/31311070d9860b24fe4a7a36976c14b328c16208/dom/media/MediaFormatReader.cpp#1559

Skip-to-next-key-frame is triggered if the playback position is LARGER than the next key frame time.
But, from the video-track point of view, when the skip-to-next-key-frame is triggered, it skips to the next-next key frame.

Here is an example, say, we are playing a media file with its playback position at time _a_,
and its video decoding is falling behind at time _v_.
The next key frame is at time _k1_ and next-next key frame is at time _k2_.

              a
----|---------|---------|-------------|----------------> time
    v                   k1            k2

When the playback position _a_ passes _k1_ (_a_ > _k1_), the skip-to-next-key-frame is triggered,
and the demuxer jumps to _k2_ directly.



The idea here is to give a chance when (_a_ == _k1_), let demuxer jump to _k1_ and see if the video decoding could catch up.

MozReview-Commit-ID: 6aRSYDOI1ds

--HG--
extra : rebase_source : c448df7af9f83b9127bad9bae28f353b40669b7f
2017-07-12 16:16:49 +08:00
Nils Ohlmeier [:drno]
0130c59aaf Bug 1264479: added implementation for [current|pending][Local|Remote]Description. r=bwc
MozReview-Commit-ID: AAnuN3YRhFH

--HG--
extra : rebase_source : 8b68125b5073783720fd5007973e4fad638698a9
2017-06-30 01:19:19 -07:00
Mark Banner
35f3666937 Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop
MozReview-Commit-ID: EnhSBHMjurr

--HG--
extra : rebase_source : 74ba4c10e369067629af95bf705a9acd0df1089b
2017-07-11 22:49:55 +01:00
Carsten "Tomcat" Book
0edfa97e38 merge mozilla-inbound to mozilla-central a=merge 2017-07-12 11:07:09 +02:00
Bryce Van Dyk
1b35f7626e Bug 1378826 - Remove direct track listeners for video tracks if MediaRecorder is notified of their removal. r=jesup
--HG--
extra : rebase_source : cdd2f7070fab1ad1491d272819e0be524d9583fd
2017-07-11 09:14:28 +12:00
JW Wang
1e7126b1fc Bug 1378631. P2 - remove AbstractMediaDecoder::CanonicalDurationOrNull(). r=jya
MozReview-Commit-ID: 9zWPcYZndsQ

--HG--
extra : rebase_source : 3c1c03528c21e08fea05b4de6fbfe73cd7d603d5
extra : intermediate-source : 9e5ab9f0ec1bd4536fe157dd530b374a791c600b
extra : source : 4e39231fbed1ea6ea6110b528308b73223878192
2017-07-06 11:38:27 +08:00
JW Wang
031b3932fc Bug 1378631. P1 - move the duration mirror from MediaDecoderReader to MediaDecoderReaderWrapper. r=jya
So we can remove AbstractMediaDecoder::CanonicalDurationOrNull() later.

MozReview-Commit-ID: 6zJCFDsCZPC

--HG--
extra : rebase_source : 66af1674651667a2ab9e82b85e5c730f8eb5c227
extra : intermediate-source : 6c5eccd5fc68bf663e1ffa9d5b57c5a2a2721b14
extra : source : 4b30670e2d75260b21fa953f9c7219e3e485c396
2017-07-06 11:45:02 +08:00
Wes Kocher
1ef5d8834c Merge m-c to autoland, a=merge 2017-07-10 18:51:05 -07:00
Boris Zbarsky
5c76874a46 Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv
I did audit all UNWRAP_OBJECT callers to make sure that the lifetimes of all the
temporary Rooted or the RefPtrs they unwrap into are long enough.
2017-07-10 16:05:24 -04:00
Gerald Squelart
794729a973 Bug 1379091 - Don't prevent MemoryBlockCache overuse - r=cpearce
MozReview-Commit-ID: GvjeSFcnUui

--HG--
extra : rebase_source : 5763040e0e3367ec94fb69d8e0772b3f10ea627b
2017-07-10 10:35:25 +12:00
Gerald Squelart
fd79ed9c4e Bug 1379091 - Let block cache tell MediaCache its block use limit - r=cpearce
MozReview-Commit-ID: 5ZCD3NoeYEP

--HG--
extra : rebase_source : 0fe76cfa6b15053dc5cf2b392c5d649e6888e6c6
2017-07-10 10:23:02 +12:00
Yoshi Huang
c9afcc965e Bug 1377480 - fix mda mochitest failure. r=smaug 2017-07-10 11:45:51 +08:00
JW Wang
aeaad5857f Bug 1378689 - add a structure to pack the data sent to the MediaDecoderReader constructor. r=jya
It would be handy we want to pass more data to the constructor.

MozReview-Commit-ID: 3AUUsTbv534

--HG--
extra : rebase_source : 8d230c85addf1ba296e6a0512f0d18ebd41c0d17
extra : source : e6568e9fa24f52c59baecaa16aa044b492f407fb
2017-07-06 16:59:22 +08:00
Gerald Squelart
eebc1367f0 Bug 1378518 - Use offset-to-block utilities to check MediaCache offset ranges - r=jwwang
MozReview-Commit-ID: 8IsctoABVrb

--HG--
extra : rebase_source : 85d6b405c78207bee730f9482b784e22a063f473
2017-07-06 15:42:56 +12:00
Gerald Squelart
dc59f14eff Bug 1378518 - Better MediaCache GetMaxBlocks() computation - r=jwwang
Retrieve pref from MediaPrefs, which is more efficient than
Preferences::GetInt().

Also refactored computations to avoid unnecessary type conversions.

MozReview-Commit-ID: Ii27lthRRNI

--HG--
extra : rebase_source : d1ea46060cd2c35b7fd07a191184c0318187c080
2017-07-06 16:12:58 +12:00
Jean-Yves Avenard
9634c80d63 Bug 1378507: Add extra check to ensure data is valid. r=gerald
MP4TrackDemuxer::GetNextSamples set mExtraData and it should be valid. This sample will later be rejected by the H264Converter.
The case would also fail if the video codec was VP9.

MozReview-Commit-ID: 5nXoRFJ6ntx

--HG--
extra : rebase_source : 76bfac15373fdccb3f2286bd3cd0999236509e1e
2017-07-06 09:28:48 +02:00
JW Wang
7c0fa4a961 Bug 1378316. P3 - remove AbstractMediaDecoder::DataArrivedEvent() and related code. r=gerald
MozReview-Commit-ID: 5V3RANftFe5

--HG--
extra : rebase_source : f5ed6366fd5b75625b015bc50b561f2d8259711d
extra : source : f75e723935f5bc45f8ffd9a88b842168a138da33
2017-07-05 17:37:46 +08:00
JW Wang
d669b012bc Bug 1378316. P2 - dispatch MediaDecoderReader::NotifyDataArrived explicitly instead of using MediaEventSource. r=gerald
MozReview-Commit-ID: AM3CjQ8LoTv

--HG--
extra : rebase_source : d6c4fa7b8dbe9984468f44b9cdbdf4cbdfe7d001
extra : source : a95db93514cb2a4e5b8031661d367f167d8fc21b
2017-07-05 17:29:05 +08:00
JW Wang
15da20ff70 Bug 1378316. P1 - store MediaDecoderReader in MediaDecoder. r=gerald
So we are able to dispatch NotifyDataArrived() to MediaDecoderReader in P2.

MozReview-Commit-ID: 3RM66uTvYSc

--HG--
extra : rebase_source : 40311cf27fefbd2046016fb246a3a4ccfce845a8
extra : source : 515d9b3b3cd4b0b30d2fd8196b48c55e14466263
2017-07-05 17:21:17 +08:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Nico Grunbaum
91a00d57b9 Bug 1374465 - add framesDecoded to vid inbound stream stats;r=jib,smaug
MozReview-Commit-ID: GqbcQxOb69r

--HG--
extra : rebase_source : 9e25ffed93b6685c9c1848bc0d2642a4b8cda579
2017-07-03 14:17:40 -07:00
James Cheng
759a5057e8 Bug 1377193 - Add the m3u8 and media contents into gecko and add one general test case run only on Fennec for testing HLS. r=jwwang
MozReview-Commit-ID: 8cwQlcah2H8

--HG--
extra : rebase_source : 29398ab3557ad6f2ed6c4aafc7be6dbd8eca8cc8
2017-07-01 04:41:57 +08:00
Carsten "Tomcat" Book
2178a22de4 Merge mozilla-central to autoland 2017-07-06 11:24:24 +02:00
Carsten "Tomcat" Book
7857fa0a5e merge mozilla-inbound to mozilla-central a=merge 2017-07-06 11:18:05 +02:00
Chun-Min Chang
c5c6d606ca Bug 1378299 - Fix the missing headers; r=cpearce
MozReview-Commit-ID: 1IN2HKWLLM7

--HG--
extra : rebase_source : 4e60644bb283e931f6fcb1f9c89ba6efe202575d
2017-07-05 15:59:03 +08:00
Kaku Kuo
e7f547e34c Bug 1378084 P1 - resume to somewhere forward; r=jwwang
MozReview-Commit-ID: 6PgkNVTljlU

--HG--
extra : rebase_source : 4a898c2127fe3d1be6ce70c8a975b3b0353439d7
extra : intermediate-source : bf7f887361bf7d3f931c0d19f35c551d570d81ad
extra : source : fa7a3fd17f9374f0c66d54921b9024062ddc1bdd
2017-07-03 15:14:53 +08:00
JW Wang
31837937da Bug 1378304. P4 - remove AbstractMediaDecoder::GetResource(). r=jya
MozReview-Commit-ID: KjHJyfxYwA6

--HG--
extra : rebase_source : aeca63220bff8d4f293a60304855d6fb1245a2d3
extra : source : 31882e43072808d6523fe093cbcbff6f907452fe
2017-07-05 14:36:11 +08:00
JW Wang
f913f097ee Bug 1378304. P3 - store MediaResource in MediaDecoderReader and replace the use of GetResource() with mResource. r=jya
Note MediaDecoderReader::GetBuffered() accesses mResource which is null
when it is actually a MediaFormatReader. However, it is OK for MediaFormatReader
will override UpdateBuffered() and will never call GetBuffered().

MozReview-Commit-ID: 5qcH4PHDzin

--HG--
extra : rebase_source : acb3ef2d981509a397045110cbb7cbecba8d5bee
extra : source : 5f66ecf33bfaecceaab8d9020175e26c5ca5cd1b
2017-07-05 14:53:31 +08:00
JW Wang
ab6f636e4a Bug 1378304. P2 - replace GetResource() with mResource in MediaDecoder sub-classes. r=jya
MozReview-Commit-ID: GRIBp3y0Cb7

--HG--
extra : rebase_source : c80386b223d90e8a9a7fb285a09edc526227bde8
extra : source : b74c63131f6ed873726519eed1a308aaaf35a6a9
2017-07-05 14:52:42 +08:00
JW Wang
d0a1126090 Bug 1378304. P1 - pass a MediaResource* to DecoderTraits::CreateReader() to reduce the use of AbstractMediaDecoder::GetResource(). r=jya
MozReview-Commit-ID: CKFiqaBznVe

--HG--
extra : rebase_source : 2c78850a82ee610e794488bc90e895b8986737da
extra : source : a0a827722cc16c7a5070e37497cba6e4d414aba2
2017-07-05 14:07:54 +08:00
Kaku Kuo
ac1c695e0d Bug 1378085 P8 - always dispatch VideoOnlySeekCompleted at VideoOnlySeekingState::Exit(); r=jwwang
MozReview-Commit-ID: A8PzfUpJjao

--HG--
extra : rebase_source : 69a81449c3d345ebb022924ef1a5741b2f41889c
extra : intermediate-source : cd7ee0a15b0077c1b2e5665f21537716c5baec2b
extra : source : f9e00a020cafe96579bf8d9d3d1bd73fd75c91bc
2017-07-04 17:49:43 +08:00
Kaku Kuo
af0fec1b1b Bug 1378085 p7 - override DoSeek(); r=jwwang
MozReview-Commit-ID: 3qSR1wXwVo1

--HG--
extra : rebase_source : 87398b8516a76e4f8edbe1f6f43609c38115cd10
2017-07-06 11:51:09 +08:00
Kaku Kuo
dfa24e7c1a Bug 1378085 p6 - override HandleAudioWaited(); r=jwwang
MozReview-Commit-ID: GKXQVAYm0lz

--HG--
extra : rebase_source : 33691eea1d491c595259f021011b5dc590fd9a40
2017-07-06 11:48:42 +08:00
Kaku Kuo
68e0ba647b Bug 1378085 p5 - override HandleWaitingForAudio(), HandleAudioCanceled(), and HandleEndOfAudio(); r=jwwang
MozReview-Commit-ID: Jyw3yyutGjn

--HG--
extra : rebase_source : cb1d6b7dae6c913de906574c15f5387a42cea9c5
2017-07-06 11:47:21 +08:00
Kaku Kuo
d3cf895857 Bug 1378085 p4 - override HandleAudioDecoded(); r=jwwang
MozReview-Commit-ID: BmxePYCesTF

--HG--
extra : rebase_source : c0be25b11a415e5b463841b72594bbd2de0be59b
2017-07-06 11:45:07 +08:00
Kaku Kuo
7d4b77078a Bug 1378085 P3 - override Exit(); r=jwwang
MozReview-Commit-ID: 2NW9d4hu3bT

--HG--
extra : rebase_source : 572c63e07281819de2324173595b7241528ef15b
2017-07-06 11:42:27 +08:00
Kaku Kuo
937ed7bf29 Bug 1378085 P2 - override Enter(); r=jwwang
MozReview-Commit-ID: AuwpbiaQzML

--HG--
extra : rebase_source : 903e3a525dca31748296a16bd8c7f885c8d47310
2017-07-06 11:37:51 +08:00
Kaku Kuo
abb1987ff8 Bug 1378085 P1 - create VideoOnlySeekingState; r=jwwang
MozReview-Commit-ID: 2O6CsqSDKnG

--HG--
extra : rebase_source : 3a29b6266e6254de742fcd53d9e1b554130b1b5c
extra : intermediate-source : 76b95ff0005bdf95e541c8e77081d449fc129a22
extra : source : 64b0f522e8994dd03c58b14d7d27cc5f3155b571
2017-07-03 15:32:39 +08:00
Kaku Kuo
d7d5147c64 Bug 1378085 P0 - update playback position only if event visibility is observable; r=jwwang
MozReview-Commit-ID: 4G436mptS1w

--HG--
extra : rebase_source : 681c8764e582fa37fe573c26eb3cf90b239e15cb
2017-07-06 10:59:16 +08:00
Kartikaya Gupta
cad9534e69 Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel
Most of this patch is updating a few places that use gfxMatrix to use
the equivalent-but-differently-named functions on MatrixDouble:
- Translate/Rotate/Scale get turned into PreTranslate/PreRotate/PreScale
- Transform(Point) gets turned into TransformPoint(Point)
- gfxMatrix::TransformBounds(gfxRect) gets turned into
  gfxRect::TransformBoundsBy(gfxMatrix).
- gfxMatrix::Transform(gfxRect) gets turned into
  gfxRect::TransformBy(gfxMatrix).
The last two functions are added in this patch as convenience wrappers
to gfxRect instead of Matrix.h because we don't want Matrix.h to "know"
about gfxRect (to avoid adding gecko dependencies on Moz2D). Once we
turn gfxRect into a typedef for RectDouble these will be eliminated
anyway.

MozReview-Commit-ID: BnOjHzmOSKn

--HG--
extra : rebase_source : cf1692d1f0d44a4b05d684a66678739181a426d5
2017-07-05 11:18:49 -04:00
Carsten "Tomcat" Book
b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Mats Palmgren
977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Michael Layzell
2eb92d98f1 Backout Bug 1365309 for test failures on a CLOSED TREE
MozReview-Commit-ID: 143ac9l7Goq
2017-07-04 17:31:13 -04:00
Michael Layzell
a318e760bd Bug 1365309 - Part 4: Disable the BackgroundHangMonitor in GMP processes, r=froydnj
This involved a change to BackgroundHangMonitor, as it initialized sDisabled
incorrectly to false, instead of true, We need sDisabled initialized to true, as
we cannot assume that it is enabled until BackgroundHangMonitor::Startup() is
called.

MozReview-Commit-ID: 94slLTkNk3C
2017-07-04 13:19:26 -04:00