Chris Pearce
0833297e6b
Bug 1310548 - Delay firing of 'waitingforkey' until all decoded data has been rendered. r=jya
...
This means 'waitingforkey' will be fired at a predictable time.
MozReview-Commit-ID: HMt1RbgrbuR
--HG--
extra : rebase_source : cb8c36eacd3e78ae5105cd30da7a51d8241dbd5b
2016-10-17 14:16:54 +13:00
Sebastian Hengst
775580cb98
Backed out changeset 443a94083e00 (bug 1294605
)
...
--HG--
extra : source : b82347df2602f07c7b190f0fbf7a6991d6022044
2016-10-20 20:03:16 +02:00
Andreas Pehrson
8651bced6e
Bug 1294605
- Media element captureStream() streams shouldn't keep devices alive. r=jib
...
MozReview-Commit-ID: 3tSFbygTZs1
--HG--
extra : rebase_source : ae29940ba7c2fdedec35c3c010317a4f1d74d092
extra : source : 493751ad2c24c188ae1c01d5c398dcdd7445f581
2016-08-29 16:27:11 +02:00
Sebastian Hengst
3c1524e5e0
Bug 1306137 - remove b2g camera code: Remove dom/camera/ and code which depends on it. r=aosmond,bkelly
...
MozReview-Commit-ID: 7gvZrDtmcZP
--HG--
extra : rebase_source : 31f06357fdc36566465668f55bf3fcc5402fe9e0
2016-10-04 20:16:28 +02:00
Gerald Squelart
05ae515444
Bug 1176218 - p4. Use DecoderTraits::CanHandleContentType in HTMLMediaElement - r=jya
...
MozReview-Commit-ID: IQFvgI6h1tE
--HG--
extra : rebase_source : 11bcd26aaf0fd74fb02416b1d0c9b4c2b5d73345
2016-09-26 13:31:57 +10:00
Alastor Wu
10174cc9eb
Bug 1308119 - replace nsIAudioChannelAgent with AudioChannelAgent. r=baku
...
Since I want to use more agent's functions in MediaElement and I don't think these functions need to be exposed on IDL level. (for other languages binding)
Therefore, I want to use AudioChannelAgent directly in MediaElement.
MozReview-Commit-ID: 43FvDeLpZPt
--HG--
extra : rebase_source : 78741d791eb66cfb6223866ce823f217e3438fdb
2016-10-07 10:35:01 +08:00
Alastor Wu
c861a7e452
Bug 1302084
- the error checking should have highest priority. r=baku
...
MozReview-Commit-ID: 9QC5CG7p28M
--HG--
extra : rebase_source : dfbe93739c2dbe6b8e6640fd9ef54a8c1f4dd040
2016-10-06 12:07:33 +08:00
Alastor Wu
0331c39ab1
Bug 1303554 - part2 : remove the b2g specific checking in IsCurrentlyPlaying(). r=baku
...
MozReview-Commit-ID: 5kUJc24uEIH
--HG--
extra : rebase_source : b1b059a0b3d579f301d3aa9bde336ecf86fadd02
2016-10-05 10:07:54 +08:00
Alastor Wu
94f2fcca3d
Bug 1303554 - part1 : notify start-playing after having enough data. r=baku
...
Regression by bug1262053 because of removing the current playing checking.
It would cause that the media control on Fennec shows too early and some media
elements would also generate the media control even it doens't have available
source.
Therefore, I think we still need to add this checking back.
MozReview-Commit-ID: 1m1ywmLmpSe
--HG--
extra : rebase_source : 30741b0e7bf1bb15349caaf1ecbcdad8cd92dcc3
2016-10-05 10:07:49 +08:00
Chris Pearce
efc3fcbec9
Bug 1307595 - Fixup bad merge conflict resolution from Bug 1300654/8eef5d2cc850. r=partial-backout
...
8eef5d2cc850 in Bug 1300654 incorrectly resolved a merge conflict and backed
out part of the fix for Bug 1280829. Relanding.
MozReview-Commit-ID: 6DIkUrc9R4t
2016-10-05 13:12:03 +13:00
JW Wang
4988b09533
Bug 1239899. Part 2 - per spec. await a stable state to pause the element when it is removed from the document. r=cpearce
...
MozReview-Commit-ID: BCCWgXmUchU
--HG--
extra : rebase_source : 4abe51e9ebce048db99fc6bff2b2d283bbb3acf1
extra : source : 18b3ff4dbb9654a159522c4cc64d2b41921c7f11
2016-09-23 16:16:43 +08:00
JW Wang
0a2c5a3d36
Bug 1239899. Part 1 - Remove ElementInTreeState for ELEMENT_NOT_INTREE and ELEMENT_INTREE are not used at all. We can use a bool flag to do the job. r=cpearce
...
MozReview-Commit-ID: 4htNy1dZODF
--HG--
extra : rebase_source : 32776b1201d156f6ed5b60e8b2609ba3abd586af
extra : source : 34900c8548e5527129b0af9cb4b25faa9127f305
2016-09-23 14:51:52 +08:00
JW Wang
1364ebc2ad
Bug 1304134. Part 2 - per spec. fire 'playing' when autoplay is activated. r=cpearce
...
MozReview-Commit-ID: 4fFUvquMgEC
--HG--
extra : rebase_source : 5936561bf1a3143e5df8cfe8ae95c28c9d775821
2016-09-23 14:05:44 +08:00
JW Wang
77193cb7b1
Bug 1304134. Part 1 - per spec. ( https://dev.w3.org/html5/spec-preview/media-elements.html#ready-states ) 'playing' should be fired before activating autoplay. r=cpearce
...
Also replace the check for IsPotentiallyPlaying() with !mPaused because mReadyState >= HAVE_FUTURE_DATA guarantees playback is not ended.
MozReview-Commit-ID: HetaVDgYEW0
--HG--
extra : rebase_source : 94dd2156db419240ad4462208540e9f98f1c8050
2016-09-23 14:03:50 +08:00
Carsten "Tomcat" Book
762cd18602
Merge mozilla-central to autoland
2016-09-28 16:52:13 +02:00
James Andreou
a47ce92ac2
Bug 1282124 - Remove nsILoadInfo.usePrivateBrowsing and the SEC_FORCE_PRIVATE_BROWSING flag; r=smaug,jryans
2016-09-27 16:56:44 -04:00
James Cheng
48efb9caad
Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
...
MozReview-Commit-ID: JboGO0w4tcE
--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Carsten "Tomcat" Book
ce8c91d458
Merge mozilla-central to mozilla-inbound
2016-09-22 11:56:22 +02:00
Chris Pearce
7a191ffc4f
Bug 1304604 - Use EventTarget to simplyfy HTMLMediaElement.onencrypted implementation. r=smaug
...
MozReview-Commit-ID: EUpZX4ODgNj
--HG--
extra : rebase_source : dae4ac3da64b61bf282455f2b6e054e13e4cadc1
2016-09-22 16:25:38 +12:00
Chris Pearce
d42821ee80
Bug 1304247 - Implement HTMLMediaElement.onwaitingforkeys. r=smaug
...
MozReview-Commit-ID: DhNV30BfksS
--HG--
extra : rebase_source : 5fab8f1b3333ff8607c0325907fbe7214234c001
2016-09-21 14:10:26 +12:00
Chris Pearce
7e7b3c9f0f
Bug 1280829 - Only block non-MSE content which is encrypted once it reaches load metadata. r=jya
...
Previously, we'd block loading of non-MSE content when there was a MediaKeys
attached, that is, we'd assume that all content was EME content if a MediaKeys
was attached. But some sites attach a MediaKeys and then load non-MSE non-EME
content, and that (despite being a bit silly) shouldn't fail.
MozReview-Commit-ID: 9LupWaehXim
--HG--
extra : rebase_source : 6db281feb27a61b49dc565d4d4562a3d2366fc89
2016-09-21 13:04:01 +12:00
Jean-Yves Avenard
e555d04fbf
Bug 1303970: P2. Fix "If the media data fetching process is aborted by the user steps". r=jwwang
...
MozReview-Commit-ID: 6n91VY00gAo
--HG--
extra : rebase_source : 61aab7eecb527c55199a597db7b08681206c3f2f
2016-09-20 19:52:06 +10:00
Jean-Yves Avenard
3eae3b5916
Bug 1303970: P1. MEDIA_ERR_ABORTED can be returned even if readyState is HAVE_NOTHING. r=jwwang
...
So change assertion accordingly.
MozReview-Commit-ID: AuaDlyF0MAL
--HG--
extra : rebase_source : 60f1b34c8320d8ad47845bfd9d8f23e27d3a8620
2016-09-20 19:36:09 +10:00
JW Wang
5e9751305f
Bug 1303347 - add assertions for debugging if Observe() could ever happen after Unsubscribe(). r=cpearce
...
MozReview-Commit-ID: 9XhGYI3fTqb
--HG--
extra : rebase_source : b42dce2b15cb044871e355090dade17abf651ee9
2016-09-20 11:27:46 +08:00
Jean-Yves Avenard
26629fd77e
Bug 1302632: P4. Do not change network state to NETWORK_EMPTY. r=jwwang
...
There's no such step defined in the spec. Despite, this code can no longer be called when readyState is HAVE_NOTHING
MozReview-Commit-ID: 2fDoNHt1COp
--HG--
extra : rebase_source : d8b79acee85b00331f55153626038e26cd4a72c7
2016-09-15 16:20:43 +10:00
Jean-Yves Avenard
895efe36db
Bug 1302632: P3. Provide failures details to error attribute. r=jwwang
...
MozReview-Commit-ID: 3eIXOF96UR4
--HG--
extra : rebase_source : eeeb298d46bd8c6957560e475b7b1c4728a392dc
2016-09-15 16:17:10 +10:00
Jean-Yves Avenard
8a54c1a711
Bug 1302632: P1. Set proper error code when readyState is HAVE_NOTHING. r=jwwang
...
MozReview-Commit-ID: CMQkW5pPDF2
--HG--
extra : rebase_source : f0286af0b2daa2f91bbea66ab7bcf6de1a6d2207
2016-09-14 16:45:52 +10:00
Phil Ringnalda
cd6041148f
Backed out 5 changesets (bug 1302632) for forthcoming failures
...
Backed out changeset f2ced742d6aa (bug 1302632)
Backed out changeset 55e7962d4fc0 (bug 1302632)
Backed out changeset b20f7c887e6c (bug 1302632)
Backed out changeset 22772e4a9c72 (bug 1302632)
Backed out changeset 7d7558864a66 (bug 1302632)
2016-09-15 21:39:00 -07:00
Jean-Yves Avenard
4faaba2ab5
Bug 1302632: P4. Do not change network state to NETWORK_EMPTY. r=jwwang
...
There's no such step defined in the spec. Despite, this code can no longer be called when readyState is HAVE_NOTHING
MozReview-Commit-ID: 2fDoNHt1COp
--HG--
extra : rebase_source : baa542cdf3144db8b941c20f22548c67bfc06346
2016-09-15 16:20:43 +10:00
Jean-Yves Avenard
64dda2968c
Bug 1302632: P3. Provide failures details to error attribute. r=jwwang
...
MozReview-Commit-ID: 3eIXOF96UR4
--HG--
extra : rebase_source : 7f5b03e3a6f5dbb40b16b1460132993b60d071e6
2016-09-15 16:17:10 +10:00
Jean-Yves Avenard
f359140d9d
Bug 1302632: P1. Set proper error code when readyState is HAVE_NOTHING. r=jwwang
...
MozReview-Commit-ID: CMQkW5pPDF2
--HG--
extra : rebase_source : 2bd7828104b8f3ac5bb1d8bdc3f84b652300cabe
2016-09-14 16:45:52 +10:00
Boris Zbarsky
0fd831e559
Bug 1302304. Remove IDL bits that reference nsIDOMMediaError; it's not needed anymore. r=bkelly
2016-09-15 11:41:35 -04:00
Carsten "Tomcat" Book
9a2448ee1c
Merge mozilla-central to mozilla-inbound
2016-09-14 12:11:09 +02:00
Jean-Yves Avenard
6a25692b20
Bug 1299072: P10. Pass decoding error details to media element's error attribute. r=jwwang
...
MozReview-Commit-ID: 49DurV9WI5S
--HG--
extra : rebase_source : 469e6ed4e222fb6d6ac34843c3c3346a044c6023
2016-09-11 00:56:09 +10:00
kaku@mozilla.com
9a1c3746b2
Bug 1299718 part 3 - call MarkAsContentSource() at where using video element as a source; r=gerald,kamidphish,mtseng
...
MozReview-Commit-ID: Kg6UpcsCi0P
2016-09-14 15:50:29 +10:00
kaku@mozilla.com
09ae2d424f
Bug 1299718 part 2 - implement the MarkAsContentSource() API; r=gerald,kamidphish
...
MozReview-Commit-ID: 1eAdcMAmXSB
2016-09-14 15:50:29 +10:00
Kaku Kuo
5286ffa8da
Bug 1284350. Reland on top of backouts "Bug 1299065 - invisible elements in the foreground should also be recorded; r=gerald" r=kaku
...
Instead of "not visible", "approximately visible", and "visible" (in display port) we now have "approximately not visible", and "approximately visible" which includes "visible".
2016-08-30 14:53:04 +08:00
Kaku Kuo
cca4120327
Bug 1284350. Reland on top of backouts "Bug 1282710 - Part 1 - implement the suspend and resume logics in HTMLMediaElement.cpp according to visibility events; r=cpearce r=kamidphish" r=kaku
...
Instead of "not visible", "approximately visible", and "visible" (in display port) we now have "approximately not visible", and "approximately visible" which includes "visible".
2016-07-04 13:26:40 +08:00
Timothy Nikkel
4a590050bf
Bug 1284350. Backed out changeset 1bbb1ab928c7 (Bug 1282710 - Part 1 - implement the suspend and resume logics in HTMLMediaElement.cpp according to visibility events; r=cpearce r=kamidphish)
2016-09-12 00:19:06 -05:00
Timothy Nikkel
e7b23cbf0f
Bug 1284350. Backed out changeset 06bf533a2bdd (Bug 1299065 - invisible elements in the foreground should also be recorded; r=gerald)
2016-09-08 18:07:36 -05:00
Wes Kocher
5cbc382303
Merge inbound to m-c a=merge
2016-09-07 17:54:24 -07:00
Andreas Pehrson
c166a2bf07
Bug 1300529 - Remove default arguments from HTMLMediaElement::CaptureStreamInternal. r=padenot
...
MozReview-Commit-ID: IL7odCBP74
--HG--
extra : rebase_source : 3202348010f7c22a218fd37ad745ae7332fb007c
2016-09-07 15:14:15 +02:00
Michael Layzell
c47fca1cd7
Bug 1018486 - Part 1: Changes in dom/, r=baku
...
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Jeremy Chen
e42a48e81d
Bug 1297306 - part5:create enum constructors for EnumTable. r=baku
...
Enable nsAttrValue::EnumTable to be initialized with enum. So, we could get rid
of the castings in EnumTable. Fix EnumTable initialization comment.
For those untyped enumerations, declare them with uint8_t, as to other typed
enumerations with type size larger than int16_t, force casting to int16_t.
Use {nullptr,0} instead of {0} to represent the last entry.
MozReview-Commit-ID: 7Dma3Apkmxj
--HG--
extra : rebase_source : b2289866c4c33d80c8e170727bf109d018d92f67
2016-09-07 10:20:17 +08:00
Gerald Squelart
693932c5aa
Bug 1300459 - Pass MediaInfo by const-ref to SetMediaInfo - r=jya
...
MozReview-Commit-ID: 5KvCBHmI1JC
--HG--
extra : rebase_source : aece207d36682e1a6cc4125ef660e2eb8f41d92c
2016-09-05 14:23:23 +10:00
Alastor Wu
384eb5f086
Bug 1298777 - don't need to capture audio for media element without audio track. r=jwwang
...
MozReview-Commit-ID: DKRGiuTGjtg
--HG--
extra : rebase_source : b5c2705b623d6479cb729f2a51aef637e59b1e39
2016-09-02 18:47:10 +08:00
Andreas Pehrson
3e21f8275b
Bug 1299451 - Fix mozCaptureStream() happening after setting src but before having metadata. r=jesup
...
MozReview-Commit-ID: CKC3n3Nt5IE
--HG--
extra : rebase_source : 9c8348403cedb2ac7f68bce9fc5f36cfe2e08357
2016-08-31 14:54:03 +02:00
Andreas Pehrson
a91bec92ad
Bug 1299172 - HTMLMediaElement::StreamSizeListener spring cleaning. r=jesup
...
MozReview-Commit-ID: 25lt1j8t1Xh
--HG--
extra : rebase_source : e972d008c5e80059dd10031df38cf400cc6c9650
2016-08-31 14:32:13 +02:00
Andreas Pehrson
864bcdc3c4
Bug 1299172 - Fix media element StreamSizeListener calling DispatchToMainThreadAfterStreamStateUpdate off-MSG-thread. r=jesup
...
MozReview-Commit-ID: Cc2tJbEog20
--HG--
extra : rebase_source : 83731e3fe29a7813a51f70eff8a0f43a21f92e1d
2016-08-31 14:31:28 +02:00
Kaku Kuo
60576ca55c
Bug 1299065 - invisible elements in the foreground should also be recorded; r=gerald
...
MozReview-Commit-ID: 56JBbJ743DM
--HG--
extra : rebase_source : 2ff2066735bb89db066540716436ec5b33bfb449
2016-08-30 14:53:04 +08:00