Commit Graph

152 Commits

Author SHA1 Message Date
Chris Double
87285c6311 Bug 1112424 Part 1 - Add moz specific methods to retrieve debug data to media object IDL - r=bz
Bug 1112424 adds an about:media page that gives debug information about HTMLMediaElements
and in particular MediaSource objects that are live inside tabs. This patch adds
methods to the MediaSource and HTMLMediaElement object to return the debug data as a string
that gets displayed directly in the about:media page, inside a <pre> element.
2015-01-29 15:35:55 +13:00
Edwin Flores
94c9c92349 Bug 1101304 - Handle CORS in EME - r=cpearce 2015-01-29 20:30:38 +13:00
Edwin Flores
eb33200996 Bug 1124491 - Add HTMLMediaElement.isEncrypted attribute - r=cpearce,bz 2015-01-27 19:10:11 +13:00
Tom Schuster
7c3552a7df Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Andreas Pehrson
570d10bd0b Bug 1124139 - Don't use mPlaybackStream for CameraPreview. r=jesup
From db346795ad1a0ae33e7496df893288eb1fbf7699 Mon Sep 17 00:00:00 2001
---
 dom/camera/CameraPreviewMediaStream.h |  1 +
 dom/html/HTMLMediaElement.cpp         | 29 +++++++++++++++++------------
 dom/html/HTMLMediaElement.h           |  6 +++++-
 dom/media/MediaStreamGraph.h          |  2 ++
 4 files changed, 25 insertions(+), 13 deletions(-)
2015-01-22 09:27:24 +01:00
Andreas Pehrson
346569e87d Bug 992685 - Part 2. Fire resize event when video size changes. r=roc 2014-12-04 02:01:00 +01:00
Sotaro Ikeda
d551964452 Bug 1122228 - Use document's status change to trigger MediaDecoderStateMachine's dormant status change r=cpearce 2015-01-21 20:01:12 -08:00
Byron Campen [:bwc]
f99812c59f Bug 1122678: Fix behavior of SetMozSrcObject when passed a nullptr. r=derf 2015-01-16 11:19:12 -08:00
Karl Tomlinson
2c8daba757 bug 1123189 Queue "durationchange" instead of dispatching synchronously r=cpearce
http://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#offsets-into-the-media-resource

"When the length of the media resource changes to a known value (e.g. from
being unknown to known, or from a previously established length to a new
length) the user agent must queue a task to fire a simple event named
durationchange at the media element."
2015-01-19 17:11:43 +13:00
Carsten "Tomcat" Book
5de3c4b9df Backed out changeset c4d8cf5b47ef (bug 992685) 2015-01-20 11:21:25 +01:00
Andreas Pehrson
6ca7abee0e Bug 992685 - Part 2. Fire resize event when video size changes. r=roc 2014-12-04 02:01:00 +01:00
Andreas Pehrson
dff0b86caf Bug 1073406 - Part 2. Add playback stream as output to mSrcStream for individual media element blocking. r=roc 2014-12-05 00:07:00 +01:00
Boris Zbarsky
2da41c90ad Bug 604496. Inherit the document principal for data: media elements. r=cpearce 2015-01-16 22:47:32 -05:00
Andreas Pehrson
9698d2830a Bug 879717 - Part 1. Delay entering HAVE_CURRENT_DATA state until a
From 4c9aef7ec548ee20df2802f5509e457f66c051ef Mon Sep 17 00:00:00 2001
 video frame has been stored in the image container. r=roc
---
 dom/html/HTMLMediaElement.cpp              | 124 +++++++++++++++++++++++------
 dom/html/HTMLMediaElement.h                |   9 +++
 dom/media/test/test_streams_srcObject.html |   2 +
 3 files changed, 112 insertions(+), 23 deletions(-)
