Commit Graph

215 Commits

Author SHA1 Message Date
Andreas Pehrson
7851818950 Bug 1259788 - Multi-track support for MediaTrackList. r=jesup
MozReview-Commit-ID: 1av5uvyCMYv
2016-08-24 10:58:04 +02:00
Bryce Van Dyk
8c84be1a8f Bug 1145011 - Implement waitingforkey event. r=jya
Bubble information from SamplesWaitingForKey to an HTMLMediaElement so that we
can emit a waitingForKey event. If we are unable to decode more samples due to
needing a key the event will be signalled. See
http://w3c.github.io/encrypted-media/#dom-evt-waitingforkey for more information
on this event.

The code in place before this patch handles updating readyState when we are
waiting for a key, this patch adds the event which should be emitted in such a
case. The spec defines certain preconditions should be the case before running
the algo to emit this event. For example, the element should potentially be
playing, and it should have at least HAVE_FUTURE_DATA ready state. This is not
strictly true for when the new code is run, due how existing code handles ready
state. We are honoring the spirit of the spec, though the letter of the spec is
lightly gone against in the handling of the preconditions.

MozReview-Commit-ID: LKlDd4wkRSE
2016-08-22 08:51:01 +12:00
bechen
e2ae2d2c33 Bug 1291629 - Remove RTSP code. r=jwwang
MozReview-Commit-ID: AxaLwO4rTuY
2016-08-10 10:32:25 +08:00
Alastor Wu
e4b9fa835e Bug 1283417 - part1 : implement function to notify cue's display states changed. r=bechen
MozReview-Commit-ID: AF2S2UOLCt1
2016-08-09 16:43:07 +08:00
Gerald Squelart
a8099eb8bb Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA
2016-08-08 10:14:39 +08:00
Iris Hsiao
4df8be5986 Backed out changeset 41138b630cdc (bug 1293145) for nsCOMPtr crash \
CLOSED TREE
2016-08-09 14:21:22 +08:00
Gerald Squelart
8ea3a2c1f5 Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA
2016-08-08 10:14:39 +08:00
Kaku Kuo
40efb11f19 Bug 1274626 part 1 - add a method to HTMLMediaElement for debugging visibilty change; r=jwwang,ehsan
MozReview-Commit-ID: B1gAc0KfmCQ
2016-07-28 16:09:02 +08:00
Carsten "Tomcat" Book
4422966ea3 Backed out changeset eb7f310f128d (bug 1274626) for breaking unified builds 2016-08-02 17:47:47 +02:00
Kaku Kuo
bc0577ca70 Bug 1274626 - Part 1 - add a method to HTMLMediaElement for debugging visibilty change; r=jwwang,ehsan
MozReview-Commit-ID: B1gAc0KfmCQ
2016-07-28 16:09:02 +08:00
Carsten "Tomcat" Book
bc6615c2f9 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
JW Wang
fa1920a2bb Bug 1289649 - HTMLMediaElement should clear mDecoder when XPCOM shutdown begins. r=gerald
MozReview-Commit-ID: A3ECReCgiD7
2016-07-27 10:26:21 +08:00
Alastor Wu
a73b58fc73 Bug 1282410 - part1 : open unsupported type media. r=cpearce 2016-07-29 17:02:31 -05:00
Gerald Squelart
91f1df4585 Bug 1287712 - TimeDurationAccumulator includes running timer in reports - r=cpearce
If the timer is currently running, add started time segment until now to
Total(), and add 1 to Count().
This ensures correct values are returned without having to Pause().

MozReview-Commit-ID: JSBvL93GtkE
2016-07-19 17:46:38 +10:00
Sebastian Kaspari
3aa2c7f730 Backed out 3 changesets (bug 1282410)
Backed out changeset 39c367ecc144 (bug 1282410)
Backed out changeset 577309fc4bbb (bug 1282410)
Backed out changeset 339b5c5d3595 (bug 1282410)

MozReview-Commit-ID: 17IgTjbib20
2016-07-18 17:26:25 +02:00
Gerald Squelart
0a0dc33291 Bug 1285419 - Record mediasource hidden play time - r=kamidphish
Note that this is a simple duration counter based on the existing (non-hidden)
play-time, but it only counts when video is playing while hidden.
There is no bucketing yet, future probes may add finer-grained information.

