Commit Graph
418 Commits
Author SHA1 Message Date
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 a47af62e51 Bug 1288971 - notify audio playback changed by media element's play(). r=baku
Notify audible-changing when resuming audio by MediaElement::play() instead of control interface.

MozReview-Commit-ID: 10a1npQ46Th
2016-07-29 19:26:56 +08:00
James Willcox c3412b379c Bug 1286133 - Use Android VideoView to play HLS r=sebastian,jchen 2016-07-29 17:02:35 -05:00
Alastor Wu a73b58fc73 Bug 1282410 - part1 : open unsupported type media. r=cpearce 2016-07-29 17:02:31 -05:00
Gerald Squelart 8bc046004e Bug 1289668 - Report inter-keyframe telemetry - r=kamidphish
Use the new FrameStatistics members to report telemetry about inter-keyframe
timings.

MozReview-Commit-ID: 1ZWU2qpSWyC
2016-07-27 15:43:01 +10:00
Gerald Squelart 5073971142 Bug 1289668 - HTMLMediaElement uses video decoder's frame statistics - r=kamidphish
HTMLVideoElement can expose its thread-safe FrameStatistics object, so that
HTMLMediaElement can access more adequate data for its telemetry, without
having to use an intermediary (and potentially less accurate)
VideoPlaybackQuality object.

This will also help with accessing other/new FrameStatistics members later on.

MozReview-Commit-ID: AT7mEGy0zGr
2016-07-26 11:32:58 +10:00
Gerald Squelart 6050423409 Bug 1289674 - Don't record video telemetry when there is no video - r=kamidphish
MozReview-Commit-ID: nJniysQfpM
2016-07-27 16:26:45 +10:00
JW Wang 607ad6f2fb Bug 1289334 - HTMLMediaElement::ResetConnectionState() should shut down the decoder. r=cpearce
MozReview-Commit-ID: 7IZ2Y4Da7xZ
2016-07-26 16:37:45 +08:00
Carsten "Tomcat" Book cba0e3ed2d Merge mozilla-central to mozilla-inbound 2016-07-21 16:26:18 +02:00
Andrea Marchesini 3ac1b3ccda Bug 1279493 - Use blob URLs exclusively rather than having mediastream and mediasource URLs, r=smaug 2016-07-21 14:31:43 +02:00
Gerald Squelart df4867b816 Bug 1287987 - Record VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE telemetry - r=kamidphish
MozReview-Commit-ID: FJk7Jn5mqTp
2016-07-19 17:47:45 +10:00
Carsten "Tomcat" Book c93296ca04 merge autoland to mozilla-central a=merge 2016-07-20 10:59:12 +02:00
Carsten "Tomcat" Book 5b7a9a4582 merge fx-team to mozilla-central a=merge 2016-07-19 16:09:20 +02:00
Gerald Squelart 62b674c29c Bug 1287684 - Report HTMLMediaElement telemetry for non-MSE - r=rillian
Removed test blocking execution of ReportTelemetry in non-MSE case.

EME currently depends on MSE, so ReportEMETelemetry won't do anything in the
non-MSE case anyway. But I think it's good to remove the MSE test as well, in
case we change that limitation in the future.

MozReview-Commit-ID: 8sTg5F13KMs
2016-07-19 14:33:55 +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
Sebastian Kaspari 2f707909b4 Backed out changeset 83088b5375ae (bug 1284754)
MozReview-Commit-ID: F0AEFYIxgHI
2016-07-18 17:26:24 +02:00
Jean-Yves Avenard 46fb3fc809 Bug 1287021: [MSE] Set delaying-the-load-event-flag to false when attaching media source. r=jwwang
MozReview-Commit-ID: IsF1BPHrjce
2016-07-15 14:22:47 +10:00
Gerald Squelart cbc62dde96 Bug 1286444 - Fix types when using VideoPlaybackQuality values - r=kinetik
These numbers are only used to calculate a percentage, so they don't really
need to be 64-bit long.

MozReview-Commit-ID: FfdyStjGITL
2016-07-14 15:25:40 +10: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
Chris Pearce c95486ddda Bug 1277813 - Consider HTMLMediaElement.load() in user generated event handler to allow autoplay. r=kinetik
This is so that if media autoplay is disabled, a site can capture user intent
to play in their click handlers by calling load() on an empty video element to
"bless" the video element with the ability to play later when the video has
loaded.