2014-10-10 11:34:57 +02:00
Carsten "Tomcat" Book
c4100037f9 Backed out changeset d9db938747d2 (bug 879717) for M-3 Test failures/timeouts on a CLOSED TREE 2015-01-13 08:48:01 +01:00
Andreas Pehrson
1d7a1076b4 Bug 879717 - Part 1. Delay entering HAVE_CURRENT_DATA state until a video frame has been stored in the image container. r=roc 2014-10-10 11:34:57 +02:00
Olli Pettay
dd023be2aa Bug 1108721, HTMLMediaElement.textTracks needs to be nullable in Gecko for now, r=peterv 2015-01-12 13:07:38 +02:00
Karl Tomlinson
6995887243 Bug 1114885 allow media elements to be GC'd when their MediaSource is unreferenced r=roc 2014-12-11 16:08:20 +13:00
Karl Tomlinson
2b67fa2814 bug 1116676 ensure that AddRemoveSelfReference() is called on networkState changes r=roc
Now that mDelayingLoadEvent may already be false when
NoSupportedMediaSourceError() is called, ChangeDelayLoadStatus(false) won't
necessarily call AddRemoveSelfReference().
2014-12-31 16:34:56 +13:00
Paul Adenot
69f2276067 Bug 937718 - Output frames to the MediaElementAudioSourceNode when an <audio> has labeled the resource has CORS-cross-origin. r=roc 2014-12-17 18:03:34 +01:00
Christoph Kerschbaumer
11a5d113f3 Bug 1116624 - Move CORS into dom/security (r=sicking) 2014-12-30 15:54:59 -08:00
Karl Tomlinson
c1edf72bd6 bug 975782 stop delaying the load event when media fetch has stalled r=cpearce,f=kinetik 2014-12-11 14:51:10 +13:00
Karl Tomlinson
73ceb72c48 bug 975782 bring media resource loads out of background while they delay the load event r=cpearce
This will happen after a stalled load doesn't delay the load event but such a
load then delays the load event again when it receives progress.
2014-12-23 14:16:05 +13:00
Edwin Flores
069fb606a0 Bug 1100175 - Call MediaDecoder::SetCDMProxy() after MediaDecoder::Load() - r=cpearce 2014-12-23 15:23:17 +13:00
Ehsan Akhgari
0e1c6fddc3 Bug 1114349 - Use mozilla::IsNaN() in media code; r=cpearce 2014-12-21 19:16:26 -05:00
Jonathan Hao
3057dff8fa Bug 1111518 - Fix the logic in MediaDecoder::CanPlayThrough(). r=jwwang 2014-12-17 15:05:40 +08:00
JW Wang
420269f21d Bug 1082203 - Route CDMCallbackProxy::Terminated to MediaKeys::Terminated so MediaKeys has a chance to handle CDM crashes and close sessions if necessary. r=cpearce 2014-12-16 20:01:00 -05:00
Benjamin Chen
445f9a15b0 Bug 1095438 - Refine the dormant rules for the MediaElement, take bind/unbind-from-tree and document-hidden into account. r=jwwang 2014-12-15 15:34:28 +08:00
Karl Tomlinson
745fd3fac6 backout 78bde999fddd from bug 975782 for assertion failure in mochitest CLOSED TREE 2014-12-10 17:33:46 +13:00
Karl Tomlinson
382c7d5d95 bug 975782 stop delaying the load event when media fetch has stalled r=cpearce,f=kinetik 2014-11-28 18:23:37 +13:00
Karl Tomlinson
bfa0e24f0a bug 1108838 dispatch "stalled" even when no bytes have been received r=cpearce
This is important for MediaSource, where there is no initial request to set up
the stall counter by sending an initial progress event.

For sources using ChannelMediaResource, this means that stalled can now fire
before an HTTP response is received.

