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
| Name |
Last commit
|
Last Update |
|---|---|---|
| demo | Loading commit data... | |
| extensions | Loading commit data... | |
| gradle/wrapper | Loading commit data... | |
| library | Loading commit data... | |
| playbacktests | Loading commit data... | |
| testutils | Loading commit data... | |
| .gitignore | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| ISSUE_TEMPLATE | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| RELEASENOTES.md | Loading commit data... | |
| build.gradle | Loading commit data... | |
| gradle.properties | Loading commit data... | |
| gradlew | Loading commit data... | |
| gradlew.bat | Loading commit data... | |
| javadoc_combined.gradle | Loading commit data... | |
| javadoc_library.gradle | Loading commit data... | |
| publish.gradle | Loading commit data... | |
| settings.gradle | Loading commit data... |