MozReview-Commit-ID: DUfryXjGBAN
2016-07-08 16:40:31 +10:00
Gregory Szorc
7243daa74f Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Alastor Wu
ba50c27fb3 Bug 1282410 - part3 : add log. r=cpearce
MozReview-Commit-ID: KWf3uya31zv
2016-07-06 10:54:11 +08:00
Alastor Wu
cc0ca552cb Bug 1282410 - part1 : open unsupported type media. r=cpearce
MozReview-Commit-ID: 4fjkDlRgdt7
2016-07-06 10:34:29 +08:00
ctai
6ca94c56cb Bug 1266646 - Change HTMLMediaElement::StreamSizeListerner to inherit MediaStreamTrackDirectListener. r=pehrsons
MozReview-Commit-ID: HnNv9BnlbDy
2016-05-10 17:02:15 +08:00
Andreas Pehrson
cb934180a4 Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa
2016-06-29 12:27:13 +02:00
bechen
a475af3cfd Bug 1279865 - Don't run TimeMarchesOn if the MediaElement is not played. r=rillian
1. If mHasUserInteraction MediaElement is false, don't run the TimeMarchesOn because the element is not played. 2. Update the activeCueList only in TimeMarchesOn(). 3. Run TimeMarchesOn() at the beginning of play. r=rillian

MozReview-Commit-ID: BhwsIfRm3B2
2016-06-30 13:31:56 +08:00
Chris Pearce
4d492d6997 Bug 1267918 - Add GMPCrashHelper for HTMLMediaElement. r=gerald
This ensures that unencrypted GMP decoding crash reporting works.

MozReview-Commit-ID: 84TAV5F9Ie0
2016-06-29 11:42:07 +12:00
JW Wang
f053fac711 Bug 1235183. Part 3 - move mChannel to ChannelLoader so it will be easier to create the channel asynchronously. r=cpearce
MozReview-Commit-ID: 5n8P0L7m0Iw
2016-06-24 10:41:43 +08:00
JW Wang
8050804572 Bug 1274030 - clean VideoFrameContainer when "xpcom-shutdown" event received. r=cpearce
MozReview-Commit-ID: 92zeiNXSkjf
2016-05-22 21:39:55 +08:00
Kaku Kuo
ae2ee4a539 Bug 1276272 - part 3 - implement promise-based HTMLMediaElement::seekToNextFrame(); r=jwwang
MozReview-Commit-ID: JaUQe5GK6bF
2016-06-09 20:27:39 +01:00
Sebastian Hengst
9f3dd85be4 Backed out changeset 2c235b056514 (bug 1266646) for frequently crashing in mda's test_streams_element_capture_createObjectURL.html. r=backout 2016-06-13 21:24:54 +02:00
ctai
fc24eaafa6 Bug 1266646 - Change HTMLMediaElement::StreamSizeListerner to inherit MediaStreamTrackDirectListener. r=jesup, r=pehrsons
MozReview-Commit-ID: HnNv9BnlbDy
2016-05-10 17:02:15 +08:00
bechen
d2e8373ca8 Bug 882717 - Invoke TimeMarchesOn when the startTime/endTime/pauseOnExit be changed of TextTrackCue. r=rillian
MozReview-Commit-ID: 7Xol9x83lLx
2016-06-08 16:53:30 +08:00
Jonathan Watt
9c5b8de022 Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
bechen
dea4a1a40f Bug 1274884 - Add/Remove cue into MediaElement when TextTrack::mMode changed. r=rillian
MozReview-Commit-ID: 9PGEV5g8iv3
2016-06-02 16:08:32 +08:00
bechen
8351247123 Bug 882718 - triggerTimeMarchesOn. r=rillian
MozReview-Commit-ID: 2OOqr1Z6X9
2016-06-01 13:35:58 +08:00
Alastor Wu
e8e8300eb3 Bug 1240423 - part3 : add reason when media element notify audible changing. r=baku
MozReview-Commit-ID: C3DAZHhZOqH
2016-06-01 10:26:10 +08:00
Sebastian Hengst
5f6a0468d7 Backed out changeset 7f61a6bd8a3d (bug 882718) 2016-05-31 18:54:41 +02:00
bechen
da72c8bd4c Bug 882718 - triggerTimeMarchesOn. r=rillian
MozReview-Commit-ID: 2OOqr1Z6X9
2016-05-25 16:11:28 +08:00
Kaku Kuo
e6f65531fd Bug 1235301 - part 3 - export HTMLMediaElement::seekToNextFrame(); r=jwwang
MozReview-Commit-ID: 8WMpwOwfqxz
2016-05-24 23:05:35 +08:00
Carsten "Tomcat" Book
ea6b128335 merge mozilla-inbound to mozilla-central a=merge 2016-05-24 14:52:23 +02:00
Jared Wein
857deb4011 Bug 1270853 - Remove HTML5 video controls statistics. r=gijs, r=bz for removing internal chrome/xbl attribute in webidl
MozReview-Commit-ID: 53BYXvHaaB9
2016-05-19 23:30:12 -04:00
Ryan VanderMeulen
df8cb964d7 Backed out changeset 83a1b9c7ae8d (bug 1270853) for browser_dbg_event-listeners-03.js failures. 2016-05-19 11:27:58 -04:00
Jared Wein
43cb8f50a4 Bug 1270853 - Remove HTML5 video controls statistics. r=gijs, r=bz
MozReview-Commit-ID: 53BYXvHaaB9
2016-05-17 20:52:00 -04:00
Phil Ringnalda
7b1eeb09d6 Back out 2 changesets (bug 1181055, bug 1270853) for surprising devtools browser_dbg_event-listeners-03.js with the removal of an event listener
Backed out changeset d5acbd8b896c (bug 1181055)
Backed out changeset 0d17446ad21a (bug 1270853)
2016-05-18 21:47:33 -07:00
Jared Wein
ddf2cf8b38 Bug 1270853 - Remove HTML5 video controls statistics. r=gijs, r=bz
MozReview-Commit-ID: 53BYXvHaaB9
2016-05-17 20:52:00 -04:00
Boris Zbarsky
da1b7b9d44 Bug 909633. Remove the HTML Microdata API, since no one else ended up implementing it and now it's been removed from the spec. r=bkelly,jgraham 2016-05-20 23:13:17 -04:00
Ralph Giles
d206e3f28c Bug 1270614 - Rename ReportMSETelemetry(). r=SingingTree
This function is no longer MSE-specific, so use a more general
ReportTelemetry() name for it.

