Start finalizing SampleQueue methods
It's a bit messy at the moment with the deprecated methods in there, but on the read side the new set of methods is as follows: Modifies the start of buffer: - discardTo(time, keyframe, ...) [this is new] - discardToRead() - discardToEnd() Modifies the read position: - rewind() - advanceTo(time, keyframe, ...) [this is a generalization of skipToKeyframeBefore] - advanceToEnd() [previously called skipAll] - read(...) Which seems quite nice and self-consistent, and is powerful enough for everything that we need to do as we move MediaSource implementations over to the new methods. TODOs for subsequent changes: - Re-order methods in the two classes so that they're actually in the same order, and move the deprecated ones out of the way - Enhance SampleQueueTest to also cover new functionality, as we start transitioning MediaSource implementations over to use it. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159688660
Showing
with
255 additions
and
110 deletions
Please
register
or
sign in
to comment