Chris Pearce
29cc2ddc3a
Bug 1109389 - Don't share task queues with all EMEDecryptors the EME PDM creates. r=kinetik
2014-12-09 20:34:00 +01:00
Jean-Yves Avenard
0a17f71202
Bug 1107339 - Add support for MP4 with VP6F video track (FFmpeg only). r=k17e
2014-12-04 11:58:00 -08:00
Karl Tomlinson
97a59cd4b8
bug 1108846 notify MediaSourceDecoder of bytes downloaded to trigger progress events r=kinetik
...
--HG--
extra : rebase_source : d13f3a9c46cce745cffc86a179875f34e7a52428
2014-12-10 10:45:06 +13:00
Karl Tomlinson
e024d3ec2b
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
edf785a07c
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
Karl Tomlinson
01db7a2b8e
bug 1108787 use NowLoRes() for progress event timing r=cpearce
...
Precision is not required, and is more costly on some platforms.
--HG--
extra : rebase_source : de36a0d249a89e579a7433f40c89b339f7db5b49
2014-11-21 15:45:29 +13:00
Karl Tomlinson
63b2b899ae
bug 1108787 dispatch progress even when timer runs late r=cpearce
...
avoiding skipping progress events when data is received only soon after the
previous progress event.
--HG--
extra : rebase_source : 5108ae7d91bac613ed67f85c0963c6ca020bee07
2014-11-21 17:37:44 +13:00
Bobby Holley
55609f006c
Bug 1108707 - Make reader shutdown asynchronous. r=cpearce (relanding on a CLOSED TREE because it wasn't the source of the leaks)
2014-12-09 11:43:21 -08:00
Ryan VanderMeulen
85f812e9de
Backed out changeset 18c302f80bce (bug 1108707) for nsTArray_base leaks.
...
CLOSED TREE
2014-12-09 15:49:38 -05:00
Chris Pearce
5bb9ff5881
Bug 1077159 - Use macros for GMP API names, to make them implicitly versionable. r=jesup
2014-12-10 09:35:26 +13:00
Bobby Holley
eb400f0f59
Bug 1108707 - Make reader shutdown asynchronous. r=cpearce
2014-12-09 11:43:21 -08:00
Paul Adenot
a7c11fa504
Bug 1065924 - Make sure we correctly update the variables tracking the number of samples written. r=jesup
...
--HG--
extra : rebase_source : 0f42c4a6d612a98f56edf93811cccca6d210795e
2014-12-09 14:11:32 +01:00
Byron Campen [:bwc]
5a74f2b117
Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted
2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
816c0483d4
Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug
2014-11-19 16:16:29 -08:00
Byron Campen [:bwc]
1ace93c015
Bug 1091242 - Part 3: Mochitest work. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jib
2014-11-19 16:18:10 -08:00
Ehsan Akhgari
0ad89a5bb3
Bug 1108687 - Fix the MOZ_STACK_CLASS annotation on DecodersToInitialize; r=jyavenard
...
The attribute syntax should appear after class.
--HG--
extra : rebase_source : 2793470bf5bcd8b701729906987ce9958016b4e7
2014-12-08 23:24:55 -05:00
Phil Ringnalda
00cf414888
Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage
...
CLOSED TREE
Backed out changeset 7f72b55c5de7 (bug 1091242)
Backed out changeset f1501aa24397 (bug 1091242)
Backed out changeset 7fde5994aee5 (bug 1091242)
Backed out changeset 59b415714087 (bug 1091242)
Backed out changeset dadb65fedc08 (bug 1091242)
Backed out changeset 21be81424e4e (bug 1091242)
Backed out changeset 498fb1dafba5 (bug 1091242)
Backed out changeset 8d0653eb85ab (bug 1091242)
Backed out changeset c82d484e135a (bug 1091242)
Backed out changeset 3e0c8932f1b1 (bug 1091242)
2014-12-08 20:53:07 -08:00
Chris Peterson
15996b5402
Bug 1107814 - Part 2: Mark some directories as FAIL_ON_WARNINGS conditionally for some compilers. r=gps
2014-12-04 01:11:14 -08:00
Chris Peterson
d3acb03f9f
Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps
2014-12-04 16:24:03 -08:00
Bobby Holley
25fc505c3e
Bug 1108767 - Add the ability to chain same-type promises. r=cpearce
2014-12-08 17:19:05 -08:00
Bobby Holley
5827f5f41e
Bug 1108767 - Allow promises to be resolved without a MediaPromiseHolder. r=cpearce
...
It turns out that there are use-cases where this restriction is clunky.
2014-12-08 17:19:05 -08:00
Bobby Holley
e9cb8ab7de
Bug 1108767 - Add MediaPromise::{Resolve,Reject}IfExists. r=cpearce
2014-12-08 17:19:05 -08:00
Bobby Holley
72252dd9bc
Bug 1108767 - Stop including MediaTaskQueue.h from MediaPromise.h. r=cpearce
...
We need this so that MediaTaskQueue can use promises.
2014-12-08 17:19:05 -08:00
Bobby Holley
d16e2bb882
Bug 1108767 - Separate ThenValueRunnable so that the constructors don't collide when the resolve value is the same as the reject value. r=cpearce
2014-12-08 17:19:05 -08:00
Wes Kocher
c659ea6bce
Backed out changeset bf25101e66cf (bug 1095098) for build bustage
2014-12-08 16:27:12 -08:00
Denis Volk
c3639f1324
Bug 1095098: move do_QueryObject templates into their own header r=froydnj
2014-11-20 12:20:10 +01:00
Bobby Holley
2123ec5be1
Bug 1097823 - Implement Media Promises. r=cpearce
2014-12-08 14:45:37 -08:00
Bobby Holley
4c90a9c683
Bug 1097823 - Implement MediaTaskQueue::ForceDispatch. r=cpearce
...
This is necessary to have strong guarantees that promises will be resolved.
While we're flushing the task queue, normal dispatch starts to fail,
meaning that we can't dispatch promise resolution. We have 3 options to handle
this:
(A) Never respond to the promise.
(B) Invoke the Resolve/Reject callback synchronously if dispatch fails.
(C) Prevent dispatch from failing.
(C) seems like the option least likely to violate invariants if we can get away
with it. Promise resolution is unlikely to be a heavyweight task in the way that
a decode task might be, so this should hopefully be ok.
Note that this still doesn't help for bonafide task queue shutdown. It's up to
consumers to tear down their MediaPromiseHolders before the task queues are shut
down.
2014-12-08 14:45:37 -08:00
Bobby Holley
301ee83ed7
Bug 1097823 - Move NotDecodedReason from RequestSampleCallback to MediaDecoderReader. r=cpearce
2014-12-08 14:45:36 -08:00
Byron Campen [:bwc]
5c9f7b9ba3
Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted
2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
3c896093a9
Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug
2014-11-19 16:16:29 -08:00
Byron Campen [:bwc]
18e8f88a54
Bug 1091242 - Part 3: Mochitest work. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jib
2014-11-19 16:18:10 -08:00
Ryan VanderMeulen
be6607416e
Merge inbound to m-c. a=merge
2014-12-08 15:46:14 -05:00
Ryan VanderMeulen
8b716a35b2
Backed out changesets ae63e2dda6e0, a9ca0113db3c, and d0a6757e24bd (bug 1097823) for bustage.
...
DONTBUILD CLOSED TREE
2014-12-08 15:00:02 -05:00
Bobby Holley
081dbd1936
Bug 1097823 - Implement Media Promises. r=cpearce
2014-12-08 11:34:50 -08:00
Bobby Holley
a809fdd3f0
Bug 1097823 - Implement MediaTaskQueue::ForceDispatch. r=cpearce
...
This is necessary to have strong guarantees that promises will be resolved.
While we're flushing the task queue, normal dispatch starts to fail,
meaning that we can't dispatch promise resolution. We have 3 options to handle
this:
(A) Never respond to the promise.
(B) Invoke the Resolve/Reject callback synchronously if dispatch fails.
(C) Prevent dispatch from failing.
(C) seems like the option least likely to violate invariants if we can get away
with it. Promise resolution is unlikely to be a heavyweight task in the way that
a decode task might be, so this should hopefully be ok.
Note that this still doesn't help for bonafide task queue shutdown. It's up to
consumers to tear down their MediaPromiseHolders before the task queues are shut
down.
2014-12-08 11:34:50 -08:00
Bobby Holley
8aa19738d9
Bug 1097823 - Move NotDecodedReason from RequestSampleCallback to MediaDecoderReader. r=cpearce
2014-12-08 11:34:50 -08:00
Jay Wang
32debb7f9a
Bug 1105452 - Need to use new Audio system APIs for audio offload playback. r=roc, r=jld, r=ggrisco
...
Resolve the build failure caused by API changes
There are some changes in Audio APIs in Android version
21. Modifying the code to use the new APIs.
Change-Id: I24fdeb20f8f957d05fb6c0c317de0a6f0769c347
Resolve seccomp violation caused by syscall 256
Modify the filter to allow syscall 256 (set_tid_address).
Change-Id: I49461770c4c5e70bf68462d34321381b0b7ead0a
2014-12-02 17:10:00 -05:00
Andreas Pehrson
9110cac5c4
Bug 1106963 - Resync media stream clock before destroying decoded stream. r=roc
2014-12-04 19:29:00 +01:00
Jan-Ivar Bruaroey
1826aecdaf
Bug 1053407 - return DOMError rather than string in peerConnection callbacks. r=bz, r=jesup
2014-11-26 15:26:37 -05:00
Bobby Holley
bd16d69b15
Backed out changeset c405b4271e64 (bug 1097823)
2014-12-07 17:09:12 -08:00
Bobby Holley
a9c173384c
Backed out changeset 8dfbe042e946 (bug 1097823)
2014-12-07 17:09:11 -08:00
Bobby Holley
efdc41af7f
Backed out changeset b56e5e762329 (bug 1097823)
2014-12-07 17:09:09 -08:00
Bobby Holley
142c54bbb7
Backed out changeset b76636e9f49a (bug 1097823)
2014-12-07 17:09:08 -08:00
Bobby Holley
7a75cf698f
Backed out changeset ab6ddc8ac28a (bug 1097823)
2014-12-07 17:09:06 -08:00
Bobby Holley
bcf960613c
Backed out changeset 47c97b8b490c (bug 1097823)
2014-12-07 17:09:04 -08:00
Bobby Holley
38f9a34097
Backed out changeset 1ea671313ad3 (bug 1097823)
2014-12-07 17:09:03 -08:00
Bobby Holley
5ab82a9fe6
Backed out changeset 979bec024c07 (bug 1097823)
2014-12-07 17:08:19 -08:00
Bobby Holley
a58bd0270b
Bug 1097823 - Followup to remove the assertions cpearce asked for because they don't hold. rpending=cpearce
2014-12-07 15:41:46 -08:00
Bobby Holley
eab5796fe5
Bug 1097823 - Followup to avoid null-derefing when promises have already been rejected during shutdown. rpending=cpearce
2014-12-07 15:08:47 -08:00
Bobby Holley
b007d59daf
Bug 1097823 - Followup fix to ensure that the borrowed task queue doesn't get destroyed before subdecoders shut down. rpending=cpearce
2014-12-07 13:25:11 -08:00
Bobby Holley
0bff227286
Bug 1097823 - Replace AudioDecodeRendezvous with promise-y goodness. r=cpearce,karlt
2014-12-07 11:21:35 -08:00
Bobby Holley
0fea43410f
Bug 1097823 - Use MediaPromises for RequestAudioData and RequestVideoData. r=cpearce
2014-12-07 11:21:35 -08:00
Bobby Holley
6e5aa9c858
Bug 1097823 - Implement Media Promises. r=cpearce
2014-12-07 11:21:34 -08:00
Bobby Holley
d39a169145
Bug 1097823 - Implement MediaTaskQueue::ForceDispatch. r=cpearce
...
This is necessary to have strong guarantees that promises will be resolved.
While we're flushing the task queue, normal dispatch starts to fail,
meaning that we can't dispatch promise resolution. We have 3 options to handle
this:
(A) Never respond to the promise.
(B) Invoke the Resolve/Reject callback synchronously if dispatch fails.
(C) Prevent dispatch from failing.
(C) seems like the option least likely to violate invariants if we can get away
with it. Promise resolution is unlikely to be a heavyweight task in the way that
a decode task might be, so this should hopefully be ok.
Note that this still doesn't help for bonafide task queue shutdown. It's up to
consumers to tear down their MediaPromiseHolders before the task queues are shut
down.
2014-12-07 11:21:34 -08:00
Bobby Holley
5f6567b606
Bug 1097823 - Move NotDecodedReason from RequestSampleCallback to MediaDecoderReader. r=cpearce
2014-12-07 11:21:34 -08:00
Ryan VanderMeulen
2749f3ea85
Backed out 5 changesets (bug 1098126) for Windows web-platform-test failures.
...
Backed out changeset 7cf7a6ea28c2 (bug 1098126)
Backed out changeset 21aab02fb41c (bug 1098126)
Backed out changeset 55dba2167b36 (bug 1098126)
Backed out changeset 73c2707c4f60 (bug 1098126)
Backed out changeset 4d6a52c5fb75 (bug 1098126)
2014-12-05 20:09:54 -05:00
Anthony Jones
a81752884a
Bug 1098126 - Add CENC support to MoofParser; r=edwin
2014-12-05 14:17:23 -08:00
Chris Pearce
a904300204
Bug 1049272 - Expose sandbox vouchers to GMPs. r=jesup
2014-12-05 00:43:41 -08:00
JW Wang
69e7047151
Bug 1107545 - add off-main-thread tests for GMPStorage APIs. r=cpearce.
2014-12-04 21:34:00 +01:00
JW Wang
94032a1f1b
Bug 1107545 - introduce a test manager to make storage tests scalable. r=cpearce.
2014-12-04 21:32:00 +01:00
Jan-Ivar Bruaroey
48afd85093
Bug 1091898 - restore exception-handling around legacy callbacks. r=mt
2014-12-08 09:37:14 -06:00
Jan-Ivar Bruaroey
47e31bc7a0
Bug 1091898 - promise-chain test + converted non-harness-using tests to promises. r=drno
2014-12-08 10:28:52 -06:00
Jan-Ivar Bruaroey
3dbb3e8d0c
Bug 1091898 - remove old non-spec exceptionhandling around callbacks. r=jesup, r=drno
2014-11-26 22:35:54 -05:00
Jan-Ivar Bruaroey
a0290b4999
Bug 1091898 - add RTCPeerConnection hybrid with promises. r=bz, r=mt
2014-12-08 09:36:18 -06:00
Jan-Ivar Bruaroey
47af3a98f2
Bug 1091898 - pass in getWebIDLCallerPrincipal().origin to IdP to allow use of Promises. r=mt
2014-12-08 09:53:47 -06:00
Jan-Ivar Bruaroey
b8d08155b6
Bug 1091898 - remove webrtc-specific testing of webidl exceptions. r=jesup, r=drno
2014-12-08 09:50:35 -06:00
Jan-Ivar Bruaroey
5678724115
Bug 1091898 - add Error names to PeerConnection errors rather than empty string. r=jesup
2014-12-08 09:35:32 -06:00
Jean-Yves Avenard
0ad46e126e
Bug 1107264 - Enable the use of FFmpeg on mac. r=k17e
2014-12-03 14:41:49 -08:00
Paul Adenot
b3629ff9c1
Bug 1092831 - AnalyserNode should have channelCountMode set to "max" by default. r=ehsan
...
Spec change: https://github.com/WebAudio/web-audio-api/issues/450
--HG--
extra : rebase_source : f8e71f73e45f31e31c745e29e4b694778d7db445
2014-12-04 11:22:51 -08:00
Paul Adenot
02fe06369c
Bug 1100349 - Tests for the StereoPannerNode. r=ehsan
...
--HG--
extra : rebase_source : 4944c4626f5e6ab40a95be8bc02b4389572077a7
2014-11-19 18:16:07 +01:00
Paul Adenot
44696fc60b
Bug 1100349 - Implement StereoPannerNode. r=ehsan,smaug
...
--HG--
extra : rebase_source : c0d3df3c4ea01001c0800997edbdf441c7287fb8
2014-11-19 18:15:13 +01:00
Matt Woodrow
a79a317823
Bug 1107274 - Don't return EOS from MP4Reader until all frames have been output. r=cpearce
2014-12-04 11:51:30 -08:00
Chris Pearce
77a45da243
Bug 1104970 - Store GMPStorage record names at the start of each record. r=jesup
2014-12-03 13:36:00 +01:00
Chris Pearce
65ae37ec73
Bug 1104970 - Handle GMPStorage write failure in gtest. r=edwin
2014-12-03 13:34:00 +01:00
Mike Habicher
a7c74a2f9a
Bug 1103400 - add autofocus support to WebRTC on Gonk, r=aosmond,jesup
2014-12-03 17:08:00 +01:00
Matthew Gregan
8db9fef65c
Bug 1106657 - Move MOZ_PDM_VPX definition to moz.build. r=bholley
2014-12-02 14:00:45 +13:00
Andreas Pehrson
a2e4aaa5db
Bug 1106547 - Return EOS after drain is complete, rather than before. r=cpearce
2014-12-01 22:10:00 +01:00
Andreas Pehrson
480f27a888
Bug 1105126 - Change test_eme_stream_capture_blocked.html to check loadeddata instead of canplay. r=cpearce
2014-12-01 19:24:00 +01:00
Bobby Holley
6f72e4759f
Bug 1104964 - Make MediaDecoderReader own the task queue. r=cpearce
2014-12-01 21:51:03 -08:00
Bobby Holley
f5549dba7e
Bug 1104964 - Rename the task queue for hardware video decoding to something more obvious. r=cpearce
...
Otherwise it will shadow the mTaskQueue that we're about to introduce on
MediaDecoderReader.
2014-12-01 21:51:02 -08:00
Bobby Holley
a51815e6f2
Bug 1104964 - Split shutdown initiatation and queue-drain-waiting into separate pieces. r=cpearce
...
This patch shouldn't change any behavior. The upcoming patch takes advantage of
these separate pieces.
2014-12-01 21:51:02 -08:00
Bobby Holley
7a9636027d
Bug 1104964 - Make sure that MediaDecoderReader::Shutdown is always called. r=cpearce
2014-12-01 21:51:02 -08:00
Bobby Holley
5e569529a8
Bug 1104964 - Handle ShutdownPoolsEvent race. r=cpearce
2014-12-01 21:51:02 -08:00
Matthew Gregan
87f717717e
Bug 1104410 - Add a test.
...
--HG--
extra : rebase_source : 5350acb0503b650ba322cebe14d39e1df5778e51
2014-12-02 11:59:45 +13:00
JW Wang
1de4325a88
Bug 1102607 - make GMPStorage APIs callable off the main thread. r=cpearce.
2014-11-28 00:34:00 +01:00
awake
153d42d171
Bug 1100632 - Remove --disable-opus option and MOZ_OPUS #define macros. r=rillian,ted
2014-11-28 01:20:00 -08:00
Ralph Giles
5b0b9228c8
Bug 1065111 - Remove more obsolete AppleUtils includes. r=jya
2014-11-27 15:23:00 -08:00
Ralph Giles
6a64d0a39b
Bug 1065111 - Move logging function AppleDecoderModule. r=jya
...
This allows us to remove the AppleUtils.cpp source file entirely.
2014-11-27 13:23:00 -08:00
Ralph Giles
9fc126e5e8
Bug 1065111 - Remove obsolete logging macros. r=jya
2014-11-27 13:21:00 -08:00
Ralph Giles
091ee0e924
Bug 1065111 - Remove obsolete SetCFDict helpers. r=jya
...
We use CFDictionaryCreate with array literals for the keys and values
now instead.
2014-11-27 13:20:00 -08:00
Paul Adenot
6caf4dcabc
Bug 1087944 - Test for the promise returned by OfflineAudioContext.startRendering(). r=ehsan
...
--HG--
extra : rebase_source : 134c1bb8684be1cefe9bd75efc9868eaf42a674e
2014-11-19 18:18:24 +01:00
Paul Adenot
0ebbb55c29
Bug 1087944 - Implement the promise version of OfflineAudioContext. r=ehsan,smaug
...
--HG--
extra : rebase_source : b5546f150ae8b2307e82dc8c6aae5bfbd5b5e670
2014-11-19 11:38:39 +01:00
Phil Ringnalda
59b7974ee0
Merge b-i to m-c, a=merge
2014-11-28 15:08:30 -08:00
Blake
73df94c36b
Bug 1104411- Continue to read next frame if the length is 0. r=sotaro
2014-11-26 10:59:17 +08:00
Matt Woodrow
ddb3346974
Bug 1102647 - Always call Shutdown when removing decoders from TrackBuffer. r=karlt
2014-11-28 13:20:09 +13:00
Matt Woodrow
3734895cea
Bug 1105553 - Handle 'CANCELLED' NotDecodedReason in MediaSourceReader. r=ajones
2014-11-28 13:17:32 +13:00
JW Wang
f672c4bc59
Bug 886188 - add debuggins logs to diagnose test15 timeouts in test_preload_actions.html. r=cpearce
2014-11-24 19:46:00 +01:00
Ryan VanderMeulen
5df3040f12
Merge m-c to inbound. a=merge
2014-11-26 21:43:23 -05:00
Ryan VanderMeulen
1ac5f2eafb
Merge inbound to m-c. a=merge
2014-11-26 20:34:29 -05:00