MozReview-Commit-ID: JU7S4pEFLWk
2016-05-05 12:48:45 -07:00
Ralph Giles
79670a92b1 Bug 1261955 - Re-activate VIDEO_PLAY_TIME_MS telemetry probe. r=SingingTree,bsmedberg
Rename the VIDEO_MSE_PLAY_TIME_MS telemetry probe to just
VIDEO_PLAY_TIME_MS and make it active for all video playback.

We were using this to track MSE deployment success. Now we'd
like to do something similar for video playback in general,
regardless of the origin. This allows us to simplify the
collection code somewhat.

MozReview-Commit-ID: 7s8pOQWipf4
2016-05-05 12:45:59 -07:00
Ralph Giles
29b511614e Bug 1261955 - Remove VIDEO_MSE_JOIN_LATENCY_MS telemetry probe. r=SingingTree
This is no longer necessary.

MozReview-Commit-ID: 81pF9cSvKab
2016-05-05 12:45:59 -07:00
Alastor Wu
d823603707 Bug 1235612 - Part 5: Rename NotifyAudibleStateChanged. r=jwwang
MozReview-Commit-ID: LRikTbqoOch
2016-05-03 17:59:43 +08:00
Alastor Wu
fa581a0925 Bug 1235612 - Part 3: Implement the logic of audible state notification for agent owners. r=baku
MozReview-Commit-ID: 6CueLPpuXWm
2016-05-03 17:59:32 +08:00
Alastor Wu
25bfd88496 Bug 1242874 - part5 : add test. r=baku, r=ehsan
MozReview-Commit-ID: 7xo6gMX0bR7
2016-05-03 09:52:53 +08:00
Alastor Wu
5704a47317 Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang
MozReview-Commit-ID: HHYX29gbLwk
2016-05-03 09:52:38 +08:00