gecko/dom/media/mediasource
Chris Double ext:(%20with%20tweaks%20by%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) ff5415dbf5 Bug 1089937 Add a fuzz time to end times for MSE reader switching on EOS r=karl,mattwoodrow
mLast{Audio,Video}Time differs from the actual end time because of
Bug 1065207 - the duration of a WebM fragment is an estimate not the
actual duration. In the case of audio time an example of where they
differ would be the actual sample duration being small but the
previous sample being large. The buffered end time uses that last
sample duration as an estimate of the end time duration giving an end
time that is greater than mLastAudioTime, which is the actual sample
end time.

Reader switching is based on the buffered end time though so we can't use
the actual sample end time for switching comparison.

For this reason we use the end time from the buffers to compare if we
should switch readers in this patch. We also add an EOS_FUZZ_US to allow
for the fact that it is an estimate and can differ slightly from actual times.

--HG--
extra : rebase_source : 47149609119c5dcd1ca7374501dd7c1e285469ef
2014-11-12 12:12:21 +13:00
..
test Bug 1092979 - Add mochitest to ensure loadedmetada is emitted as early as possible. r=cajbir 2014-11-06 21:03:39 +11:00
AsyncEventRunner.h
ContainerParser.cpp
ContainerParser.h
MediaSource.cpp Backed out changeset 1d058cefd04f (bug 1092096) for m2 test failures 2014-11-06 13:19:59 +01:00
MediaSource.h Backed out 10 changesets (bug 1091008, bug 1093020, bug 1063323) for windows m2 permanent test failures on a CLOSED TREE 2014-11-05 12:57:43 +01:00
MediaSourceDecoder.cpp Bug 1056441 - Make MediaSourceReader seeking asynchronous. r=kinetik 2014-11-05 13:32:26 +13:00
MediaSourceDecoder.h Backed out 10 changesets (bug 1091008, bug 1093020, bug 1063323) for windows m2 permanent test failures on a CLOSED TREE 2014-11-05 12:57:43 +01:00
MediaSourceReader.cpp Bug 1089937 Add a fuzz time to end times for MSE reader switching on EOS r=karl,mattwoodrow 2014-11-12 12:12:21 +13:00
MediaSourceReader.h Bug 1056441 - Make MediaSourceReader seeking asynchronous. r=kinetik 2014-11-05 13:32:26 +13:00
MediaSourceResource.h
MediaSourceUtils.cpp
MediaSourceUtils.h
moz.build
ResourceQueue.h Bug 1062661 - Part 1: Fix ResourceQueue::Evict so that it tries to remove enough data to get us under the threshold. r=kinetik 2014-11-04 11:16:31 +13:00
SourceBuffer.cpp
SourceBuffer.h
SourceBufferDecoder.cpp Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
SourceBufferDecoder.h Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
SourceBufferList.cpp
SourceBufferList.h
SourceBufferResource.cpp Bug 1091976 - Process MP4Reader::NotifyDataArrived() immediately; r=edwin 2014-11-10 13:32:09 +13:00
SourceBufferResource.h
TrackBuffer.cpp Bug 1093880 - Delay decoder initialization until data has been appended. r=cajbir 2014-11-06 15:09:19 +11:00
TrackBuffer.h Bug 1093880 - Delay decoder initialization until data has been appended. r=cajbir 2014-11-06 15:09:19 +11:00