Also reset stalled timer on transitions to NETWORK_LOADING,
and don't run the progress timer while stalled.
2014-11-28 17:07:15 +13:00
Karl Tomlinson
f1fa6f0c87 bug 1108838 move stalled/progress timing from MediaDecoder to HTMLMediaElement r=cpearce
This provides that mNetworkState is available for determining whether progress
notification from the resource/MediaCache after stalled should resume progress
events.  The timer will be stopped while stalled in a subsequent patch, and
should not be restarted unless NETWORK_LOADING.
2014-11-28 12:17:18 +13:00
Wes Kocher
3c0de68457 Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
cbf9ae78f0 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Andreas Pehrson
1096031c59 Bug 1103848 - Part 1. Hint existing output streams as tracks become known. r=roc 2014-11-24 23:53:00 +01:00
Sid Stamm
c5bbe23659 Bug 704320 - content/dom changes for meta referrer support. (r=jst)
This enables referrer policies for:
- EventSource         (content/base/src/EventSource)
- XMLHttpRequest      (content/base/src/nsXMLHttpRequest)
- HTML media elements (content/html/content/src/HTMLMediaElement)
- window.open         (embedding/components/windowwatcher)
- window.location     (dom/base/nsLocation)
2014-11-18 08:47:03 -05:00
Jan-Ivar Bruaroey
b91be08f85 Bug 1097224 - Part1 - make mozCaptureStream work after onloadedmetadata even in opt build. r=jesup 2014-11-12 23:30:10 -05:00
Bobby Holley
6f8f26f3d4 Bug 1091008 - Remove special handling for MSE in HTMLMediaElement::Buffered. r=cajbir
The same code will now be reached by invoking this method on the decoder.
2014-11-11 20:50:21 -08:00
Jean-Yves Avenard
94c4b1847c Bug 1093654 - Fix various memory leaks in MediaDecoders. r=jwwang
Change various function prototyping to make object ownership more explicit.
2014-11-06 19:17:05 +11:00
Jean-Yves Avenard
cefc85e6fe Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
Carsten "Tomcat" Book
c21e517a86 Backed out changeset 44f27b3c35d4 (bug 1065827) 2014-11-06 14:59:04 +01:00
Carsten "Tomcat" Book
48fbc527ed Backed out changeset 70a72a19cb4b (bug 1093654) 2014-11-06 14:58:53 +01:00
Jean-Yves Avenard
474006e5f9 Bug 1093654 - Fix various memory leaks in MediaDecoders. r=jwwang
Change various function prototyping to make object ownership more explicit.
2014-11-06 19:17:05 +11:00
Jean-Yves Avenard
5eb27a9942 Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
Carsten "Tomcat" Book
269e3c6ebc Backed out 10 changesets (bug 1091008, bug 1093020, bug 1063323) for windows m2 permanent test failures on a CLOSED TREE
Backed out changeset 21ddb8a58fea (bug 1093020)
Backed out changeset fe9e11333c7d (bug 1093020)
Backed out changeset bba774c54652 (bug 1063323)
Backed out changeset 16f58d7e1e17 (bug 1091008)
Backed out changeset 649bfc6dad4d (bug 1091008)
Backed out changeset 6f270b2d90f4 (bug 1091008)
Backed out changeset 966093bbc26a (bug 1091008)
Backed out changeset 9de4746aa59a (bug 1091008)
Backed out changeset 856016c0118a (bug 1091008)
Backed out changeset 8aaa10a8d956 (bug 1091008)
2014-11-05 12:57:43 +01:00
Bobby Holley
bb8327bd40 Bug 1091008 - Remove special handling for MSE in HTMLMediaElement::Buffered. r=cajbir
The same code will now be reached by invoking this method on the decoder.
2014-11-05 10:08:59 +01:00
Chris Pearce
ba61cbee5b Bug 1071482 - Make content encrypted via EME inaccessible from JS APIs. r=roc 2014-10-28 13:21:12 +13:00
Ryan VanderMeulen
6e2135feef Backed out changesets 62a8be146b4b, d9a9008a1e93, e6761281d389, and 913e16c2877b (bug 1071482) for causing various intermittent failures. 2014-10-29 12:31:43 -04:00
JW Wang
55be68f256 Bug 1088481 - stop progress timer in MediaDecoder::Shutdown if necessary. r=cpearce 2014-10-27 02:47:00 +01:00
Chris Pearce
e8c7d1c503 Bug 1071482 - Make content encrypted via EME inaccessible from JS APIs. r=roc 2014-10-28 13:21:12 +13:00