Large video sites typically have a catalog view of videos to chose from on
their main page, and when the user clicks on one, with this patch, the site can
bless a video element so that it will play by beginning the load of that video
in the click handler. Often these sites do a bunch of asynchronous things
before they actually get around to playing the video, they don't call play in
the click handler, so we need another way to bless the videos so they can play.

We allow seeks in a click handler to capture user intent to play, so I don't
see why we should not also allow a load() to capture user intent.


MozReview-Commit-ID: KzjNcn3s6od
2016-07-12 16:25:33 +12:00
Gregory Szorc 974eae39e8 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07: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
ctai 247106d0a0 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW
2016-06-30 15:07:48 +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
Alastor Wu 87d694bd49 Bug 1284754 - modify typo error for the event openMediaWithExternalApp. r=jwwang
MozReview-Commit-ID: 1WeniGeQlqa
2016-07-06 15:07:21 +08:00
Kaku Kuo 738c78760d Bug 1282710 - Part 1 - implement the suspend and resume logics in HTMLMediaElement.cpp according to visibility events; r=cpearce r=kamidphish
MozReview-Commit-ID: 4SyqzA1dnPB
2016-07-04 13:26:40 +08: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 e4650b598a Bug 1282585 - Ensure content process doesn't crash if CDM crashes before MediaKeys attaches to media element or media element loads. r=jwwang
MozReview-Commit-ID: 2CpiDv6u4RP
2016-06-29 16:09:24 +12:00
JW Wang 79988be1c2 Bug 1235183. Part 5 - per comment 35, cancel existing |mChannelLoader| in AbortExistingLoads(). r=cpearce
MozReview-Commit-ID: 27DZC8rwAJ5
2016-06-29 07:50:33 +08:00
JW Wang d465242b80 Bug 1235183. Part 4 - create channel asynchronously. r=cpearce
MozReview-Commit-ID: 9JVuHhhMFoa
2016-06-24 13:45:01 +08: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 63c6d8f422 Bug 1235183. Part 2 - remove unnecessary null-checks. r=cpearce
MozReview-Commit-ID: 6XZMrjw440L
2016-06-23 17:15:50 +08:00
JW Wang 9b87d5d7d2 Bug 1235183. Part 1 - fix coding styles. r=cpearce
MozReview-Commit-ID: EDUC3ZvIdim
2016-06-23 17:09:42 +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
bechen 835da4b871 Bug 1280814 - Prevent the media::Interval crash due to the unexpected playback position. r=rillian
MozReview-Commit-ID: AZ9Gb2Y0wDF
2016-06-20 15:58:58 +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
Sebastian Hengst 0f229b854b Backed out changeset c89b8cc657b2 (bug 1266646) 2016-06-13 21:23:53 +02:00
ctai 836786922a Bug 1266646 - Rename MediaStreamDirectListener and MediaStreamTrackDirectListener to DirectMediaStreamListener and DirectMediaStreamTrackListener respectively. r=jesup,pehrsons
Rename those two function to better name alignment with AddDirectListener and AddDirectTrackListener.

MozReview-Commit-ID: 6QY08oyih1X
2016-04-29 11:45:25 +08: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
Jan-Ivar Bruaroey 377294b266 Bug 1213517 - make track.applyConstraints() store constraints on success. r=jesup
MozReview-Commit-ID: CqTgWuBXSyD
2015-11-18 22:17:09 -05:00
Iris Hsiao 9fe16cf32d Backed out changeset 015cb0829df5 (bug 1213517) 2016-07-18 15:41:47 +08:00
Jan-Ivar Bruaroey fdfa6d8949 Bug 1213517 - make track.applyConstraints() store constraints on success. r=jesup
MozReview-Commit-ID: CqTgWuBXSyD
2015-11-18 22:17:09 -05:00
bechen e0bae2d76b Bug 1275808 - Move the UpdateCueDisplay() into TimeMarchesOn() as step 18. r=rillian
MozReview-Commit-ID: GrcZCjstBy9
2016-06-01 17:37:26 +08:00
Jean-Yves Avenard dbfe42c9c9 Bug 1277729: Ignore readyState value when reporting the buffered range. r=jwwang
For plain media playback, the buffered range will always be empty if readyState is HAVE_NOTHING has we need to decode the metadata to determine the duration and eventually decode the first frame to determine the start time. With MSE however, the buffered range is per spec directly related to the source buffer buffered range.

So we can always simply query the MediaDecoder to determine the buffered range regardless of the readyState value.

MozReview-Commit-ID: BQs8iuUCiNw
2016-06-03 11:46:36 +10:00