mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Reinstate buffer discard for SmoothStreaming
Now we have a ChunkSampleStream.discardBuffer, we need to call it from SsMediaPeriod as well as for the DASH case. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=175675427
This commit is contained in:
parent
b30b786350
commit
22b95032b3
1 changed files with 3 additions and 1 deletions
|
|
@ -139,7 +139,9 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void discardBuffer(long positionUs) {
|
public void discardBuffer(long positionUs) {
|
||||||
// Do nothing.
|
for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) {
|
||||||
|
sampleStream.discardBuffer(positionUs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue