Commit Graph

62 Commits

Author SHA1 Message Date
Chris Double
3fc47297c7 Bug 1119947 - Add telemetry for MSE video playback - r=cpearce,bsmedberg
This adds telemetry to record the state of the video playback
when the user exits. We are interested in knowing if the video
was buffering, paused, seeking, ended or other.

More telemetry will be added in bug 1127646.
2015-02-20 13:46:56 +13:00
Alfredo Yang
7237654e96 Bug 1130920 - don't set preload to none when src is MSE. r=cpearce 2015-02-15 18:38:00 +01:00
JW Wang
b956fb2561 Bug 1130906 - remove HTMLMediaElement.waitingFor for spec. changes. r=cpearce. r=bz. 2015-02-10 11:00:35 +08:00
Nicholas Nethercote
242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
JW Wang
fdb1cf711c Bug 868866 - only stop delaying the load event when media fetch has stalled is MSE case. r=cpearce 2015-02-01 18:21:00 +01:00
Nicholas Nethercote
d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Chris Double
e018144486 Bug 1128742 - Prevent pages with MSE content from being stored in bfcache - r=roc 2015-02-04 13:01:59 +13:00
Gijs Kruitbosch
d1ba63acaf Bug 1127416 - add observer service notification for EME video, r=cpearce
--HG--
extra : amend_source : f633a98394075e9cc19044776e10823ad262791b
2015-02-01 15:20:57 +00:00
JW Wang
99e95e2eff Bug 1127171 - Put mozCaptureStream operations in the same lock. r=roc 2015-01-28 18:57:00 -05:00
Chris Double
068ea7f2a6 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.

--HG--
extra : rebase_source : d655dc3d30a26846b965ceeda4849745aab7bef5
2015-01-29 15:35:55 +13:00
Edwin Flores
592f17b93a Bug 1101304 - Handle CORS in EME - r=cpearce 2015-01-29 20:30:38 +13:00
Edwin Flores
28fbe0a0ef Bug 1124491 - Add HTMLMediaElement.isEncrypted attribute - r=cpearce,bz 2015-01-27 19:10:11 +13:00
Tom Schuster
66ad9a2e49 Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Andreas Pehrson
e5681a1719 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
13cf9ec465 Bug 992685 - Part 2. Fire resize event when video size changes. r=roc 2014-12-04 02:01:00 +01:00
Sotaro Ikeda
4f96a3066c 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]
d5431fa313 Bug 1122678: Fix behavior of SetMozSrcObject when passed a nullptr. r=derf 2015-01-16 11:19:12 -08:00
Karl Tomlinson
bf16b65e70 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."

--HG--
extra : rebase_source : 531ed14a241546613cf810cd6bf9b4a8c88d2d9e
extra : histedit_source : 86253e972d1dbb8f95af5167eb7487c1ddf6da14
2015-01-19 17:11:43 +13:00
Carsten "Tomcat" Book
7cb1a027a7 Backed out changeset c4d8cf5b47ef (bug 992685) 2015-01-20 11:21:25 +01:00
Andreas Pehrson
c5d2a30b2c Bug 992685 - Part 2. Fire resize event when video size changes. r=roc 2014-12-04 02:01:00 +01:00
Andreas Pehrson
6693fcd437 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
830b9562d7 Bug 604496. Inherit the document principal for data: media elements. r=cpearce 2015-01-16 22:47:32 -05:00
Andreas Pehrson
ff9da77c31 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
35248aa586 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
4e646b6ec1 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
6420704d50 Bug 1108721, HTMLMediaElement.textTracks needs to be nullable in Gecko for now, r=peterv
--HG--
extra : rebase_source : 8c4b0b13e50a200907f1b4ba923fee4165318ca9
2015-01-12 13:07:38 +02:00
Karl Tomlinson
b10ef2c2b9 Bug 1114885 allow media elements to be GC'd when their MediaSource is unreferenced r=roc
--HG--
extra : rebase_source : 0aba4bad8095106ad153508b74f699c6b726d3a1
2014-12-11 16:08:20 +13:00
Karl Tomlinson
644c502ebb 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().

--HG--
extra : rebase_source : a6314fd453643f7609590d24bc9375b1df63106c
2014-12-31 16:34:56 +13:00
Paul Adenot
5d125aaa27 Bug 937718 - Output frames to the MediaElementAudioSourceNode when an <audio> has labeled the resource has CORS-cross-origin. r=roc
--HG--
extra : rebase_source : af3473e372f511640e62b47a86a133f0018c9388
2014-12-17 18:03:34 +01:00
Christoph Kerschbaumer
b39fa64608 Bug 1116624 - Move CORS into dom/security (r=sicking)
--HG--
rename : dom/base/nsCrossSiteListenerProxy.cpp => dom/security/nsCORSListenerProxy.cpp
rename : dom/base/nsCrossSiteListenerProxy.h => dom/security/nsCORSListenerProxy.h
2014-12-30 15:54:59 -08:00
Karl Tomlinson
9a24bd047a bug 975782 stop delaying the load event when media fetch has stalled r=cpearce,f=kinetik
--HG--
extra : rebase_source : c26dcd4221ba051ffff417631ae7ad9b7b65995d
2014-12-11 14:51:10 +13:00
Karl Tomlinson
98e1dfd45e 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.

--HG--
extra : rebase_source : a04dd7416f86306cfc62aabba20fb30415572d98
2014-12-23 14:16:05 +13:00
Edwin Flores
d7a5f3d750 Bug 1100175 - Call MediaDecoder::SetCDMProxy() after MediaDecoder::Load() - r=cpearce 2014-12-23 15:23:17 +13:00
Ehsan Akhgari
8daffda8e5 Bug 1114349 - Use mozilla::IsNaN() in media code; r=cpearce 2014-12-21 19:16:26 -05:00
Jonathan Hao
4871501fd9 Bug 1111518 - Fix the logic in MediaDecoder::CanPlayThrough(). r=jwwang 2014-12-17 15:05:40 +08:00
JW Wang
9a707fcf22 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
d9b312b60a 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
323baa2777 backout 78bde999fddd from bug 975782 for assertion failure in mochitest CLOSED TREE
--HG--
extra : amend_source : 3802b09260b751790211ed5fe8174bf162694e5a
2014-12-10 17:33:46 +13:00
Karl Tomlinson
a8eb079cb4 bug 975782 stop delaying the load event when media fetch has stalled r=cpearce,f=kinetik
--HG--
extra : rebase_source : 7e47f1be1b68185377f20c0a8dc5f5f5b70b2938
2014-11-28 18:23:37 +13:00
Karl Tomlinson
d95ab8bc85 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.

--HG--
extra : rebase_source : cf2cf8a4de37ca4859761941946393e9747c0706
2014-11-28 17:07:15 +13:00
Karl Tomlinson
d21db9fc16 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.

--HG--
extra : rebase_source : e335555de404f6a899762be3c05b8f5444c357e3
2014-11-28 12:17:18 +13:00
Wes Kocher
126b4f108e Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
0f94bddfc8 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Andreas Pehrson
2debf3b941 Bug 1103848 - Part 1. Hint existing output streams as tracks become known. r=roc 2014-11-24 23:53:00 +01:00
Sid Stamm
00f65acbf1 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
99bec8c69b Bug 1097224 - Part1 - make mozCaptureStream work after onloadedmetadata even in opt build. r=jesup 2014-11-12 23:30:10 -05:00
Bobby Holley
610334a3eb 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
68c0ab5cf5 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
48cf285b42 Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00