Kilik Kuo
90420c357e
Bug 1204882 - Move MediaDecoder::FrameStatistics out of MediaDecoder for easier use in other classes. r=jwwang
...
--HG--
extra : transplant_source : 3%E1%C1%3B%B5%8B%82%20%DF%AE%1A%21%E0f%FF%7C%3C%0EF%10
2015-09-15 22:57:20 +08:00
JW Wang
0f170dcc0b
Bug 1203877 - Remove MediaDecoder::UpdatePlaybackOffset. r=kinetik.
2015-09-15 13:51:12 +08:00
JW Wang
991d089255
Bug 1203418. Part 1 - cache the results of ComputePlaybackRate() so they can be mirrored by MDSM. r=cpearce.
...
Since the results of ComputePlaybackRate() depend on mDuration and mPlaybackStatistics,
we call ComputePlaybackRate() when mDuration is changed or mPlaybackStatistics->Stop() is called.
GetStatistics() won't have to call ComputePlaybackRate() because the results are already stored in
mPlaybackBytesPerSecond and mPlaybackRateReliable.
We will fix the MDSM part in the next patch.
2015-09-15 10:04:50 +08:00
JW Wang
4fecfe3ea1
Bug 1203374. Part 1 - extract the code of computing canplaythrough so it is reusable. r=jya.
...
1. extract MediaDecoder::Statistics to its own file.
2. sort out include orders of MediaDecoderStateMachine.cpp
2015-09-10 16:37:26 +08:00
JW Wang
b853505d1f
Bug 1199155. Part 2 - fix includes and forward declarations. r=roc.
2015-09-07 19:32:04 +08:00
JW Wang
d5b1c53fd7
Bug 1195158. Part 5 - 1. Fix insufficient includes and sort out include order. 2. Only disconnect |mTimedMetadataListener| when the state machine is created. r=cpearce.
2015-09-07 11:39:46 +08:00
JW Wang
7cab08fca3
Bug 1195158. Part 4 - remove unused code. r=cpearce.
2015-09-07 11:39:16 +08:00
JW Wang
09c4ea2b2e
Bug 1195158. Part 3 - connect listeners. r=cpearce.
...
a. MediaMetadataManager is connected to MediaDecoderReader::mTimedMetadataEvent to receive TimedMetadata events.
b. OggReader publish TimedMetadata events through MediaDecoderReader::mTimedMetadataEvent.
c. MDSM calls MediaMetadataManager::DispatchMetadataIfNeeded to publish metadata if playback positoin reaches the publish time.
d. MediaDecoder is connected to MediaMetadataManager::mTimedMetadataEvent to receive TimedMetadata events.
e. MediaDecoder updates its metadata when TimedMetadata events are received.
2015-09-07 11:38:34 +08:00
JW Wang
3a7d265755
Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds. r=jya.
2015-08-12 18:02:34 +08:00
JW Wang
c8f63ccc7b
Bug 1191684 - Remove unnecessary calls to NotifyAll() on the decoder monitor since no one calls Wait(). r=cpearce.
2015-08-10 09:54:48 +08:00
JW Wang
c1624b854e
Bug 1191173 - Mirror MediaDecoder::mSameOriginMedia in MDSM. r=jya.
2015-08-06 18:05:30 +08:00
Benjamin Chen
69e26539a4
Bug 1186752
- Remove ScheduleStateMachine() in MediaDecoder.cpp since we have state mirror. r=jwwang
2015-07-23 18:39:09 +08:00
Paul Adenot
f7bb3fd5bd
Bug 1156472 - Part 7 - Allow to un-capture an HTMLMediaElement. r=pehrsons,jwwang
2015-07-24 14:28:17 +02:00
Wes Kocher
83b4188234
Backed out 14 changesets (bug 1156472) for test_getUserMedia_audioCapture.html failures on b2g emulator
...
Backed out changeset deec8eb18346 (bug 1156472)
Backed out changeset 0f5bec4c05ba (bug 1156472)
Backed out changeset 2dd83ac00bf9 (bug 1156472)
Backed out changeset abd4e47887f7 (bug 1156472)
Backed out changeset 4824d9874663 (bug 1156472)
Backed out changeset 12805598e6fa (bug 1156472)
Backed out changeset e2f0062a1f67 (bug 1156472)
Backed out changeset 99ef8e436a7f (bug 1156472)
Backed out changeset 65bbfc1546af (bug 1156472)
Backed out changeset 2ab4f16eaf0a (bug 1156472)
Backed out changeset 7f565685e20a (bug 1156472)
Backed out changeset 28c03c98cb2b (bug 1156472)
Backed out changeset d477cfba6e1d (bug 1156472)
Backed out changeset 9819fa56caa1 (bug 1156472)
2015-07-24 13:15:57 -07:00
Paul Adenot
62ea7fce4b
Bug 1156472 - Part 7 - Allow to un-capture an HTMLMediaElement. r=pehrsons,jwwang
2015-07-24 14:28:17 +02:00
Carsten "Tomcat" Book
2b73aa4f63
Backed out 14 changesets (bug 1156472) for bustage on a CLOSED TREE
...
Backed out changeset 2ddbf85a42c0 (bug 1156472)
Backed out changeset 306d02e17081 (bug 1156472)
Backed out changeset 03598139f39a (bug 1156472)
Backed out changeset 4b1e6069b598 (bug 1156472)
Backed out changeset 6c588a5eaaec (bug 1156472)
Backed out changeset 8c98d7beaea7 (bug 1156472)
Backed out changeset fbf59fbb5875 (bug 1156472)
Backed out changeset 66479dd9eed9 (bug 1156472)
Backed out changeset c8502deeed33 (bug 1156472)
Backed out changeset 1a60ff1149a1 (bug 1156472)
Backed out changeset af1638279785 (bug 1156472)
Backed out changeset 8210276a98ca (bug 1156472)
Backed out changeset 13730e7c5997 (bug 1156472)
Backed out changeset 05acb71cf981 (bug 1156472)
2015-07-24 17:08:37 +02:00
Paul Adenot
27a91916bf
Bug 1156472 - Part 7 - Allow to un-capture an HTMLMediaElement. r=pehrsons,jwwang
2015-07-24 14:28:17 +02:00
JW Wang
e025bd63c4
Bug 1185892. Part 3 - replace all calls to MediaDecoder::IsExpectingMoreData() with MediaResource::IsExpectingMoreData. r=jya.
2015-07-22 20:58:00 +08:00
JW Wang
2a7a82a4ed
Bug 1183518. Part 2 - Move update of mIgnoreProgressData to main thread. r=cpearce.
2015-07-20 14:34:18 +08:00
Bobby Holley
04eaf4c167
Bug 1184634
- Move various includes into the mozilla namespace. r=gerald
...
I did my a quick best-effort pass to fix up the most egregious ordering
problems. I left some big pre-existing messes alone.
2015-07-16 22:23:18 -07:00
Bobby Holley
997543e6ba
Bug 1184634
- Rename MediaTaskQueue to TaskQueue. r=gerald
2015-07-16 22:23:06 -07:00
Bobby Holley
407d2c5f90
Bug 1184634
- Rename MediaPromise to MozPromise. r=gerald
2015-07-16 22:21:56 -07:00
JW Wang
ca9b1829a7
Bug 1184010 - Put Mirrors/Canonicals together. r=jya.
2015-07-17 13:00:26 +08:00
Chris Pearce
4471953140
Bug 1182928 - Disable dormant mode for EME videos in Firefox Beta and Release. r=sotaro
2015-07-14 12:17:07 +12:00
Bobby Holley
cfc2efb3e7
Bug 1179499 - Dispatch NotifyPlayback{Started,Stopped}. r=jww
2015-07-02 19:26:24 -07:00
Bobby Holley
bb1f9a0082
Bug 1179499 - Assert NS_IsMainThread on a bunch of MediaDecoder methods. r=jww
2015-07-02 19:26:24 -07:00
Bobby Holley
7ff89b25af
Bug 1178938 - Mirror shutdown-ness from the MDSM to the MD. r=jww
2015-07-02 12:38:44 -07:00
Bobby Holley
2324e58fb3
Bug 1178437 - Do the dormant-enabled tracking on the main thread. r=jww,r=jya
...
This is purely a question of policy, so there's no reason it needs to live on
the off-main-thread decoding machinery.
2015-07-01 18:47:41 -07:00
JW Wang
fdfaf1fa60
Bug 1178680 - Remove MediaDecoder::Observe as we have MediaShutdownManager. r=cpearce.
2015-07-01 11:46:38 +08:00
Bobby Holley
3985c88eb7
Bug 1175768 - Throttle NotifyDataArrived. r=jya
2015-06-27 01:19:14 -07:00
Bobby Holley
a80e87862b
Bug 1175768 - Use mirroring for buffered ranges. r=jya
2015-06-27 01:19:13 -07:00
Bobby Holley
f25ea07acc
Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
...
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-27 01:19:10 -07:00
Bobby Holley
a269ea96b4
Bug 1175768 - Dispatch UpdateEstimatedMediaDuration. r=jya
...
NotifyDataArrived will soon run off-main-thread, so the assumptions here won't hold.
2015-06-27 01:19:07 -07:00
Ryan VanderMeulen
d9ca5de3ed
Backed out 8 changesets (bug 1175768) for frequent media test failures.
...
Backed out changeset a369cfb95b59 (bug 1175768)
Backed out changeset e02dd312d622 (bug 1175768)
Backed out changeset 6776ce74b9e5 (bug 1175768)
Backed out changeset 6aa5fa1d318e (bug 1175768)
Backed out changeset a8bd7a0d2aea (bug 1175768)
Backed out changeset 41ffc9a9ac48 (bug 1175768)
Backed out changeset 2d2cefa397dc (bug 1175768)
Backed out changeset 4e06368496d2 (bug 1175768)
CLOSED TREE
2015-06-23 16:20:15 -04:00
Bobby Holley
6925b1f100
Bug 1175768 - Throttle NotifyDataArrived. r=jya
2015-06-22 22:53:09 -07:00
Bobby Holley
5c20ea36aa
Bug 1175768 - Use mirroring for buffered ranges. r=jya
2015-06-22 22:53:09 -07:00
Bobby Holley
23c16e6894
Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
...
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-22 22:53:07 -07:00
Bobby Holley
56422fb439
Bug 1175768 - Dispatch UpdateEstimatedMediaDuration. r=jya
...
NotifyDataArrived will soon run off-main-thread, so the assumptions here won't hold.
2015-06-22 22:53:06 -07:00
Bobby Holley
a145818bdf
Bug 1172264
- Watch mStateMachineDuration, and stop manually firing DurationChanged. r=jww
2015-06-17 09:49:11 -07:00
Bobby Holley
a1ebe95511
Bug 1172264
- Route mExplicitDuration directly from the mediasource code to MediaDecoder, and stop passing an argument to DurationChanged. r=pending=jww
2015-06-17 09:49:10 -07:00
Bobby Holley
56a6ea9edb
Bug 1172264
- Mirror duration from the MDSM to the MediaDecoderReader and remove MDSM::GetDuration. r=jww
2015-06-17 09:49:10 -07:00
Bobby Holley
2aa4ae8328
Bug 1172264
- Mirror duration from the MDSM to the MediaDecoder. r=jww
2015-06-17 09:49:09 -07:00
Bobby Holley
91cfeb8f8f
Bug 1172264
- Switch MediaDecoder's mDuration represenation to a double. r=jww
2015-06-17 09:49:09 -07:00
Jean-Yves Avenard
0b224435dc
Bug 1171330: P9. Remove "Diamond Problem" with MediaDecoder inheritance. r=cpearce
...
--HG--
extra : rebase_source : a8116bf4cdcf3910dbcbf68ba7adb36e6c9d2e04
2015-06-11 15:55:20 +10:00
Bobby Holley
aa6c9ce796
Bug 1160695 - Drop Support for Content-Duration. r=cpearce
2015-06-08 09:22:46 -07:00
Bobby Holley
6af84ec47e
Bug 1160695 - Track demuxer-estimated duration separately. r=jww
2015-06-08 09:22:37 -07:00
Bobby Holley
54cc593e26
Bug 1160695 - Track explicit (mediasource) duration separately. f=jww,rpending=jya
2015-06-08 09:22:28 -07:00
Bobby Holley
027a3eaded
Bug 1160695 - Make MediaDecoder::DurationChanged take a duration argument rather than reading it back synchronously from the MDSM. r=jww
2015-06-08 09:21:23 -07:00
Bobby Holley
f83f94efbb
Bug 1160695 - Track "metadata duration" separately and mirror it to MediaDecoderReader. r=jww
2015-06-08 09:21:22 -07:00
Bobby Holley
1893956886
Bug 1160695 - Track "network duration" separately and mirror it to the MDSM. r=jww
2015-06-08 09:21:20 -07:00