zeroDuration.js
295 Bytes
-
* Fudge segments that are reported as having a zero-second duration * The fetcher logic basically ignores segments with a duration of zero. Give them a tiny duration so that the fetcher will "see" these segments. * Added tests for and fixed getSegmentBufferedPercent_ calculations * Now returns the percent buffered of the entire segment duration instead of the "adjusted" duration * Handles segments reported as having a zero-duration * Reduced the number of segments that we will attempt to "timeCorrect" when the segment chosen by `checkBuffer_` is already more than 90% buffered to 1 * No longer trigger errors from `timeCorrection_` handling, returning to the previous behavior * Use the tech's setCurrentTime function in segment loaders * Moved getSegmentBufferedPercent to `Ranges` module * Moved correction for zero-duration segments from parse-stream to parser proper
Jon-Carlos Rivera committed